Welcome To Snipplr
Everyone's Recent Snippets Tagged c
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
I saw this somewhere else, so I can't claim to have come up with it myself. Def life-saver!
0
1283
posted 16 years ago by charmcitycoder
Modified the code very slightly to add in cursor states for when the timeline is grabbed. Also added in (but commented out) the code to make the sliding twice as fast using a multiplier.
0
1240
posted 16 years ago by davebowker
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
1030
posted 16 years ago by rickdog
For moving from older gem to newest if ' sudo gem update --system ' doesn't work
1
1147
posted 16 years ago by inkdeep
Namespace to avoid collision with other javascript variable/method names
1
1307
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
1293
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
1475
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
1156
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
1779
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
1002
posted 16 years ago by segdeha