Welcome To Snipplr


Everyone's Recent Snippets



1 ... 418 419 420 421 422 ... 553
Down & Dirty Wordpress code to show specific links only to admininstrators. Can be refined using WP roles and Capabilities for more specific needs.
3 1480 posted 16 years ago by goddess
Block - install as normal
0 839 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 1424 posted 17 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 3423 posted 17 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 1394 posted 17 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 1753 posted 17 years ago by duniyadnd
1 2389 posted 17 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 1646 posted 17 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 1996 posted 17 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 1799 posted 17 years ago by charmcitycoder
I changed the code on the web site slightly to get it to work with the registry editor. Once this new shell command is in place, right click on the directory of interest, and select "Delete SVN Folders" to strip all the .svn folders from the direc...
2 4376 posted 17 years ago by bswimley
4 4180 posted 17 years ago by fackz
8 1905 posted 17 years ago by michaelfox
I always forget how to implement a button with active mousecursor....
0 1321 posted 17 years ago by pfeisinger
1 1649 posted 17 years ago by conspirator
0 1265 posted 17 years ago by hlubek
1 1538 posted 17 years ago by demixo
1 ... 418 419 420 421 422 ... 553