Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
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
1816
posted 16 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
1674
posted 16 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
2206
posted 16 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
1469
posted 16 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
1273
posted 16 years ago by nico65
Enables you customise the colour of your <li> bullet points.
0
1615
posted 16 years ago by nostradamuszen
This function is very helpfull when you need to put some data (that was gotten from database) to HTML table. You can choose vertical or horizontal types.
**Horizontal type:**
| 1 | 2 | 3 |
| 4 | 5 | 6 |
| 7 | 8 | 9 |
**Vertical type:**...
1
2545
posted 16 years ago by kirik
These four LaTeX control sequences are workalikes of the built-ins \show, \showthe and \def and of a command sequence call. Unlike the usual variants, they work on internal macros which contain characters with the "wrong" category code, such as "@"....
0
3672
posted 16 years ago by deepsoul
URLs:
<http://www.chiark.greenend.org.uk/~sgtatham/utils/> <http://kitenet.net/~joey/code/moreutils/>
Use one of these nifty utilities to automatically process files in-place. Both store the results of programs which write to stdout until t...
0
1429
posted 16 years ago by deepsoul
The following shell function returns the canonicalised abolute path of a file. It resolves symbolic links, /./ and /../ as applicable. This was adapted from various sources. Related snippets on snipplr are [Find absolute path of Bash script](http:...
0
1353
posted 16 years ago by deepsoul