Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Bruger til at centrere et billede midt i skærmen og fylder ud
0
980
posted 12 years ago by smaakagemorten
Ovo je glavna datoteka main u kojoj se pozivaju funkcije iz biblioteka lista_polje.h i lista_pokazivaci.h za implementaciju liste. Korisnik može odabrati sljedeće opcije: unos nove životinje, ispis životinja prema silaznoj šifri, filtriranje pre...
0
743
posted 12 years ago by msestak2
# 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
697
posted 12 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
1124
posted 12 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
1285
posted 12 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
1459
posted 12 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
944
posted 12 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
902
posted 12 years ago by 2mf
AL subir imagen png, se deben pasar al directorio con transparencia
0
1268
posted 12 years ago by thescorpion
AL subir imagen png, se deben pasar al directorio con transparencia
0
1364
posted 12 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
1012
posted 12 years ago by jprochazka
Backs up all databases contained in a Microsoft SQL Server instance.
1
975
posted 12 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
915
posted 12 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
1206
posted 12 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
1724
posted 12 years ago by denakitan
CSS media queries for common screen sizes which are ignored in older browsers.
3
1017
posted 12 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
1142
posted 12 years ago by box86rowh
A concise reference listing all of the available functions built into Sass.
0
1343
posted 12 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
1296
posted 12 years ago by nshakin
The fixed page layout responsive design CSS used in Nexus Themes Framework
0
1091
posted 12 years ago by vanseijen
Adding alternating row of color to make proc report output easier to read.
0
1551
posted 12 years ago by webonomic
Soma example of validation parentheses in math expressions.
[{()}] - valid
[{){}] - wrong
0
1670
posted 12 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
1086
posted 12 years ago by grindking
display an image field in the body/page of a custom post type
0
1071
posted 12 years ago by mktimes5