Welcome To Snipplr


Everyone's Recent Snippets



1 ... 99 100 101 102 103 ... 553
Wrote this script to work with pngcrush command line based program on Windows system to compress several .png images in multiple folders (with only 1 level of folders, rather than that you have to repeat doing it manually). It's fast, and help doi...
0 4054 posted 14 years ago by haxpor
Just my simple db class i use
1 1420 posted 14 years ago by cdog
1 1762 posted 14 years ago by beneberle
0 2584 posted 14 years ago by weidel
When you use the `+` operator on an Array, it converts it to a string.` [].toString()` is the same as `[].join(',')`, which gives an empty string in case the array value is `undefined` or `null`. This also works in Javascript `([undefined] + "b" ===...
0 1293 posted 14 years ago by luizlopes
Esta función devuelve true si el argumento está codificado en utf8
0 1552 posted 14 years ago by n19ht
Overwrite LoadViewSate and SaveViewState page methods. SaveViewState is called on initial page load and that is the place to save your negated flag to Session. This value should be compared in LoadViewState and if the values are the same it means...
0 1471 posted 14 years ago by Neven
This code gets the current caretIndex in the textfield and then inserts the specified string at that point. The caretIndex position is then updated using setSelection, ready for the next insertion. This was developed to be used with an on-screen keyb...
0 2790 posted 14 years ago by adrianparr
an operator that implements true prototypal Object inheritance in JavaScript
0 1759 posted 14 years ago by luizlopes
How to add multiple Language localization to an App.
1 3081 posted 14 years ago by neoline
A quick snippet that removes the 'px' when accessing a value through jquery, and converts it into an integer.
0 1448 posted 14 years ago by cessnajumpin
If not have access to edit json, setting url possible is: url: 'http://graph.facebook.com/4/?callback=getDatosUsuario'
0 1739 posted 14 years ago by nicolaspar
Default adapter saves to DOM.
0 1477 posted 14 years ago by stur
Send an email to all registered users when a post is published, for wordpress 3.1+
0 1632 posted 14 years ago by eniris
Add this to your functions.php file
0 1767 posted 14 years ago by xcsteve99
Bytes per second isn't granular enough to get a real idea of how your network is really being used.
0 1273 posted 14 years ago by mattsn0w
JSLint requires the body of every `for in` statement should be wrapped in an `if` statement
0 1986 posted 14 years ago by luizlopes
0 1117 posted 14 years ago by djalisko191
Remember to change flashvars (src, poster) and the size of the player in swfobject.embedSWF parameters (428, 240)
0 2674 posted 14 years ago by carlskov
1 ... 99 100 101 102 103 ... 553