Welcome To Snipplr


Everyone's Recent Snippets Tagged c



1 ... 407 408 409 410 411 ... 553
change user's home directory
0 1403 posted 17 years ago by stiobhart
1 1376 posted 17 years ago by Eloi
enable and disable sites and modules in apache 2
0 33873 posted 17 years ago by stiobhart
granting DB specific and general access priveleges from the CLI
1 1720 posted 17 years ago by stiobhart
CLI commands for backing up mySQL database
2 2970 posted 17 years ago by stiobhart
making a symbolic link
0 1500 posted 17 years ago by stiobhart
some basic *nix terminal commands
0 1602 posted 17 years ago by stiobhart
load in XML and style the text via CSS
1 2052 posted 17 years ago by stiobhart
actionscript date object and some date calculations
1 1642 posted 17 years ago by stiobhart
code to implement a paypal button in flash
0 1655 posted 17 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 1905 posted 17 years ago by stiobhart
this will loop through an object and get all its properties
0 1449 posted 17 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 1647 posted 17 years ago by Zufolek
Useful for SBApplication scripting bridge.
0 2107 posted 17 years ago by iloveitaly
identify listening ports and services running on these ports
0 1415 posted 17 years ago by stiobhart
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 1759 posted 17 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 1749 posted 17 years ago by stiobhart
this code loads in the necessary actionscript classes for dealing with FLV [flash video] and metadata [in this case cuepoints]. this needs to be loaded right at the beginning of your code, so flash knows how to handle cuepoints embedded in FLV [flas...
0 1785 posted 17 years ago by stiobhart
basic structure of the actionscript function to listen for cuepoints embedded in a piece of FLV [flash video]. note: cuepoints need to have been embedded when the video was converted from its original format to FLV - prior to importing it into flash
0 1869 posted 17 years ago by stiobhart
prob works on other linuces too!
1 1469 posted 17 years ago by stiobhart
Enable jQuery on any website, just clicking on a bookmarklet with this code. Or drag & drop this on your bookmark bar: <a href="javascript:(function(){var%20s=document.createElement('script');s.setAttribute('src','http://ajax.googleapis.com/ajax/libs...
4 1622 posted 17 years ago by danielfilho
This code replaces a normal category template. It sorts all posts by their category/subcategory instead of bunching them all together and ordering them by date. A bit complicated to explain in a box this size... Check the link for a run through!
1 2081 posted 17 years ago by rocktronica
If you leave out the "paged" parameter, the same results are queried and shown on each pagination. Of course, you'll want to change the "3" to whichever category you'll want to exclude.
3 2077 posted 17 years ago by rocktronica
Download all tutorial pages of html format recursively. Ex: http://www.moraware.com/help/ Get the url of tree frame (left), use it in wget. Have fun :)
0 1609 posted 17 years ago by abhiomkar
I was asked to add Recaptcha' to an already existing form. I didn't want to interfere with the code so I decided to search for some sort of AJAX solution. Here's my implementation of DarkSideOfTheCarton.com. This form needs to have a form with <fo...
1 2735 posted 17 years ago by chrisaiv
like array_key_exists but accepts an array of key values to check
0 1215 posted 17 years ago by iloveitaly
1 ... 407 408 409 410 411 ... 553