Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Now you can write IE specific styles in a regular stylesheet, by prefacing the CSS selectors with body.ie
2
2215
posted 17 years ago by jessibird
I recently found the need to run multiple CodeIgniter applications inside of a single codebase for development & test purposes. So, I rewrote a few lines of the primary index file (/index.php) to automatically route URLs like subdomain.domain.com to...
3
2222
posted 17 years ago by brettbergeron
Detect if an object exists in an array or detect existance of a key in an object
1
1701
posted 17 years ago by quickredfox
File.Basename - A library that provides unix-like tools 'dirname' and 'basename'
0
1458
posted 17 years ago by quickredfox
Remedial Javascript As Proposed by Douglas Crockford (http://javascript.crockford.com/remedial.html)
0
1566
posted 17 years ago by quickredfox
Sometimes I want simple tabs without all the packaging of jQuery UI with a theme. This does the job with just jQuery 1.2.6, and should work with later versions.
3
2251
posted 17 years ago by cyberhobo
Take the contens from a table in MySQL and display it in an email
2
1736
posted 17 years ago by jcroom
Great little bit of code for if you are rewriting URLs but then want the old GET URLs to rewrite to their rewritten URLs (phew). Good for telling Google where the new pages are with a 301 rather than getting both indexed.
In this example, i had a...
0
1688
posted 17 years ago by roflman79
This code will create a human readable string that will look more close to dictionary words, useful for captchas.
3
3062
posted 17 years ago by Mithun
This function converts URLs and e-mail addresses within a string into clickable hyperlinks.
2
2148
posted 17 years ago by Mithun
Sometimes you can't use an image button, you have to use a submit button, but you still want to hide the text and show an image instead.
The width and height can be changed, of course. The point is that they are specified.
Display:block is need...
1
3066
posted 17 years ago by jessibird
The tetex implementation of BibTeX, LaTeX's bibliography tool, forcibly breaks lines above a certain length (79 chars) by inserting % signs and line feeds, unless they can be broken between words. This is a problem when URLs are referenced, or if co...
0
2348
posted 17 years ago by deepsoul
/app/code/core/Mage/Newsletter/Model/Subscriber.php
$this->sendConfirmationSuccessEmail();
0
1562
posted 17 years ago by nico65
adapted from the fantastic „Learning jQuery 1.3“ book
http://www.packtpub.com/learning-jquery-1.3/book
0
1969
posted 17 years ago by cfleschhut
Detects all external/outgoing links, adds class, & adds target = _blank. When using a strict doctype, this method is valid when using target manipulation.
1
1733
posted 17 years ago by dsntos