Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Gets the present time and date in PHP and formats it for input into a MYSQL database DATETIME field
1
687
posted 16 years ago by TimFletcher
This gets the current page addr. and send it...
Modify form action="" to send values to proper mail function - or - class.
3
996
posted 16 years ago by skywalker
This is an example of how to search within a Ferret index (based upon http://kasparov.skife.org/blog/src/ruby/ferret.html).
1
976
posted 16 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
1081
posted 16 years ago by narkisr
Very minimal. Some homegrown API seeds from a while ago. Just posting for use as some php examples.
0
903
posted 16 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
946
posted 16 years ago by mandric
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
870
posted 16 years ago by cczona
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
853
posted 16 years ago by AdrianShort
I didn't create this but I use it all the time. Just drop it in lib/tasks/fixtures.rake
1
759
posted 16 years ago by markpercival
"-b" and "-a" tells grep to show you 10 lines before and 10 lines after
0
849
posted 17 years ago by lakedenman
A way to post to twitter from Google AppEngine using urlfetch.
4
1137
posted 17 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
4399
posted 17 years ago by inkdeep