Welcome To Snipplr


Everyone's Recent Snippets



1 ... 482 483 484 485 486 ... 553
You'll need to download the latest version of jQuery for this to work, as it is linked in the tag. CSS/XHTML included.
15 4123 posted 17 years ago by dmosher
https://www.chrisjmendez.com/2008/06/04/ruby-open-a-text-file-and-re-write-its-contents-into-a-new-text-file/
1 1750 posted 17 years ago by chrisaiv
alternative to using DateTime.now.to_s
1 1518 posted 17 years ago by jhenry
3 1725 posted 17 years ago by johnloy
This was copied off wordpress FTP plugin
0 1368 posted 17 years ago by luizlopes
0 2618 posted 17 years ago by wintondeshong
This rendition works for most of my tasks, but the inform may need to be changed to suit base64 encoded files.
0 1444 posted 17 years ago by breakerjump
I have fixed and improved some code I found on the Internet
1 1459 posted 17 years ago by ozke
2 1593 posted 17 years ago by gfazioli
1 1196 posted 17 years ago by bpj1966
0 1034 posted 17 years ago by bpj1966
0 1114 posted 17 years ago by bpj1966
2 1309 posted 17 years ago by bpj1966
1 942 posted 17 years ago by xuanyan
Example code would remove all files/folders recursively starting from the current folder named file_name
0 1407 posted 17 years ago by jturmel
Some times you need some specific range of lines from a file and the commands 'head' and 'tail' are not enough for you. This could be a easy solution for this problem.
2 1941 posted 17 years ago by Juanje
Sorry, the comentaries are in spanish. I will translate them some day. The examples results are indicated with: # -> [result] Usually is the "echo" result
0 1097 posted 17 years ago by Juanje
Convert an number to a position / ranking. 1 becomes 1st, 2 becomes 2nd, etc...
2 2084 posted 17 years ago by distinctdev
This snippet shows how to serialize action script object to strings, the serialization method is AMF based, note also that each object must meet three basic rules in order to be serialized properly: ¨1. The constructor must take no arguments...
1 1911 posted 17 years ago by narkisr
I use this code to place in blocks or pages to show a link to the user registration page if the user is not currently logged in. An example is a block I have setup on the home page of http://www.lightentheload.net. If the user is logged in, the block...
0 1344 posted 17 years ago by shrop
0 1135 posted 17 years ago by IanLewis
Recursively SVN rename (move) all thtml-files to ctp-files . Fires this up in CakePHPs /views path.
0 1604 posted 17 years ago by zingo
0 1067 posted 17 years ago by manec
1 ... 482 483 484 485 486 ... 553