Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
# useful links:
# (WMI space definition) http://msdn.microsoft.com/en-us/library/aa394084(VS.85).aspx
# (OLE usage on CPAN) http://cpan.uwinnipeg.ca/htdocs/Win32-OLE/Win32/OLE.html#Object_methods_and_properties
1
1964
posted 16 years ago by vinocui
Groovy script that creates an XML file using an XML template containing ${params} and a standard Java Properties file
0
1808
posted 16 years ago by gripnrip
Some PHP code that can be used to get formatted HTML containing N number of tweets for a given twitter user.
5
2342
posted 16 years ago by gripnrip
This script shows the top 10 worst indexes (in terms of selectivity %) on the whole MySQL server instance. Selectivity is the percentage of distinct values in an indexed field compared to the number of records in the table.
Note that this query can...
1
1457
posted 16 years ago by Eloi
In this Thesis WP tutorial for multiple custom page templates, we find code for making a custom homepage template as well.
2
1493
posted 16 years ago by mlangfeld
Clearfix with 2 different classes: page, section
Section: takes up a whole row (much like TR);
Page: is the container for each section
0
1632
posted 16 years ago by chrisjlee
This code to be added to custom_functions.php May also need to add to custom.css to style your custom widget. (This code found towards the end of the article).
2
1552
posted 16 years ago by mlangfeld
this script splits the csv file two times (1. on "new line", 2. on ";") and returns a two dem array in the last for loop.
2
1702
posted 16 years ago by antpaw
One way to fix many of the issues with IE7 is to dynamically reverse the default z-index stacking order of the elements on your page. This will ensure the elements higher in your HTML source will also have a higher z-index order on your page, solving...
3
1740
posted 16 years ago by justinseiter
This creates a custom HTML header in Thesis with a logo and an advert section (to be used instead of CSS image replacement).
Example CSS to use with it:
.custom #header:after {content:"."; display:block; height:0; clear:both; visibility:hidden;...
5
1952
posted 16 years ago by kristarella
This is a good way to validate form input from PHP, in essence this could be a blue print for your forms.
5
1966
posted 16 years ago by brownrl
This is a short and sweet snippet that will save the users form input after PHP runs validation and returns false. Very good for User Experience!
0
1492
posted 16 years ago by montanaflynn
This will create and then populate a MySQL table with a list of the names for countries in existence. Country names are in Turkish language.
0
2333
posted 16 years ago by sensimevanidus
- a javascript for alternate row/column table striping
- supports row hover, column hover and cell hover effects and click events.
demo here:
http://www.frequency-decoder.com/demo/table-actions/
0
1498
posted 16 years ago by beneberle
I saw this somewhere else, so I can't claim to have come up with it myself. Def life-saver!
0
1414
posted 16 years ago by charmcitycoder
Modified the code very slightly to add in cursor states for when the timeline is grabbed. Also added in (but commented out) the code to make the sliding twice as fast using a multiplier.
0
1408
posted 16 years ago by davebowker