Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
remove the www usually located at the beginning of the url :
www.url.com -> url.com
http://www.url.com/file.html -> http://url.com/file.html
http://www.url.com/directory/file.html -> http://url.com/directory/file.html
etc...
1
1063
posted 16 years ago by bbnnt
How to align floating images in wordpress posts and add captions.
2
748
posted 16 years ago by j_junyent
Starting from here: http://snipplr.com/view/2534/update-copyright-date-in-php/ I made one that is a little more sussinct (sp?)
0
657
posted 16 years ago by SeanJA
A good CSS example of how to style Horizontal Rule (HR) elements. It's also Internet Explorer (IE) friendly.
3
1321
posted 16 years ago by jonhenshaw
When you klick a link in Firefox... there is a dotted outline. Hide it with outline:none.
0
750
posted 16 years ago by FlashJunior
A cool script for fixed Footers. Works with i6,i67,all mozilla browsers and safari.
1
881
posted 16 years ago by FlashJunior
You can use this command to convert your properties file to ASCII encoded file. Normally you'll need it to convert your language.properties file.
0
1339
posted 16 years ago by Uzbekjon
Assumes logs are in /var/log/sshd/* and makes a few text format assumptions that probably make this specific to OpenSSH.
Simple, but more than you can see from a quick less.
3
1118
posted 16 years ago by scarfboy
PACKAGE replace -> com.yourdomain.control
CLASSFILENAME replace -> com.yourdomain.control - folder > MyCustomEvent.as
0
618
posted 16 years ago by t3flexdev
Drupal helper function to debug a table. Returns the contents and some explanation of a database table in a rendered format (HTML table).
**NOTE** You REALLY do not want to put this function behind any kind of menu_callback and/or on other pages....
1
1505
posted 16 years ago by berkes
(Created for JavaScript)
These are rather forgiving. Spaces, dashes, or periods are allowed as separators. Extensions can be recognized by several strings (#, x, x., ext, ext., extension).
Area code: $1$2
Exchange code: $3
Station code: $...
1
1398
posted 16 years ago by wizard04
For when I catch a bad case of stupid and forget how to write simple php and I need to put the training wheels back on.
Drop this in before the closing body tag on a php page to see a list some of what is happening when the page loads.
0
723
posted 16 years ago by inkdeep
This function takes a string containing a date in "mm/dd/yyyy" or "m/d/yyyy" format and converts it to a date object in AS2.
0
1317
posted 16 years ago by Winkyboy
When there's a URL on a page that's not a link, just highlight it and click this bookmarklet. The URL will open in a new window.
If there are multiple selections (e.g., if you've selected something in each of two frames on the page), they will eac...
1
946
posted 16 years ago by wizard04
Python make url address to Tinyurl in article content like Twitter message
1
1124
posted 16 years ago by huacnlee
This script downloads all mp3 links from given rss/atom feeds.
I wrote this to learn python so I'm sure there are better ways to do this.
Depends on wget.
1
931
posted 16 years ago by panquetofobia
This Oracle SQL snippet converts an Oracle SQL DATE to a STRING in the form CCYYMMDD.
0
1604
posted 16 years ago by retry
This Perl one-liner will remove all newline characters from a text file, replacing them with a space. In the source, all newline characters in the file gear_list.xml are replaced with spaces, and the original file is saved as gear_list.xml.bak
0
1051
posted 16 years ago by retry