Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Snippet to illustrate how to bind a ComboBox to a Dictionary.
0
1496
posted 12 years ago by denakitan
Any valid json object will be recursively traversed building a nested unordered list of its properties and their values. This example parses the json entered in the text area into an object that is passed to the json_tree() function. I use the twit...
0
1414
posted 12 years ago by halk
Emulates the StringBuilder() function found in .NET Languages
0
815
posted 12 years ago by jswaringen
this is how to instantiate a dropdown shadow using js code, works in IE10 and windows store apps. Important for when you want use templates.
0
1550
posted 12 years ago by Syllogism
This gives the code for creating a custom post type with all the necessary labels and even custom message support, and it gives the code for a custom taxonomy with that post type.
0
1260
posted 12 years ago by bitsculptor
For some reason setting a default value for select elements does not work. This one line of jquery solves that problem. Assign a value (value="something") to the select tag that is to be the default value. With jquery get all select elements with a...
0
1768
posted 12 years ago by halk
This will monitor the status of all ajax calls on the page. When ajax starts i show an animated spinner gif and display a message that ajax has been requested. On completion of a call the status returned is displayed and the spinner is hidden to in...
1
1159
posted 12 years ago by halk
Función php para mostrar el número total de entradas o post de una determinada categorÃa en WordPress
0
910
posted 12 years ago by maiden
All you need to do is create a child theme, and create a new comments.php file inside that child theme. Then insert this code into the comments.php file you just created;
2
1130
posted 12 years ago by jhkoning
Viewport Meta Tag for recognizing mobile devices,
Insert between <head></head> tag
1
1321
posted 12 years ago by klagraff
Cascading Style Sheets allow developers to exercise greater control over background images on the Web. You can make an image tile vertically across the page, horizontally across the page, or both. Simply define the style at the top of the page, and d...
0
1143
posted 12 years ago by nshakin
Takes a # of seconds and converts it to human readable format.
If happened within seconds-years.
0
1253
posted 12 years ago by mburica
This creates a custom page template designed to run a Facebook photo contest utilizing the Facebook like button and uses Wordpress featured images for each post in a grid.
This setup requires the following:
- iLoveIt Wordpress Theme
- Creat...
0
1046
posted 12 years ago by SmashArtist
This will show you what template you are currently viewing (index.php, page.php)
0
1108
posted 12 years ago by bitsculptor
This allows you to change the post updated message that wordpress automatically inserts.
0
1242
posted 12 years ago by bitsculptor
Función php para reemplazar palabras dentro de los post de WordPress.
0
1047
posted 12 years ago by maiden
Para limpiar o borrar una parte especifica de nuestro canvas podemos usar la función clearRect()
0
1737
posted 12 years ago by maiden
Mostrar Objetos que hacen Referencia a un Objeto Especifico en Oracle
0
1151
posted 12 years ago by thescorpion
Also extended C# LINQ and Extension method (simple) to include the last (MAX) Date Created property, added a new Folder class (model) with properties and included them in a List<Folder>. Also, amended the LINQ statement to get the MAX(Date Created) .
0
1002
posted 12 years ago by ed_trench