Welcome To Snipplr


Everyone's Recent Snippets



1 ... 418 419 420 421 422 ... 553
2 1591 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 1355 posted 16 years ago by goddess
Block - install as normal
0 751 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 1325 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 3299 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 1291 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 1633 posted 16 years ago by duniyadnd
1 2251 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 1536 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 1858 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 1666 posted 16 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 4160 posted 16 years ago by bswimley
4 3996 posted 16 years ago by fackz
8 1771 posted 16 years ago by michaelfox
I always forget how to implement a button with active mousecursor....
0 1198 posted 16 years ago by pfeisinger
1 1513 posted 16 years ago by conspirator
0 1165 posted 16 years ago by hlubek
1 1431 posted 16 years ago by demixo
1 ... 418 419 420 421 422 ... 553