Welcome To Snipplr


Everyone's Recent Snippets Tagged c



1 ... 425 426 427 428 429 ... 553
Very useful for when you don't have Cygwin or are not running on a linux box...
0 3612 posted 16 years ago by abwaters
bring back the old browser detection
1 1753 posted 16 years ago by localhorst
0 1235 posted 16 years ago by josephfritz
Simple way to escape string for LIKE statements, useful for searches.
3 1319 posted 16 years ago by robv
I just put all the functions in here the validateConfPass function uses the key event and the two text fields to change the background color of the confPassword field when it does not equal the pass field
0 1436 posted 16 years ago by jlvallelonga
send in an event it returns the key that you pressed if it was alphanumeric or backspace otherwise it returns "-1" use with getKeyCode and isAlphaNumeric
0 1145 posted 16 years ago by jlvallelonga
to use this function send in an ASCII character code (use my getKeyCode function) it will return true if the code corresponds to a printable character (not backspace code - 8, enter code - 13, or "undefined")
0 1101 posted 16 years ago by jlvallelonga
<h2>POSH => HTML semántico</h2> http://aprendiendoweb.com/2008/08/posh-html-semantico <ol> <li>Debe ser HTML válido</li> <li>No se deben usar elementos de presentación como &lt;b&gt; o &lt;i&gt;</li> <li>Todos los estilos deben darse usando C...
2 1079 posted 16 years ago by demixo
Clojsure composition in Groovy (functional style programing). @http://www.ibm.com/developerworks/java/library/j-pg08235/index.html
0 1374 posted 16 years ago by narkisr
4 1495 posted 16 years ago by kristarella
0 1052 posted 16 years ago by jpdamen
This example adds tags and categories to the Thesis byline, each on a new line, and with the needed classes to match the other byline items. The byline is generated in thesis/lib/functions/content_functions.php (v1.4.2 at the time of writing) look...
5 1644 posted 16 years ago by kristarella
0 1497 posted 16 years ago by vcskicks
Alternate to <a href="http://snipplr.com/view/133530">this method</a>. Have not yet tested. In settings.php, put this code:
0 1254 posted 16 years ago by zachharkey
My [original post](http://drupal.org/node/84895) languished for years before someone pointed out a possible solution [here](http://drupal.org/node/53705). The following user-submitted code may be useful in redirecting URLs for the /files directory...
0 1353 posted 16 years ago by zachharkey
We wanted to change all /films/example style paths to /film/example (basically remove the 's'). Here was the query that worked:
1 1228 posted 16 years ago by zachharkey
Creating a object that doesn't have any methods in Ruby (regular objects inherit methods from Object class), useful for Proxies that use method missing (http://onestepback.org/index.cgi/Tech/Ruby/BlankSlate.rdoc).
1 1746 posted 16 years ago by narkisr
1 1328 posted 16 years ago by Wiederkehr
closes opened tags in text piece. original code slightly modified to supress PHP warnings NOTE: need to fix the order of closing tags to get standards compliance
0 1349 posted 16 years ago by kossmoss
Great little snippit to add a <tr> to the bottom of a table. Note the use of the context in the jQuery e.g var n = $('tr:last td', this).length; Will have to use this in the future, very good to know!
4 2867 posted 16 years ago by 1man
Returns last word of a string (words separated by blanks). if string does not have any blanks, it will return the whole string.
1 1418 posted 16 years ago by fischkopp
1 1335 posted 16 years ago by wdso
2 1304 posted 16 years ago by spark9
Will return a string that has any matched URLs wrapped in `<a>` tags. Example: `"This is a link to http://foobar.com . Please visit !"` Becomes: `"This is a link to <a href='http://foobar.com'>http://foobar.com</a> . Please visit!"` Note: Op...
2 5989 posted 16 years ago by jasonseney
1 ... 425 426 427 428 429 ... 553