Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Does autoscrolling, language translation, RT, via, and short url destination resolution.
I think a Mac user made this because it doesn't work for Firefox, IE and Opera, but does in Chrome and Safari.
0
1128
posted 16 years ago by rickdog
For moving from older gem to newest if ' sudo gem update --system ' doesn't work
1
1243
posted 16 years ago by inkdeep
Namespace to avoid collision with other javascript variable/method names
1
1415
posted 16 years ago by inkdeep
This comes in handy when working in big objects and you need to see what's happening on the inside of an instance.
I aliased 'console.log' to 'put' and wrapped it in a try/catch block that throws alerts if no console is available. Less typing - an...
1
1406
posted 16 years ago by inkdeep
Due to widespread internet blocking in Iran following the June 2009 election, a network of proxy servers was set up to assist in the free flow of information. The IP range, to the best of my knowledge, should cover the addresses used in Iran, with bl...
0
1603
posted 16 years ago by kwilson
Template Tag body_class
The coming WordPress 2.8 provides a new Template Tag, body_class. This function gives the body element different classes, which gives you the possibility to use it effectively with CSS.
3
1245
posted 16 years ago by jessibird
Quick little clientside script to pick out every 3rd image and add a class of last to it.
I needed this because the images were layed out in 3 columns, adding a margin to the right hand side would leave a large gap on the right hand side which i d...
0
1910
posted 16 years ago by 1man
Adds a method to the Array object that lets you slice the array down to everything before the given value.
0
1083
posted 16 years ago by segdeha
Example
Running:
alphaID(9007199254740989);
will return 'PpQXn7COf' and:
alphaID('PpQXn7COf', true);
will return '9007199254740989'
Easy right?
1
1990
posted 16 years ago by localhorst
For some reason it took me a bit to realize that you had to use datetime.datetime
0
1383
posted 16 years ago by iloveitaly