Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Version differs slightly from the demo, as the src for the thumbnail image is a child of the demo example, so has been slightly modified.
0
1062
posted 15 years ago by davebowker
Insert upto the end of <!--> to cms page and the second half to the custom layout
0
957
posted 15 years ago by ohiggins
find all files owned by xxx and change them to be owned by yyy
0
831
posted 15 years ago by stiobhart
granting DB specific and general access priveleges from the CLI
1
989
posted 15 years ago by stiobhart
an external javascript sort function, which you can import into flash to help sort arrays of objects. include the script thus:
#include "objSort.js"
2
1133
posted 15 years ago by stiobhart
Makes a mono 8-bit (i.e. one byte per sample) wav file, "out.wav" containing a 500 Hertz sine wave signal. 22050 is the sample rate, and 64000 is the total size of audio data in bytes.
1
979
posted 15 years ago by Zufolek
this is a handy snippet to trace the info about any cuepoints actionscript encounters, embedded in a FLV [flash video]. these traces will display the name, type and time of the cuepoint - in a nicely formatted list
0
997
posted 15 years ago by stiobhart
shows the basic structure of a switch statement. switches are useful when you want to respond to a series of possible values that a variable might have, without having to write a shitload of "if(blah blah){do blah}" code which, as we know soon end...
0
1050
posted 15 years ago by stiobhart