Welcome To Snipplr


Everyone's Recent Snippets



1 ... 44 45 46 47 48 ... 554
PostgreSQL wildcard search for any of a list of words, returns true or false depending on whether its pattern matches the given string.
0 1157 posted 12 years ago by alecolucci
See: http://grepcode.com/file/repo1.maven.org/maven2/org.eclipse.jetty/jetty-start/7.1.1.v20100517/org/eclipse/jetty/start/Main.java#Main.stop%28int%2Cjava.lang.String%29
0 1112 posted 12 years ago by laurenceosx
Supported brands name | key ----------------------- American Express | :amex China UnionPay | :unionpay Diners Club | :diners Dinner Club US | :diners_us Discover | :discover...
0 2241 posted 12 years ago by Fivell
this is a simple script to take iframe parameters and build an iframe via a shortcode
1 1010 posted 12 years ago by bitsculptor
see source
0 964 posted 12 years ago by bitsculptor
This function will return the sum of the characters making up a number. For example, summate(321) will return 6. summate(123) will also return 6, because both 123 and 321 are made out of the same characters. Supports integers of any length, but only...
0 1234 posted 12 years ago by Salamandern
Add the init() function to your document.ready call. This allows touch events to be handled like click events.
0 1036 posted 12 years ago by bitsculptor
easy way to use placeholders before html5
0 885 posted 12 years ago by bitsculptor
Get the ajax complete event after filtering a view content in drupal
0 1125 posted 12 years ago by apmartins
Find an object in a collection with underscore. Using the filter function from underscore.
0 824 posted 12 years ago by alexedy
Here's the basic principal behind spiders. (ex: <a href="http://giochiflash.123homepage.it">Giochi Flash</a> $html = file_get_contents('http://www.example.com');
6 4974 posted 12 years ago by haydin
This is the calling one (probably more useful if the clickable text is words, as the iPhone auto-detects phone numbers and does this automatically) This is the SMS one, which overrides the default calling behavior (ex : <a href="http://giocaregratis...
0 1192 posted 12 years ago by haydin
The example here is if you had a form on a website that when submitted, needed to use that information to go to a special URL where the login information was all appeneded to the URL. (ex : <a href="http://giochionline1.123homepage.it"> giochi online...
0 1278 posted 12 years ago by haydin
0 1300 posted 12 years ago by cray
Draw a border around the form. Add to the paint event handler.
0 1263 posted 12 years ago by thomas-h
CSS to define an iframe to always be 100% of the container it's in.
0 949 posted 12 years ago by leodruker
JavaScript code to facilitate dynamic re-sizing of an iframe at the same time as the browser window is re-sized, as well as making sure that the frame scales proportionally to its width and height.
1 1100 posted 12 years ago by leodruker
Add this snippet to `wp-config.php` to remove the file editor links from the WordPress admin menus. Read more about... [disabling the WordPress file editor](http://www.orderofbusiness.net/blog/disable-wordpress-file-editor/)
0 843 posted 12 years ago by tacudtap
This sample code shows you how to screen an order to prevent fraud and chargebacks.
0 837 posted 12 years ago by Hexahow
Several tricks for your .htaccess file.
0 1103 posted 12 years ago by telltec
Iterating through cursor
0 1075 posted 12 years ago by noloman
Get the first char of a lastname in php
0 834 posted 12 years ago by dego89
Validating an email address is one of the hardest feats on the web. A valid email can be marketing gold, but an invalid email address is dead weight. Not only does it require a CPU-taxing PHP regular expression ("/^[A-z0-9\._-]+"."@" . "[A-z0-9][A-...
1 1156 posted 12 years ago by mafhh14
check the file out in the browser in spd, right click the file and choose "undo checkout" repeat the last two steps until the checkmark goes away in spd check the file out in spd. it should now get the latest version to edit
0 1178 posted 12 years ago by rumremix
Generic function - Pass the context to the function for use with any field
0 953 posted 12 years ago by chetkloss
The nice part about it is that the caption is locked to the image. The figure can be positioned and styled and the caption can be rendered with any affect that can be applied to any other text element.
0 1004 posted 12 years ago by COBOLdinosaur
lists sheets without opening the file
0 938 posted 12 years ago by lolrenx
Custom task using gradle java plugin for build runnable jar file with full dependencies set
0 1219 posted 12 years ago by alces
1 ... 44 45 46 47 48 ... 554