Welcome To Snipplr


Everyone's Recent Snippets



1 ... 523 524 525 526 527 ... 553
Recursively creates a directory.
1 1568 posted 18 years ago by IanLewis
Parses the given path and creates a http redirect to that page.
1 1865 posted 18 years ago by IanLewis
CSS image replacement with no extra span needed.
3 1396 posted 18 years ago by 1man
Say you want a containing block with 2 floating elements to expand around the floating element, usually this wouldn't happen since the container has no height because the floating elements are out of the usual flow. The method below fixes this pro...
3 1536 posted 18 years ago by 1man
example: thumb.php?p=image.jpg&s=45
0 1586 posted 18 years ago by iloveitaly
callback in a form alter to enforce an exposed filter to use only the options set in filter. Works for selectlists only.
2 1472 posted 18 years ago by berkes
If there will be multiple sets of these tags in a scanned XML string, you need the '?' after the '*' to specify a non-greedy (lazy) match.
4 2470 posted 18 years ago by rengber
3 1879 posted 18 years ago by huyaroo
Enter this command in Terminal to restart Apache. Especially useful after you've made changes to the hosts file.
2 2121 posted 18 years ago by jonhenshaw
This will highlight all functions not previously defined in PHP for the e text editor. They are assigned to the "entities" in the theme editor. By default, they are highlighted only when originally defined, but not when they are in use in your cod...
0 2164 posted 18 years ago by rjm1982
1 1518 posted 18 years ago by d4rk
6 1848 posted 18 years ago by cmslounge
Useful for setting transparent dropdowns, etc.
6 2794 posted 18 years ago by pmusaraj
This code centers text vertical.
2 1485 posted 18 years ago by narmolanya
Restoring the Quick Launch toolbar "Show Desktop" icon: easy as pie!
0 1221 posted 18 years ago by azazeal
You could eliminate the ListDictionary if you created a simple method to map C# types to DbTypes. Although this method also lets you skip over some object properties my using the ListDictionary to contain a subset of properties. It could also be us...
0 1860 posted 18 years ago by rengber
0 1314 posted 18 years ago by lfbarbieri
2 1410 posted 18 years ago by kotnik
This solution is cool for screen readers, because they also read the text content.
2 1350 posted 18 years ago by narmolanya
This code is based on the ASP script posted by Lio. It will determine the time taken for a php script to execute correct to 0.000000000000001 seconds.
2 1387 posted 19 years ago by kotnik
First, create two new fields in your table "Created", and "LastModified" as "datetime" fields, being sure to allow nulls. Then run this code as a query to create triggers that will update the appropriate field when a record is modified, or a record...
1 3111 posted 19 years ago by jeffxl
1 ... 523 524 525 526 527 ... 553