Welcome To Snipplr


Everyone's Recent Snippets



1 ... 418 419 420 421 422 ... 554
Remove item (number or string) from array, using jQuery (method grep).
3 14243 posted 16 years ago by gustavopaes
2 931 posted 16 years ago by kokikr
Controls what actions the template's index.php file takes depending on the current state of a module or a set of modules
2 748 posted 16 years ago by sfjalar
2 925 posted 16 years ago by sfjalar
Down & Dirty Wordpress code to show specific links only to admininstrators. Can be refined using WP roles and Capabilities for more specific needs.
3 886 posted 16 years ago by goddess
Block - install as normal
0 476 posted 16 years ago by fearghalmurphy
This is an example piece of code that will load a SubSonic collection into the "col1" object. The collection class is told to look for the column "VendorId" in the products table and pull it based based on the matching supplied vendorId.
0 857 posted 16 years ago by mordecaix7
Cairngorm pretty much just works in Gumbo straight out of the box. Only hiccup I found was that you can't instantiate the services and controller components using mxml tags. Just define them once in the main application using ActionScript and you s...
0 1025 posted 16 years ago by GarthDB
This is an example of how to define a default skin in a component written in ActionScript 3 that extends a spark component.
0 845 posted 16 years ago by GarthDB
I'll never learn how to use this Markdown system. Anyway, here is the fixed code based on my comment on the following page: http://snipplr.com/view/14206/replace-spaces-with-underscores/ I'm sorry, I don't mean to hijack the code. :(
0 1059 posted 16 years ago by duniyadnd
1 1766 posted 16 years ago by Unsafe
Sometimes you may need a carriage return in your text. Line 1 is the code for a carriage return in C# and line 3 shows an example of how to use it.
0 984 posted 16 years ago by mordecaix7
When we can't or won't change the code of image tag with align attribute, but no 'style="margin: 0 10px 10px 0;' or 'hspace=10px' (IMHO, hspace makes bad looking layout in most cases) code within (just pure <img> code), we can use simple CSS rules f...
1 1172 posted 16 years ago by kossmoss
Thanks to perishablepress.com for this. Below is an example for ie6 max-height. From their site: "This method has been verified in IE6 and should also work in IE5. Simply change the values to suit your needs (code commented with explanatory notes...
1 1076 posted 16 years ago by charmcitycoder
1 ... 418 419 420 421 422 ... 554