Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Just wack this in the footer followed by the company name and you're copyright will always be up to date
0
1725
posted 15 years ago by SideProject
Inserts WordPress shortcode outside the loop in a template
1
1617
posted 15 years ago by primitiveshaun
I like how this site uses jQuery to center some elements and I wanted to save the code incase they change their site ever.
2
1848
posted 15 years ago by greenconure
The option elements in the original select may provide an image and a second line of text by using a data-img and a data-info attribute.
7
2736
posted 15 years ago by peckham
When running live filters on large, long scripts you can get old, stale results replacing your new, fresh ones. After all, a search for everything containing 'S" in a large database of city names can take a lot longer than "Seattle", so your script g...
2
2473
posted 15 years ago by FatFolderDesigner
Needed this to have the index.php or main blog page show the full content for the first two posts and then just the excerpt for the rest and still have pagination working.
2
1843
posted 15 years ago by rliverman
Template for a Object Literal Architecture in javascript, in this case jQuery
0
1580
posted 15 years ago by athanassiadis
Place script into Automator (select "Run Shell Script" choose /usr/bin/ruby as the shell).
You'll need to create a bit.ly account which will give you your API key for authentication.
0
1710
posted 15 years ago by insanedreamer
This snippet could be useful if you use an div based design eg. with a slider or something similar. it grabs variables from the base url splitted by "#".
So you can browse to your site like "http://www.example.com/#1#2" and use the first and secon...
0
2044
posted 15 years ago by disas