Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
A good CSS example of how to style Horizontal Rule (HR) elements. It's also Internet Explorer (IE) friendly.
3
1935
posted 17 years ago by jonhenshaw
When you klick a link in Firefox... there is a dotted outline. Hide it with outline:none.
0
1022
posted 17 years ago by FlashJunior
A cool script for fixed Footers. Works with i6,i67,all mozilla browsers and safari.
1
1251
posted 17 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
2620
posted 17 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
1736
posted 17 years ago by scarfboy
PACKAGE replace -> com.yourdomain.control
CLASSFILENAME replace -> com.yourdomain.control - folder > MyCustomEvent.as
0
833
posted 17 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
2343
posted 17 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
2027
posted 17 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
960
posted 17 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
1731
posted 17 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
1189
posted 17 years ago by wizard04
Python make url address to Tinyurl in article content like Twitter message
1
1464
posted 17 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
1213
posted 17 years ago by panquetofobia
This Oracle SQL snippet converts an Oracle SQL DATE to a STRING in the form CCYYMMDD.
0
2276
posted 17 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
1442
posted 17 years ago by retry
Uses jQuery to add a class to odd table rows, for purposes of alternating colors, etc.
1
1305
posted 17 years ago by breakerjump
Line 6 starts a loop (which ends with line 15). The ls command returns a list of filenames which are sequentially assigned to the shell variable x. The if test (lines 8 through 10) checks to see if the current filename is that of a plain file. If not...
0
1801
posted 17 years ago by jonhenshaw