Welcome To Snipplr
Everyone's Recent Snippets Tagged list
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
use flatten to reduce a given list to non-list elements. All elements that are no list will be kept and the lists will be expanded...
0
694
posted 13 years ago by abstraktor
Not only is it really really fast; it's also order preserving and supports an optional transform function
0
1089
posted 13 years ago by magicrebirth
Useful bit of CSS to vertically centre a navigation. Good for Pagination.
1
1058
posted 13 years ago by 1man
his code will show the child pages, and only the child pages, when on a parent or on one of the children.
This code will not work if placed after a widget block in the sidebar.
1
858
posted 13 years ago by raz
Just syntax examples here. First block reads, second writes. Top function just a debugging helper.
Using jquery 1.5, $(xData.responseXML).find("nodeName=z:row]").each(function(i)... may need to be written as
$(xData.responseXML).find("nodeName='z...
0
1270
posted 13 years ago by rumremix
The css style's in the <style></style> tags are important for this snippet to work.
1
1059
posted 14 years ago by bobbym245
The resulting tree is represented through a dict where each father gets a key (with all the children as args)
0
998
posted 14 years ago by magicrebirth
Enables to create a generic list with anonymous types. Very useful for me :).
1
755
posted 14 years ago by wallybh