Welcome To Snipplr


Everyone's Recent Snippets



1 ... 431 432 433 434 435 ... 552
Here's a quick snippet of code to raise the minimum age of your site. Note that it is illegal to lower the legal age of your site under 13. Legal Disclaimer: Affiliate shall indemnify and hold KickApps, its licensors and each such party's parent o...
0 1598 posted 17 years ago by krunkosaurus
These 4 lines of code can be used to extract and return all links from any page using regex patterns. If links are found, an array is returned, else boolean false is returned.
4 3004 posted 17 years ago by gdvickery
This method is a bit faster and more reliable then using the "explode" method. Works with PHP 4.0.3 and up.
4 2451 posted 17 years ago by gdvickery
Alternative to [http://snipplr.com/view/12616/strip-url-to-its-domain-name/](http://snipplr.com/view/12616/strip-url-to-its-domain-name/, "this snippet"), as it didn't come out clearly in the comments. Update - Edited based on gdvickery's commen...
3 2512 posted 17 years ago by duniyadnd
0 1708 posted 17 years ago by java2025
0 1768 posted 17 years ago by johnloy
Very simple snippet to include if you want to auto update the year in a page copyright using PHP.
6 2361 posted 17 years ago by 1man
1 2172 posted 17 years ago by fackz
Para utilizar, proceda assim: echo formata_data_extenso('2007-04-17'); echo formata_data_extenso('2007-04-17 15:20:35');
1 2075 posted 17 years ago by fackz
Outputs an image path from a defined directory.
2 2232 posted 17 years ago by dsntos
0 2073 posted 17 years ago by rolandog
Say you've got data combined in such a way that there is a repeated row header, but all the data is in different rows. If you were to consolidate all the rows down to one, only taking valid values (discarding blanks), you'd have one header row with a...
0 1711 posted 17 years ago by pckujawa
[Video Example](http://screencast.com/t/L6E0xI0J5P) A cross browser image caption on mouseover. Using jquery, CSS. This is a bit crude but pretty simple to implement. Just change the image width, some css to match that image size and create dyn...
4 2330 posted 17 years ago by jadedbat
Can be applied to any element, but is most relevent when applied to an image.
2 1913 posted 17 years ago by Unreal
Useful to remotely assist another person. 1. Connect to his computer using ssh 2. Execute first command listed below 3. The other person must open a terminal and execute the second command 4. Both are connected to the same terminal "screen"
1 2230 posted 17 years ago by Dorgendubal
Useful when you have to deal with ClassNotFoundException. The command looks for all jar in the current directory and any sub-directory, and checks if the jar contains the specified class. The command lists all matching jars.
0 2259 posted 17 years ago by Dorgendubal
To find your numerical Twitter ID, login to Twitter and click on your RSS feed (bottom of the page). The URL will look something like http://twitter.com/statuses/friends_timeline/12345678.rss. Your ID will be the 12345678.
9 2544 posted 17 years ago by nerdsane
Useful to quickly backup a folder by synchronizing it to another partition/disk.
0 1681 posted 17 years ago by Dorgendubal
Useful to quickly identify processes listening to ports (to eventually kill them).
0 1830 posted 17 years ago by Dorgendubal
Useful to convert all matching files from one encoding to another. Some examples:
1 2584 posted 17 years ago by Dorgendubal
* _HOST_: remote host * _PORT_: ssh port (default 22) * _PATH_: remote path to synchronize
0 1738 posted 17 years ago by Dorgendubal
0 1599 posted 17 years ago by spark9
1 2105 posted 17 years ago by hokasu
0 1497 posted 17 years ago by spark9
0 1553 posted 17 years ago by spark9
1 ... 431 432 433 434 435 ... 552