Welcome To Snipplr


Everyone's Recent Snippets Tagged c



1 ... 500 501 502 503 504 ... 554
Forms a php timestamp out of an date string i.e. create_timestamp(24.12.2007);
0 812 posted 17 years ago by razel
Fallback Function for versions earlier then php5
0 1061 posted 17 years ago by razel
Fallback Function for versions earlier then php5
0 1037 posted 17 years ago by razel
Fallback Function for versions earlier then php5
0 1325 posted 17 years ago by razel
In light of last nights tornado warnings here in TN, I thought it appropriate to post this little bit of code that I use to alert myself and others of dangerous weather conditions via SMS/Email alerts. I run this through cron at Dreamhost without...
9 1562 posted 17 years ago by johnself
The data source which can be used in combination with jasper reports.
0 1045 posted 17 years ago by narkisr
PHP function that creates a mySQL INSERT statement for mime types. Type are extracted from a text file.
0 1125 posted 17 years ago by fabian
0 1080 posted 17 years ago by jmelgoza
Decorator design pattern implemented in Groovy, two implementation are provided, the first is naive and not general, the second is MOP based and can be used in much more scenarios.
0 1513 posted 17 years ago by narkisr
Mediator design pattern implemented in Groovy (based upon http://www.javacamp.org/designPattern/).
1 1375 posted 17 years ago by narkisr
It does not show the grants themselves, but shows all users with grants.
0 1157 posted 17 years ago by therobot
In Ruby you can write 5.times { print "Hello World" } . With a simple extension method I was able to do something similar with C#.
0 925 posted 17 years ago by Soft
This script removes (DROPS) all tables that start with foo_. Usefull if you had some CMS or application that (ab)uses table prefixing, and want to clean 0ut your database. NOTE: the data is remove FOREVER! So take good casre: make backups and all...
2 1530 posted 17 years ago by berkes
0 1067 posted 17 years ago by rengber
snippet from project.ioni.st - Marcel Molina (?)
3 1919 posted 17 years ago by tcol
need the magpie code
1 1002 posted 17 years ago by fritz
After installing WordPress an .htaccess file with the following code needs to be added to the wp-includes folder.
1 978 posted 17 years ago by m00min
1 1368 posted 17 years ago by zingo
Pretty intuitive, might be an easier/simpler way.
0 1289 posted 17 years ago by rengber
Use this code to remove HTML from a string.
0 1397 posted 17 years ago by meme
The code below will format 2008-01-30 10:58:32 to Jan 30, 2008 See the page http://us2.php.net/date for a complete list of formatting codes.
2 1611 posted 17 years ago by meme
Add this to an .htaccess file.
1 1047 posted 17 years ago by m00min
Full reziseable Boxmodel, nice for effectfull glow or shadow PNGs. Resize browserside fontsize for the testpage (see URL).
9 2201 posted 17 years ago by Malte
A simple testing assertion which looks up for a line within a file until a pre defined time frame ends (loosely based upon http://www.informit.com/guides/content.aspx?g=java&seqNum=226).
0 1415 posted 17 years ago by narkisr
1 ... 500 501 502 503 504 ... 554