Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Controls what actions the template's index.php file takes depending on the current state of a module or a set of modules
2
1167
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
1195
posted 16 years ago by goddess
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
1154
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
3133
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
1115
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
1399
posted 16 years ago by duniyadnd
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
1307
posted 16 years ago by mordecaix7
CSS
Cool CSS way to make left- or right-aligned (but not "styled" or "classed") images look pretty with no HTML change.
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
1646
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
1459
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
3904
posted 16 years ago by bswimley