Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Emulates the StringBuilder() function found in .NET Languages
0
1167
posted 13 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
2115
posted 13 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
2752
posted 13 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
3404
posted 13 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
1727
posted 13 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
1444
posted 13 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
1670
posted 13 years ago by jhkoning
Viewport Meta Tag for recognizing mobile devices,
Insert between <head></head> tag
1
2845
posted 13 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
1674
posted 13 years ago by nshakin
Takes a # of seconds and converts it to human readable format.
If happened within seconds-years.
0
1798
posted 13 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
1640
posted 13 years ago by SmashArtist
This will show you what template you are currently viewing (index.php, page.php)
0
1716
posted 13 years ago by bitsculptor
This allows you to change the post updated message that wordpress automatically inserts.
0
2651
posted 13 years ago by bitsculptor
Función php para reemplazar palabras dentro de los post de WordPress.
0
1579
posted 13 years ago by maiden
Para limpiar o borrar una parte especifica de nuestro canvas podemos usar la función clearRect()
0
2308
posted 13 years ago by maiden
Mostrar Objetos que hacen Referencia a un Objeto Especifico en Oracle
0
1617
posted 13 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
1552
posted 13 years ago by ed_trench
How to automatically login with SSH. Also known as “key-based authorization with SSH†or simply “publickey authorizationâ€.
0
1606
posted 13 years ago by tinytiger