Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
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
1815
posted 15 years ago by MaRmAR
* example: google.com/reader/view/
folder = /reader
* example: google.com/reader
folder = /
* example: google.com
folder = ''
0
2910
posted 15 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
1569
posted 15 years ago by crutzdesigns
Full credit for this code goes to Scratchbrain (http://www.scratchbrain.net/blog/ver2/)
0
1780
posted 15 years ago by adrianparr
The find and replace regular expressions convert from Font Squirrel's generated @font-face.
1
1624
posted 15 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
1784
posted 15 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
1802
posted 15 years ago by blueocto
first design your app and generate a .UI file using Designer (part of Qt Creator), then run pyuic4 to get it to python, like:
pyuic4-2.6 example.ui > example.py
then import the window classes in example.py and make your up by subclassing like you...
1
2267
posted 15 years ago by blackthorne
You can see details on http://msdn.microsoft.com/en-us/library/ms178592.aspx , but I try to explain how you throw error with "uniqueidentifier" type parameters.
I convert uniqueidentifier to string (nvarchar(50)) and set a variable.
"%s" is equal...
0
2650
posted 15 years ago by emregulcan
returns "City, State" if found otherwise defaults to "Hollywood, CA"
18
15278
posted 15 years ago by crypticsoft
This function allows you to pass any div anchor tag as a parameter to scroll to. You can easily add easing after the 'duration' parameter in the jQuery animation function.
8
2820
posted 15 years ago by ksnagra