Welcome To Snipplr
Everyone's Recent Snippets Tagged c
- 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
1316
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
2051
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
3468
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
3453
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
1814
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
1699
posted 13 years ago by 2mf
AL subir imagen png, se deben pasar al directorio con transparencia
0
2205
posted 13 years ago by thescorpion
AL subir imagen png, se deben pasar al directorio con transparencia
0
2067
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
1958
posted 13 years ago by jprochazka
Backs up all databases contained in a Microsoft SQL Server instance.
1
1982
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
1707
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
2164
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
2915
posted 13 years ago by denakitan
CSS media queries for common screen sizes which are ignored in older browsers.
3
1865
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
1996
posted 13 years ago by box86rowh
A concise reference listing all of the available functions built into Sass.
0
4090
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
4223
posted 13 years ago by nshakin
The fixed page layout responsive design CSS used in Nexus Themes Framework
0
2101
posted 13 years ago by vanseijen
Adding alternating row of color to make proc report output easier to read.
0
2663
posted 13 years ago by webonomic
Soma example of validation parentheses in math expressions.
[{()}] - valid
[{){}] - wrong
0
2848
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
1920
posted 13 years ago by grindking
display an image field in the body/page of a custom post type
0
1833
posted 13 years ago by mktimes5
A very good slider / carousel. Um slider / carrossel muito bom. Ideal para designs responsivos.
0
1644
posted 13 years ago by nivasgallo