Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Hopefully this covers just about everything. This code has far more lines than htmlify.js but seems to work ok.
(I just remembered that " // Loop through the clear text " has no loop breaker - will post a fix, but it's not a show-stopper for mo...
0
1205
posted 13 years ago by jm1248
Example of loading thickbox and syntaxhighlighter conditionally from the functions.php of a wordpress theme.
2
621
posted 13 years ago by zac
Until recently, playing video files in a web page was notoriously complicated. The user requires a Flash or Silverlight plug-in and even the simplest HTML is a confusing mess.
Few HTML5 features excite developers more than native audio and video....
1
1135
posted 13 years ago by blueocto
Adobe AIR offers an ability to save small snippets of data locally (eg. users' settings). Works also on Android. EncryptedLocalStore is stored encrypted using AES-CBC 128-bit method. It is not recommended to store more than 10 MB of data because of r...
0
754
posted 13 years ago by MaRmAR
* example: google.com/reader/view/
folder = /reader
* example: google.com/reader
folder = /
* example: google.com
folder = ''
0
965
posted 13 years ago by markux
Used on `<input>`'s and `<textarea>`'s
Several jQuery functions for getting the current cursor position and setting the current cursor position. Also allows for selecting text in a certain range.
Usage:
<pre>
$("input[name='username']").getCu...
0
684
posted 13 years ago by crutzdesigns
Full credit for this code goes to Scratchbrain (http://www.scratchbrain.net/blog/ver2/)
0
800
posted 13 years ago by adrianparr
The find and replace regular expressions convert from Font Squirrel's generated @font-face.
1
677
posted 13 years ago by ertbor
I needed a way to generate some random strings for passwords, a number of methods seemed a little over the top so below is my simplified version that does the trick. I have set it to use non-confusing characters, so no i's, l's, 0's but very easy to...
0
801
posted 13 years ago by motlive
We've tested on:
Safari 5.03, IE 6-9, Firefox 3.6-4, Chrome 8, iOS 3.2-4.2, Android 2.2-2.3, Opera 11
0
749
posted 13 years ago by blueocto