Welcome To Snipplr


Everyone's Recent Snippets Tagged c



1 ... 487 488 489 490 491 ... 552
Any time I make PHP applications that interact with a database, I use this script. It generates one or more self-populating "View Objects" (a class that represents a single record from a DB). For example, rather than access a MySQL record-set by arra...
1 2173 posted 18 years ago by donkawechico
Gets the present time and date in PHP and formats it for input into a MYSQL database DATETIME field
1 1519 posted 18 years ago by TimFletcher
Put at beginning of system.web tags
0 1447 posted 18 years ago by czapata
This gets the current page addr. and send it... Modify form action="" to send values to proper mail function - or - class.
3 2215 posted 18 years ago by skywalker
by Chris Coyier
1 1650 posted 18 years ago by lister
This is an example of how to search within a Ferret index (based upon http://kasparov.skife.org/blog/src/ruby/ferret.html).
1 1832 posted 18 years ago by narkisr
This is a simple example for building a search index with the Ferret library (based upon http://kasparov.skife.org/blog/src/ruby/ferret.html).
1 1966 posted 18 years ago by narkisr
Very minimal. Some homegrown API seeds from a while ago. Just posting for use as some php examples.
0 1861 posted 18 years ago by mandric
Not sure why I'm posting this madness. Bash can be good for some things though. I think part of the reason I used bash was because I was calling alot of external commands.
0 1941 posted 18 years ago by mandric
the above url has some helpful parameters
1 1671 posted 18 years ago by cori
Changing default settings The defaults for the ssh-related commands can be altered for each account in a configuration file ~/.ssh/config (there is also a system-wide file, usually /etc/ssh/ssh_config). Each entry starts with a Host keyword. You c...
0 1790 posted 18 years ago by cczona
0 1692 posted 18 years ago by Mikker
Smooth scroll to anchor links, requires Interface plugin
9 2527 posted 18 years ago by madmanlear
1 1891 posted 18 years ago by lakedenman
The lazy way to generate XHTML-valid width and height attributes for your images. This is incredibly inefficient, though I believe (ref?) that calls to getimagesize() are cached.
2 1931 posted 18 years ago by AdrianShort
2 2590 posted 18 years ago by therobot
I didn't create this but I use it all the time. Just drop it in lib/tasks/fixtures.rake
1 1566 posted 18 years ago by markpercival
0 1583 posted 18 years ago by vanne
1 1554 posted 18 years ago by klunkatronic
0 1417 posted 18 years ago by jonallanharper
0 1838 posted 18 years ago by iTony
"-b" and "-a" tells grep to show you 10 lines before and 10 lines after
0 1710 posted 18 years ago by lakedenman
A way to post to twitter from Google AppEngine using urlfetch.
4 2315 posted 18 years ago by sgraber
I use this in addition to the number_format (http://snipplr.com/view/5945/javascript-numberformat--ported-from-php/) snippit in SWFUpload to display the size of files a user is preparing to upload.
0 8190 posted 18 years ago by inkdeep
1 2043 posted 18 years ago by sherakama
1 ... 487 488 489 490 491 ... 552