Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
# Método setter y getter
Hace mucho tiempo usaba esta manera para tener un solo método que sea getter y setter al mismo tiempo.
0
1262
posted 13 years ago by prigazzi
The marquee will stop when you hover the cursor over it. It will restart when you move the cursor away from it.
1
1985
posted 13 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
3395
posted 13 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
3380
posted 13 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
1749
posted 13 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
1635
posted 13 years ago by 2mf
AL subir imagen png, se deben pasar al directorio con transparencia
0
2154
posted 13 years ago by thescorpion
AL subir imagen png, se deben pasar al directorio con transparencia
0
2021
posted 13 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
1900
posted 13 years ago by jprochazka
Backs up all databases contained in a Microsoft SQL Server instance.
1
1920
posted 13 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
1643
posted 13 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
2086
posted 13 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
2815
posted 13 years ago by denakitan
CSS media queries for common screen sizes which are ignored in older browsers.
3
1798
posted 13 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
1932
posted 13 years ago by box86rowh
A concise reference listing all of the available functions built into Sass.
0
4019
posted 13 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
4147
posted 13 years ago by nshakin
The fixed page layout responsive design CSS used in Nexus Themes Framework
0
2031
posted 13 years ago by vanseijen
Adding alternating row of color to make proc report output easier to read.
0
2562
posted 13 years ago by webonomic
Soma example of validation parentheses in math expressions.
[{()}] - valid
[{){}] - wrong
0
2781
posted 13 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
1855
posted 13 years ago by grindking
display an image field in the body/page of a custom post type
0
1765
posted 13 years ago by mktimes5