Welcome To Snipplr


Everyone's Recent Snippets



1 ... 408 409 410 411 412 ... 553
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 1533 posted 17 years ago by iloveitaly
2 2401 posted 17 years ago by iloveitaly
2 2283 posted 17 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 1503 posted 17 years ago by AzizLight
К этому моменту у вас уже должно быть достаточно знаний, чтобы сериализовать объект. Но как работает этот механизм? Алгоритм сериализаци...
0 1528 posted 17 years ago by beresovskiy
/libraries/joomla/html/html/behavior.php ~line 108
0 1471 posted 17 years ago by nico65
0 1655 posted 17 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 2305 posted 17 years ago by jdbartlett
1 2187 posted 17 years ago by gfazioli
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 2137 posted 17 years ago by segdeha
More of a setQueryString
0 1638 posted 17 years ago by iloveitaly
0 1492 posted 17 years ago by bhubbard
0 1541 posted 17 years ago by bhubbard
0 1497 posted 17 years ago by sinecera
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 1563 posted 17 years ago by sveggiani
0 1429 posted 17 years ago by sinecera
0 1542 posted 17 years ago by sinecera
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 2470 posted 17 years ago by kstetson
Div will fade in on load or fade in on click
1 2387 posted 17 years ago by kstetson
To arrange multiple dynamic sidebars in wordpress, add the following code snippet into functions.php. The sidebar should then appear in the dropdown menu in wordpress under the widgets section. Next, go into your sidebar.php file & edit the dynamic s...
2 1747 posted 17 years ago by kstetson
1 ... 408 409 410 411 412 ... 553