Welcome To Snipplr


Everyone's Recent Snippets Tagged c



1 ... 508 509 510 511 512 ... 552
Every function has an object called the arguments object. This is an object that contains all the arguments that were passed to the function. The example below shows how to access these. Very rarely used but useful to know. Note: it may look like an...
2 2296 posted 18 years ago by 1man
Simple way of allowing functions to take optional arguments. Always place the optional arguments last, so you don't have to explicitly pass an argument as "undefined".
3 2098 posted 18 years ago by 1man
Implement "Asides" in a WordOress blog just with the Sandbox theme and CSS
2 1829 posted 18 years ago by j_junyent
4 3209 posted 18 years ago by zingo
Si miramos al horizonte empieza a deslumbrar el futuro del CSS, con la salida de CSS3 la vida de los diseñadores web va a mejorar considerablemente y no es para menos, por que con las mejoras que se están acercando ¿quien no se aprovechará de ell...
4 1979 posted 18 years ago by j_junyent
blacnk stylesheet for the Sandbox WordPress theme
1 1910 posted 18 years ago by j_junyent
Show a user picture in wordpress
0 1791 posted 18 years ago by j_junyent
Getting SuperSleight running on a page is quite straightforward, you just need to link the supplied JavaScript file into your document inside conditional comments so that it is delivered to only Internet Explorer 6 or older.
3 2716 posted 18 years ago by jonhenshaw
Just call the function in an HTML element and it would flip the text in it.
1 2107 posted 18 years ago by iTony
Running this command will append a line with given values to a file you specify. Replace words between < and > with the values you desire.
1 2502 posted 18 years ago by engel
Add this template before functions in a library, in order to give a good description of what it is and what it does. Replace all in < and > with your values.
2 2320 posted 18 years ago by engel
Pass a user-inputted variable to this function in order to prevent SQL injection. Example: mysql_query("INSERT INTO table VALUES('" . sql_sanitize($_POST["variable") . "')"); Instead of: mysql_query("INSERT INTO table VALUES('" . $_POST["var...
34 13990 posted 18 years ago by engel
1 1818 posted 18 years ago by wintondeshong
0 1667 posted 18 years ago by natalie
ej: echo keepqsSinParametro('hola','hola=mundo&mundo=lindo&hola=chau'); #out = mundo=lindo
0 1764 posted 18 years ago by nicolaspar
0 1604 posted 18 years ago by vanne
0 1624 posted 18 years ago by mandric
this launches vi so you can add the files/dirs you want to ignore. i'm not happy.
4 2079 posted 18 years ago by mandric
libreria que mediante ajax y javascript permite paginar los contenidos de una tabla
0 1516 posted 18 years ago by victorchamorro
The W3C multi-column module is a CSS level-three working draft, proposed by the W3C to extend the current CSS box model. The module’s intent is to allow content to flow into multiple columns inside an element. It offers new CSS properties that let...
2 1727 posted 18 years ago by j_junyent
When handing over a project to the client, you sometimes loose control over the content HTML source. Sometimes the client uses a CMS that allows them to have full control over certain parts of the HTML, and sometimes the client simply uses your templ...
2 2154 posted 18 years ago by j_junyent
gmail-like table's column overflow. Efecte de truncar el text en una taula si sobrepasa
1 1610 posted 18 years ago by j_junyent
var lib = ['foo.js','foo.js','foo2.js','foo.js','foo333.js','foo2.js']; var slib = 'fooooo.js'; lib.jitScript(); // append foo.js, foo2.js & foo33.js slib.jitScript(); // append fooooo.js enable firebug console JitScriptDebug = true; val...
0 1958 posted 18 years ago by ChaosKaizer
0 1375 posted 18 years ago by haimuiba
Created for my own purposes, thought I'd share though ;) copy paste at the top of your file and it does the magic :)
31 9135 posted 18 years ago by peteypablonz
-l grep options shows the path and only the path of the matching file
0 1917 posted 18 years ago by therobot
1 ... 508 509 510 511 512 ... 552