Welcome To Snipplr
Everyone's Recent Snippets Tagged c
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
In this example:
*rewrite urls from domain.com to www.domain.com*
This is somewhat documented elsewhere, but not very well, so here's an example on how to perform simple URL rewriting with HAProxy (instead of using mod_rewrite with apache)....
0
2002
posted 17 years ago by alexwilliams
Create two new bookmarks - one for dev, one for live and add the following corresponding code to each.
1
2128
posted 17 years ago by Meander365
gibt die url plus storeview aus, also bspw:
http://yourdomain.com/de/
0
1694
posted 17 years ago by nico65
The quick and easy way to insert CMS Blocks into template (.phtml) files without any layout modifications:
0
2691
posted 17 years ago by nico65
This method is better suited for processing large arrays in the smallest amount of time without affecting the user experience.
0
1722
posted 17 years ago by iTony
This is a raw example of the nested lists structure with inherited numeration.
0
1800
posted 17 years ago by frujo
Here is the MXML source code for a simple FLEX based soundboard. You can download this Adobe AIR application at http://www.ifartair.com/
0
4039
posted 17 years ago by ericfickes
A wrapper may be made to enclose the content of a page, and then you can write descendant CSS rules that mention that wrapper's ID or class name in the selector. But what if only IE thought that wrapper existed? Then those rules would only work for I...
4
2212
posted 17 years ago by Meander365
Think this is a good one to remember.
Let's say you have a set of list items and all of them have a border of 1px. Inside you have an image.
When you hover over each list item you want the border to change thickness to 2px.
The trick is to...
1
2068
posted 17 years ago by Meander365
Since an asynchronous method is usually one you call and then it invokes a callback when it is finished, it is not obvious how to test such a method in a definite manner. In the method described at the above URL, the author uses .NET's System.Threadi...
1
2643
posted 17 years ago by pckujawa
This is a really useful techniques for preloading images on your website. Just place this code after the body tag in the CSS file. Everytime you refer to this image in your CSS file the image will be loaded from cache.
1
1815
posted 17 years ago by SunilTee
Dies zeigt die StoreView ID an <?php>getStore()->getId(); ?><br>
Dies zeigt den StoreView Namen an<?php>getStore()->getName(); ?>
Dies zeigt die StoreNamen ID an<?php>getStore()->getGroupID(); ?>
Dies zeigt den Storenamen an <?php>getStore()->getG...
0
1666
posted 17 years ago by nico65