Welcome To Snipplr
Everyone's Recent Snippets Tagged c
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
like array_key_exists but accepts an array of key values to check
0
1004
posted 16 years ago by iloveitaly
this function processes a URL that 'should' be a full url (i.e. http://something.com/dfsdfs/)
and makes sure it contains http:// for easy inclusion as a link into a href attribute
0
1150
posted 16 years ago by iloveitaly
I did write this snippet, I found it somewhere on the internet (I think I found it in a .bash_profile file in [dotfiles.org](http://www.dotfiles.org/)
Paste this code at the end of your .bash_profile file and the use it instead of man if you want...
0
1127
posted 16 years ago by AzizLight
К Ñтому моменту у Ð²Ð°Ñ ÑƒÐ¶Ðµ должно быть доÑтаточно знаний, чтобы Ñериализовать объект. Ðо как работает Ñтот механизм? Ðлгоритм Ñериализаци...
0
1086
posted 16 years ago by beresovskiy
[Google's "AJAX Libraries API"](http://code.google.com/apis/ajaxlibs/) is great and all, but can slow things down if you're doing a lot of refreshing/cache clearing while debugging. Here's a neat trick: stuff something like this in the `<head>` of yo...
1
1738
posted 16 years ago by jdbartlett
Assign methods to a Function prototype when you intend to create instances of the type of object. Use object literals when you just need a container for functions.
0
1632
posted 16 years ago by segdeha
When you have a URL like this
http://mysite/newsletters/index/2007
The find('first') method adds the 2007 value as ID parameter
WTF!?
0
1192
posted 16 years ago by sveggiani
Use javascript to add a class of last onto the first and the last li tags in the navigation (add to global.js). Then use css to style. For instance, if the first li is home, you can set the css to hide this link (if you want the logo to act as your h...
5
2040
posted 16 years ago by kstetson