Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Why do this?
===========
*hopefully* this will cause the page to refresh and provide a stop button in the future. The idea is to use it while developing in a text editor, as in Vim or its ilk, and not have to alt+tab all the _*flipping*_ time.
F...
0
721
posted 13 years ago by inreflection7
Using the ID of a page, you can get the content, the featured image and the title to power widgets in your template.
0
764
posted 13 years ago by mejamiewilson
A Simplified solution to CSS-Tricks Starry Night Parallax Effect. Se URL for demo and original article. Example files can also be downloaded at the URL.
0
883
posted 13 years ago by DeluxiveState
//#########################################################################
//
// *taken from http://www.catswhocode.com/blog/mastering-html5-prefetching
//
//#########################################################################
0
1033
posted 13 years ago by rydaly
Sintáxis y clausulas más habituales para consulas SQL con cláusula DELETE que elimina uno o varios registros de la tabla que se especifica.
0
627
posted 13 years ago by alberomo
Sintáxis y clausulas más habituales para consulas SQL con cláusula UPDATE que actualiza/modifica uno o varios registros de la tabla que se especifica.
0
689
posted 13 years ago by alberomo
found the solution here: http://stackoverflow.com/questions/2790001/fixing-javascript-array-functions-in-internet-explorer-indexof-foreach-etc
0
638
posted 13 years ago by pixelatorz
Sintáxis y clausulas más habituales para consulas SQL con cláusula INSERT INTO que añade un nuevo registro a la tabla que se especifica.
0
670
posted 13 years ago by alberomo
Simple recursive function to find objects that match the value of str hanging anywhere off the global JS object (window).
0
874
posted 13 years ago by richt
The HTML simply discovers if it's IE and its version or if it's not IE.
The jQuery discovers if it's IE, Firefox, Webkit Engine (Chrome and Safari) or Opera and its version as an integer.
1
1513
posted 13 years ago by cesarkohl
Pass variables into javascript files using query strings, and return them using getJSvars()
Example
//HTML
<script>
//return the value of "foo"
getJSvars('filename.js', 'foo');
0
879
posted 13 years ago by DenoteIt
A small tip I picked up yesterday while developing a HTML email for a client. If you are testing in Hotmail using a browser other than Internet Explorer, you may notice that the email seems to left align and doesn’t display any background colours o...
0
804
posted 13 years ago by i-am-andy
Thanks to http://www.mredkj.com/javascript/numberFormat.html#addcommas
0
700
posted 13 years ago by fengelz
Sintáxis y clausulas más habituales para consulas SQL con cláusula SELECT que generen una nueva tabla con el resultado de la consulta.
Su sintáxis genérica es SELECT [campos] FROM [tablas] WHERE [criterio]
0
698
posted 13 years ago by alberomo
This is a custom class for caching results through php's session. The class can be used to cache anything, but i use it to cache mysql results so i don't have to get all the time the results by querying MySQL (wich may take a long time, especialy if...
0
1179
posted 13 years ago by TimoZachi