Welcome To Snipplr
Everyone's Recent Snippets Tagged c
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
The marquee will stop when you hover the cursor over it. It will restart when you move the cursor away from it.
1
2170
posted 14 years ago by o0110o
This function dosen't use curl, or any other libraries. Just include it in your function library and use it like this:
$Post_result = _post('http://www.yourdomain.com/your_path/post_api.php',"method=fetchJson¶ms=select * from user");
0
3600
posted 14 years ago by halk
A function to upload an image to the media library and set it as featured image of a post. It requires 2 params. The name of the upload field and of course the post ID.
This function is part of the WPelements library class available on Github. Fee...
0
3590
posted 14 years ago by krike
A usefull function to minify code or string. This is part of the WPelements library class available on Github.
Feedback / suggestions / improvements are welcome.
0
1938
posted 14 years ago by krike
My first (simpliest) way to collect monitoring data from few servers. Only skeleton for adding custom parameters. Using this way is not a good idea in general.
1
1801
posted 14 years ago by 2mf
AL subir imagen png, se deben pasar al directorio con transparencia
0
2312
posted 14 years ago by thescorpion
AL subir imagen png, se deben pasar al directorio con transparencia
0
2180
posted 14 years ago by thescorpion
Backs up all database transaction logs within a Microsoft SQL Server instance except for databases set to simple recovery mode.
1
2089
posted 14 years ago by jprochazka
Backs up all databases contained in a Microsoft SQL Server instance.
1
2089
posted 14 years ago by jprochazka
Just a snippet I like; this can be called on GotFocus or LostFocus of a field, and it *attempts* to set the input language to the desired language.
0
1841
posted 14 years ago by Winkyboy
Thanks to @kaiser on WP answers for this.
Place this function in your functions.php file, then use it in your template with the function call like:
wpse19316_author_comments( 100 );
1
2279
posted 14 years ago by adambundy
Shows how to use WebClient class to retrieve HTML from an URL and then to use HtmlAgilityPack to parse it.
1
3068
posted 14 years ago by denakitan
CSS media queries for common screen sizes which are ignored in older browsers.
3
1981
posted 14 years ago by o0110o
this handy function gets all child tabs for the tab id you pass in, only those that are meant to appear in the menu.
0
2107
posted 14 years ago by box86rowh
A concise reference listing all of the available functions built into Sass.
0
4215
posted 14 years ago by nshakin
I recently wanted to learn Sass and after reading the documentation I looked around for a more concise set of docs to reference while writing but couldn't find anything. So I made my own based off of what was in the documentation of Sass's website....
0
4340
posted 14 years ago by nshakin
The fixed page layout responsive design CSS used in Nexus Themes Framework
0
2209
posted 14 years ago by vanseijen
Adding alternating row of color to make proc report output easier to read.
0
2825
posted 14 years ago by webonomic
Soma example of validation parentheses in math expressions.
[{()}] - valid
[{){}] - wrong
0
3000
posted 14 years ago by AlexanderRavikovich
.on( events [, selector] [, data], handler(eventObject) )
A delegated-events approach attaches an event handler to only one element, the tbody, and the event only needs to bubble up one level (from the clicked tr to tbody):
0
2053
posted 14 years ago by grindking
display an image field in the body/page of a custom post type
0
1932
posted 14 years ago by mktimes5
A very good slider / carousel. Um slider / carrossel muito bom. Ideal para designs responsivos.
0
1761
posted 14 years ago by nivasgallo
Sort a file that contains integers between 1 and thousand. The output file should contain the entries like (n-times 1, followed by n-times 2 and so on): 1111222333555... But - you are not allowed to load all entries into memory at once. How to solve...
0
1621
posted 14 years ago by awsomedevsigner