Welcome To Snipplr


Everyone's Recent Snippets Tagged c



1 ... 390 391 392 393 394 ... 553
This finds individual CSS attributes, i.e. "foo : bar;" or "bar : 2px solid foo;"
4 2762 posted 16 years ago by mocha0range
This finds CSS style names, i.e. "#foo" or "#foo, .bar" Note: You'll need to chomp the trailing "\s{" off the end of the matched string. I matched it just to make sure that it didn't get anything else.
5 2005 posted 16 years ago by mocha0range
This finds the entire style definition - from #foo to the last brace. i.e. ".foo, #bar { foo: bar; foo: bar; bar: foo; }"
4 1835 posted 16 years ago by mocha0range
This script tries to detect whether an HTTP Proxy works or not. It uses the HEAD command (high-level version of the lwp-request command) to connect to a given URL (http://www.google.com by default) via the given HTTP Proxy. It takes 2 arguments; the...
0 1677 posted 16 years ago by sensimevanidus
1 1987 posted 16 years ago by radarseven
This will return the URL for the category specified (17 in this case)
2 2055 posted 16 years ago by zachwood
When I'm running unit tests, I find it very annoying to have to check equality within loops when I've got two collections of data. I know of no built-in way (let me know if there is one) [Edit: [CollectionAssert](http://msdn.microsoft.com/en-us/libra...
0 1811 posted 16 years ago by pckujawa
This can be used instead of "trace" to populate a text field in addition to the standard trace output. The textfield stays hidden until a selected key combination is pressed, thus allowing you to use it in a staging or, if need be, a production envir...
0 3764 posted 16 years ago by Winkyboy
Add this snipp to any page's body in the cms to show a category's items on that page. "category_id" being the id of the category, duyee.
1 1839 posted 16 years ago by zachwood
If you want to trigger an event on an matched element and that element may be introduced into the DOM from an Ajax request, you can still match against it by using the livequery plugin and the following code.
1 1623 posted 16 years ago by Meander365
Create a custom 404 handler page which redirects you to the correct page.
1 1505 posted 16 years ago by Meander365
Converts a given RGB colour value such as that provided by the imagecolorat() function into an html compliant colour.
1 1613 posted 16 years ago by h4rrisonjames
3 1369 posted 16 years ago by jfleblanc
1 1241 posted 16 years ago by jfleblanc
Works in Safari 3.0
1 1976 posted 16 years ago by ishottheserif
Doesn't work in IE6
2 2011 posted 16 years ago by ishottheserif
3 1936 posted 16 years ago by fackz
Determines whether or not the page has been requested directly, or through AJAX. This can allow for combining a page and related AJAX responses within the same script.
1 2761 posted 16 years ago by Wilco
Convert a coordinate (x,y) into the index for a 1D array. For example, the coordinate (3,1) would be at array index 8 if there are 5 columns. Assumption: Arrays start at 0.
0 3901 posted 16 years ago by helloworlder
count files in a given dir
2 1907 posted 16 years ago by fackz
This slide show was created by Jon Raasch @ JonRaasch.com. Just images. Look for Slide show #2 for a slide show using DIVs. hamiltopia_jquerySlideshow2
3 2302 posted 16 years ago by thehamilton
Simple jQuery Slideshow from JonRaasch.com
1 1838 posted 16 years ago by thehamilton
HTML/CSS Template - HTML 4 Transitional
0 2149 posted 16 years ago by thehamilton
1 1617 posted 16 years ago by benedikt
0 1320 posted 16 years ago by benedikt
0 1655 posted 16 years ago by deepsoul
1 ... 390 391 392 393 394 ... 553