Welcome To Snipplr


Everyone's Recent Snippets Tagged c



1 ... 356 357 358 359 360 ... 554
0 905 posted 15 years ago by joe-bbb
1 842 posted 15 years ago by fabianschoefisch
Proper enumerations in PHP are hard to come by. This uses a class as a pseudo enumeration. Sometimes you'll want to lookup the string name side of the enum when you have the value (ie, you have "1" and you want the string "Flood").
0 913 posted 15 years ago by benjaminpearson
Simple script that returns to us a list with possible TimeZones
0 1098 posted 15 years ago by AzizLight
0 855 posted 15 years ago by wearetherock
This function takes a start time, an end time, and an interval ("step size"). It returns an array of times separated by that interval between the start time and end time (similar to what Google Calendar does). The keys of the array are the number o...
2 833 posted 15 years ago by bachya
0 990 posted 15 years ago by rareyman
0 899 posted 15 years ago by gd6d
0 873 posted 15 years ago by tclancy
Creates the table using the VB
0 1419 posted 15 years ago by staley412
The code to find all objects from a model and use them as select options.
1 1181 posted 15 years ago by smoothdzion
need to be reviewed
2 982 posted 15 years ago by bionickid
Dates and Time are always important to understand in any language. PHP has some rockin' functions but here are a few that I use the most.
0 1086 posted 15 years ago by chrisaiv
0 942 posted 15 years ago by petethered
0 739 posted 15 years ago by svenkaemper
0 1047 posted 15 years ago by chrisaiv
For separating a list of categories with a comma that are linked. There may be a better way. Leave a comment if you have a better way. This was the first way I found that worked. This code increments the count 1 at a time. It applies the incre...
1 936 posted 15 years ago by smoothdzion
0 1100 posted 15 years ago by chrisaiv
Used to create checkboxes to select multiple categories for a post or any other type of applicable situation.
1 874 posted 15 years ago by smoothdzion
0 950 posted 15 years ago by Ateneatech
0 1003 posted 15 years ago by iTony
Gets the outerHTML of a DOMElement. For a more optimal version check the URL.
0 1215 posted 15 years ago by Znupi
This is a snippet that will animate in a circle in a clockwise fashion based on the parameters the function is passed. It can be used to create a circular or clock wipe when used as a mask.
2 1302 posted 15 years ago by sottenad
Just updated for WP 3 (added wp_postmeta table for menus)! Test out the new installation thoroughly but everything should be fine, and your CMS should be running live on the new server!
0 1006 posted 15 years ago by beneberle
1 ... 356 357 358 359 360 ... 554