Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Supported brands
name | key
-----------------------
American Express | :amex
China UnionPay | :unionpay
Diners Club | :diners
Dinner Club US | :diners_us
Discover | :discover...
0
5108
posted 13 years ago by Fivell
this is a simple script to take iframe parameters and build an iframe via a shortcode
1
1848
posted 13 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
2340
posted 13 years ago by Salamandern
Add the init() function to your document.ready call. This allows touch events to be handled like click events.
0
2019
posted 13 years ago by bitsculptor
Get the ajax complete event after filtering a view content in drupal
0
2974
posted 13 years ago by apmartins
Find an object in a collection with underscore. Using the filter function from underscore.
0
1594
posted 13 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
7783
posted 13 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
3186
posted 13 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
2231
posted 13 years ago by haydin
Draw a border around the form.
Add to the paint event handler.
0
2069
posted 13 years ago by thomas-h
CSS to define an iframe to always be 100% of the container it's in.
0
1743
posted 13 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
2328
posted 13 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
1758
posted 13 years ago by tacudtap
This sample code shows you how to screen an order to prevent fraud and chargebacks.
0
1715
posted 13 years ago by Hexahow
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
2043
posted 13 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
4039
posted 13 years ago by rumremix
Generic function - Pass the context to the function for use with any field
0
2085
posted 13 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
1998
posted 13 years ago by COBOLdinosaur
Custom task using gradle java plugin for build runnable jar file with full dependencies set
0
4150
posted 13 years ago by alces
Jaidee Framework is Graceful and powerful HTML & CSS Framework for building flexible and responsive website and mobile app development.
1
1941
posted 13 years ago by kanin2604
Here the simplest way of selecting random rows from the MySQL database with using "ORDER BY RAND()" clause in the query.
0
4218
posted 13 years ago by apphp-snippets