Welcome To Snipplr
Everyone's Recent Snippets Tagged c
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Example markup:
<p>This is the first part of the text <a class="toggle">[+]</a><span>this part is hidden until clicking the toggle link.</span></p>
The script will show and hide text when the toggle link is c...
1
1693
posted 16 years ago by mikemetcalf
Simple [SoundManager2](http://www.schillmania.com/projects/soundmanager2/doc/download/#latest "Download SoundManager2") example (uses jQuery)
0
2101
posted 16 years ago by chrisdpratt
Simple way to configure the JVM to use the proxy in the network
1
1730
posted 16 years ago by neozilon
This snippet is usable for telephone number normalization. It supports re-mapping of misused alphabetical characters (e.g. i for 1) and some other clean up stuff... Take a look.
Update, 2009-10-02: added function to create a corresponding MySQL RE...
1
2007
posted 16 years ago by dreadwarrior
The shell command which provides documentation for Ruby's classes and methods is:
0
1651
posted 16 years ago by deepsoul
Sample log line:
[INFO] 2009-03-06 20:47:35 | controller::bla | user: vincentvega | ip: 127.0.0.1
0
1982
posted 16 years ago by benjay
Must have a field named Weight. The more Weight the more often the record is selected. Weight should be an integer between 1 and 10.
1
2016
posted 16 years ago by BFTrick
I have not tried this out yet, but I hope it can convert IronPython types to and from json.
0
1779
posted 16 years ago by laurenceosx
Variables that are submitted via web forms always need to be cleaned/sanitized before use in any way, to prevent against all kinds of different malicious intent.
0
1679
posted 16 years ago by paulgrenwood
Just include this script on the site and you’ll get a Firebug console that pops up for debugging in any browser. Not quite as full featured but it’s still pretty helpful! Remember to remove it when you are done.
1
2108
posted 16 years ago by paulgrenwood
this comes from YAPB plugin for WordPress. kudos to the author.
(there are some functions that are deprecated in PHP 5.2+ - you'll need to replace eregi with the mb_ version). This should be quite failsafe, regardless if curl is installed or the set...
1
2216
posted 16 years ago by iroybot