Welcome To Snipplr


Everyone's Recent Snippets



1 ... 253 254 255 256 257 ... 553
Grab Google CDN's jQuery. Fall back to local if necessary, Taken from the HTML5 Boilerplate.
1 1904 posted 15 years ago by f6design
Always force latest IE rendering engine (even in intranet) & Chrome Frame. Taken from the HTML5 Boilerplate.
0 1833 posted 15 years ago by f6design
How to get a custom product attribute inside a view (.phtml) file.
0 1406 posted 15 years ago by TioSolid
Add this code to your App.xaml.cs inside your App class to enable a static property that will give you the current theme at runtime.
0 1532 posted 15 years ago by jacob4u2
Simula in Django i campi created e updated aggiornati automaticamente alla creazione e alla modifica del record (Versione 2 senza funzione save ridefinita)
0 3577 posted 15 years ago by munkypot
This is partial code for calling a custom foxycart shipping request.
0 1187 posted 15 years ago by webmovementllc
2 1840 posted 15 years ago by g8rpal
Cleans SVN from a directory and all sub directories.
0 1263 posted 15 years ago by skechy
Can be used as default.htm page to redirect to the desired page
0 1335 posted 15 years ago by fnx
1 2920 posted 15 years ago by online
1 1614 posted 15 years ago by xz
Allows you to read any config in the magento database based in its path. The path is defined inside the system.xml file of the module. The table is core_config_data
0 1594 posted 15 years ago by TioSolid
0 1541 posted 15 years ago by batfan
0 1610 posted 15 years ago by traeregan
The first thing to do is to create header files. Create as many different headers as you want. In this exemple, I have created 3 custom headers from my theme default file header.php, names headercontact.php, headergallery.php and headerdefault.php....
1 1955 posted 15 years ago by stephcode
Replace "getMyAttribute" with "get" followed by the attribute name in camel case.
0 1320 posted 15 years ago by Groove
Formy is CSS Framework for better form management.
1 1231 posted 15 years ago by mike_fowler
0 1266 posted 15 years ago by antti
Another handy one and one which I see quite often. You rollover an element and it animates. You then mouseover and mouseleave really quickly, multiple times and all the animations gets queued. This solves that problem. The delay(200) is like adding...
1 1722 posted 15 years ago by Meander365
Handy. Hide an element as soon as possible, before document.ready. The element gets hidden but only when a class is applied to the html via js.
1 1484 posted 15 years ago by Meander365
I can see this being useful for when you want to pass a lot of associated data to an event handler from elements and their chosen trigger action.
1 1761 posted 15 years ago by Meander365
As an example – will find and replace all `<b>` elements with `<strong>`
0 4316 posted 15 years ago by jayphen
This also use PIE.htc to force rounded corners in IE.
0 1817 posted 15 years ago by Meander365
Use this function to filter your first and last menu items and assign them each a specific class name. This is very handy when applying separators in CSS but want to exclude the first and/or last items.
3 1698 posted 15 years ago by fjarrett
1 ... 253 254 255 256 257 ... 553