search
 
arrowarrow Most recently updated: Snippets
info This is a list of the currently available snippets, with noted their author and the unique Identification Number of the snippet. Click on any listed snippet to see its full text.
What are snippets?
Optional sorting commands:
Order by amount of visits: click here
Normal order: click here
Current order: by amount of visits
List titles only: click here
Showing topics: 1, 10
Available total: 450
Rss
Snippets: Search Full Poster with Google
 
Convert From Javascript Syntax To Php Syntax And From Php To Javascript Identification Number: 93 http://en.wikipedia.org/wiki/File:Miniaturk_009.jpg Preview: This file provides translation tables for Javascript and Php functions to swap one into the other. Of course, only translations for those instances where there are equivalent built in functions in both languages are provided. Related topic: Javascript From Php Unix Timestamp To Javascript Date. For instance Php deals also with databases, so all those Php functions that deal with databases will not have any Javascript translation tables because javascript has no functions that deal with databases. The same applies, for instance, to directory management too: Php has functions that can manage server directories and files; but Javascript, being exclusively client side, doesn't manipulate files. Conversely, there are many Javascript methods meant to deal with forms, windows, links etc, which do not have Php equivalents. As such, these methods won't be covered here because they have no Php homologic correspondence.... read more: click here Author: A Visitors: 50,929 Tagged by its author as: Programming List topics of this author only (450) : click hereThis author also has: a Blog Javascript DOM Get Parent Nodes: All Nodes Or Specific Node By Id Or By Tag Name Identification Number: 53 http://en.wikipedia.org/wiki/File:Miniaturk_009.jpg Preview: {OBJECTIVE}: given a dom node (html tag) find its parent nodes: either all or until a specified one is located. Note: this procedure returns {parent} nodes only: if you want {all} the nodes you may check Javascript Scan Arrays Matrix, Dom Trees, Tag Attributes. Map Or Find Values. This process could be useful for instance also in those cases where you want to verify whether some event handler has been triggered from within a specific wider context: for instance if an onclick upon an image has been performed upon an image nested within, say, a DIV tag with some specific id or className or whatever. function getParent(element, parent){ if(typeof element=="string"){element=document.getElementById(element);}; if(!element){return null;}; var elements=[]; if(typeof parent!="string"){/*no parent: gets all parents till #document*/ while(element.parentNode){ element=element... read more: click here Author: A Visitors: 48,843 Tagged by its author as: Programming Javascript List topics of this author only (450) : click hereThis author also has: a Blog Old Man at the Bridge. By Ernest Hemingway (The First Forty-Nine Stories) Identification Number: 75 http://en.wikipedia.org/wiki/File:Miniaturk_009.jpg Preview: Old Man at the Bridge - from: The First Forty-Nine Stories by Ernest Hemingway link ==== An old man with steel rimmed spectacles and very dusty clothes sat by the side of the road. There was a pontoon bridge across the river and carts, trucks, and men, women and children were crossing it. The mule-drawn carts staggered up the steep bank from the bridge with soldiers helping push against the spokes of the wheels. The trucks ground up and away heading out of it all and the peasants plodded along in the ankle deep dust. But the old man sat there without moving. He was too tired to go any farther. It was my business to cross the bridge, explore the bridgehead beyond and find out to what point the enemy had advanced. I did this and returned over the bridge. There were not so many carts now and very few people on foot, but the old man was still there. "Wh... read more: click here Author: A Visitors: 47,206 Tagged by its author as: Books List topics of this author only (450) : click hereThis author also has: a Blog Striptease. By Roland Barthes. Excerpt From Mythologies Identification Number: 80 http://en.wikipedia.org/wiki/File:Miniaturk_009.jpg Preview: Striptease - from Mythologies by Roland Barthes link Moulin Rouge today ==== Striptease - at least Parisian striptease - is based on a contradiction: Woman is desexualized at the very moment when she is stripped naked. We may therefore say that we are dealing in a sense with a spectacle based on fear, or rather on the pretence of fear, as if eroticism here went no further than a sort of delicious terror, whose ritual signs have only to be announced to evoke at once the idea of sex and its conjuration. It is only the time taken in shedding clothes which makes voyeurs of the public; but here, as in any mystifying spectacle, the decor, the props and the stereotypes intervene to contradict the initially provocative intention and eventually bury it in insignificance: evil is advertised the better to impede and ... read more: click here Author: A Visitors: 40,220 Tagged by its author as: Books List topics of this author only (450) : click hereThis author also has: a Blog Ezra Pound: Vorticism. Full Text. Identification Number: 133 http://en.wikipedia.org/wiki/File:Miniaturk_009.jpg Preview: Ezra Pound Vorticism link ==== I had put the fundamental tenet of vorticism in a "Vortex" the first Blast as follows: Every concept, every emotion presents itself to the vivid consciousness in some primary form. It belongs to the art of this form. If sound, to music; if formed words, to literature; the image, to poetry; form, to design; colour in position, to painter; form or design in three planes, to sculpture; movement, to dance or to the rhythm of music or verses. I defined the vortex as "the point of maximum energy," and I said that the vorticist relied on the "primary pigment," and on that alone. These statements seemed to convey very little to people ufamiliar with our mode of thought, so I tried to make myself clear, as follows: {VORTICISM} "It is no more ridiculous that a person should receive or convey... read more: click here Author: A Visitors: 39,730 Tagged by its author as: Books List topics of this author only (450) : click hereThis author also has: a Blog Javascript Cast And Recast Numerical Value Of Numerical Range Into Another Range Identification Number: 99 http://en.wikipedia.org/wiki/File:Miniaturk_009.jpg Preview: {OBJECTIVE}: cast an entity into another entity after a different metrical system. |Note: this file is about casting meant in its wider conceptual meaning. If you are here just to know how to cast (convert) a string into a number in javascript, all you have to do is to use parseInt or (to allow decimal fractions) parseFloat: var toNum = parseFloat(STRING); If STRING wasn't a number or a literal number (a number in between quotes), it will return NaN, a specific type of returned value (tantamount to {false}, and any conditional check would behave as if considering it such) which anyway still belongs, strangely enough, to the Number {data type}. To cast a Number into a String, prepend to it any string, also an empty one: vat intoString = "" + 351; Some even look, apparently, for a Javascript procedure to cast a number into a boolean. A possible way: var num=0;//or 7 or whatever number num=!... read more: click here Author: A Visitors: 33,077 Tagged by its author as: Programming Javascript List topics of this author only (450) : click hereThis author also has: a Blog Pablo Neruda: One Hundred Love Sonnets. Excerpts in English Identification Number: 163 http://en.wikipedia.org/wiki/File:Miniaturk_009.jpg Preview: Pablo Neruda One Hundred Love Sonnets - Excerpts in English From: 100 Love Sonnets: One Hundred Love Sonnets /Cien Sonnets de amor (Dual language edition) For excerpts in original version: spanish version (yet, the selection is not identical). ==== [Sonnet V (5)] You may not be touched by night, breeze or dawn glow, but only by the earth, the virtue of the flowers, the apples that grow hearing the pure water, the soil and resins of your fragrant land. From Quinchamalí where they created your eyes to La Frontera where they made your feet for me, you are the dark clay that I know well: touching your hips I touch all the wheat again. Perhaps you did not know, Arauca girl, that when I forgot your kisses before I ... read more: click here Author: A Visitors: 33,074 Tagged by its author as: Books List topics of this author only (450) : click hereThis author also has: a Blog Simbologie Massoniche: Tavola Di Istruzione Rapida Con Cenni Storici Insoliti Identification Number: 191 http://en.wikipedia.org/wiki/File:Miniaturk_009.jpg Preview: Nel tracciare una tavola sui Simbolismi di Loggia, mi sono dovuto necessariamente porre due domande. La prima, come limitare un campo che tutti sappiamo potenzialmente immenso, senza per questo cadere, a forza di limitarlo, nella tavola monografica. I simboli della Loggia si declinano al plurale! La seconda, come affrontare la tavola cercando di renderla non solo speculativa o soggettiva ma, se possibile, anche utile e, se non oggettiva, almeno un pochino istruttiva. La soluzione che ho adottato è la seguente: ho riletto tutti i nostri rituali (o almeno quelli a mia disposizione), effettuando una panoramica sui loro aspetti più caratteristici. Ho fatto questo notando anche alcune variazioni ufficiali nei rituali che sono occorse negli anni. Ho quindi isolato dagli aspetti che mi parevano più caratteristici, le istruzioni che li accompagnavano. Di queste istruzioni, molte sono rispettate, altre sono come cadute in desuetudine (o forse solo pragmaticamente tralasciate in occas... read more: click here Author: A Visitors: 32,443 Tagged by its author as: Critical Reviews and Essays List topics of this author only (450) : click hereThis author also has: a Blog Salvatore Quasimodo: Traduzioni Scelte Dai Frammenti Dei Lirici Greci Identification Number: 126 http://en.wikipedia.org/wiki/File:Miniaturk_009.jpg Preview: Salvatore Quasimodo. Traduzioni scelte dai Frammenti dei Lirici Greci link ==== [SAFFO Come il giacinto] Come il giacinto che i pastori pestano per i monti, e a terra il fiore purpureo sanguina. [SAFFO Ho parlato in sogno] Ho parlato in sogno con te, Afrodite. [SAFFO A me pare uguale agli dei] A me pare uguale agli dèi chi a te vicino così dolce suono ascolta mentre tu parli e ridi amorosamente. Subito a me il cuore si agita nel petto solo che appena ti veda, e la voce si perde sulla lingua inerte. Un fuoco sottile affiora rapido alla pelle, e ho buio negli occhi e il rombo del sangue alle orecchie. E tutta in sudore e tremante come erba patita scoloro: e morte non pare lontana a me rapita di mente. [SAFFO Tramontata e' la luna]... read more: click here Author: A Visitors: 30,388 Tagged by its author as: Books List topics of this author only (450) : click hereThis author also has: a Blog Pablo Neruda: 20 Love Poems And A Song Of Despair. Excerpts In English Identification Number: 161 http://en.wikipedia.org/wiki/File:Miniaturk_009.jpg Preview: Pablo Neruda 20 Love Poems And A Song Of Despair - Excerpts From: 20 Love Poems And A Song Of Despair (Dual language edition) ==== [Body of a Woman] Body of a woman, white hills, white thighs, you look like a world, lying in surrender. My rough peasant's body digs into you and makes the son leap from the depth of the earth. I was alone like a tunnel. The birds fled from me, and night swamped me with its crushing invasion. To survive myself I forged you like a weapon, like an arrow in my bow, a stone in my sling. But the hour of vengeance falls, and a love you. Body of skin, of moss, of eager and firm milk. Oh the goblets of the breast! Oh the eyes of absence! Oh the pink roses of the pubis! Oh your voice, slow and sad! Body of my woman, I will persist in your grace. My... read more: click here Author: A Visitors: 29,662 Tagged by its author as: Books List topics of this author only (450) : click hereThis author also has: a Blog