Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
This can come in handy for a reset or cancel button. You can clear all inputs within a single div in one line of code. Pretty sexy.
0
1066
posted 12 years ago by mattvbiggs
Olá Pessoal,
Neste artigo vou falar sobre Database Mirror, uma nova funcionalidade do SQL Server 2005 para alta disponibilidade.Database Mirror consiste em basicamente um espelhamento de um banco de dados, uma solução que fornece quase em tempo r...
0
610
posted 12 years ago by colonia
[register_nav_menus](http://codex.wordpress.org/Function_Reference/register_nav_menus,"register_nav_menus")
[wp_nav_menu](http://codex.wordpress.org/Function_Reference/wp_nav_menu,"wp_nav_menu")
[in_category](http://codex.wordpress.org/Function_Ref...
0
979
posted 12 years ago by hell0world
Outputs the content of a multi-dimensional array in the $GLOBALS['lv']
0
1111
posted 12 years ago by steho
This is a very basic wrapper for querySelectorAll. Just add prototypes and whatever else you need.
1
979
posted 12 years ago by o0110o
In my WP networks, I use a custom 404 page and plugin to answer calls asking for user information from a custom api. The API requires a URL format like this:
domain.com/username/
However, users don't ever type a trailing slash, nor should they, so...
0
1380
posted 12 years ago by lucasoptura
PHP script calculating the age of a customer coming from a webEdition field of the customer management.
0
1018
posted 12 years ago by steho
With this statement you can reload a page, this will also reset any forms on the page.
1
797
posted 12 years ago by seloh77
A complete example of how we can create a Preloader in actionscript3 to load an external .swf file.
STRUCTURE
------------------
Source Swf
|_ Main.fla
|_ Main.as
|_ Main.swf
Preloader Swf
|_
0
1249
posted 12 years ago by jquery404
I love this one. Needed a good way to numerically sort IP addresses or OIDs. Took longer to come up with this than I'm willing to admit. Hope others find it useful.
0
1210
posted 12 years ago by kurtkincaid
Useful trick from css tricks blog at http://css-tricks.com/snippets/jquery/fixing-ie-z-index/
0
1103
posted 12 years ago by rumremix
So, you define a couple of fake funcs and require WP database config, after this you can require wp-db.php, create new wpdb and use it independency of WP for your ajax actions.
0
1051
posted 12 years ago by Zayac
Validates Numericals in a text box.
Validates spaces in a text box.
0
1180
posted 12 years ago by laxman2021
Add the following code to functions.php
1: WP backend
2: Appearance -> Editor
3: functions.php
0
841
posted 12 years ago by hell0world
Keep the namespace name, class name, guid that VS automatically generates. Make sure all of the "using" inclusions included.
0
1131
posted 12 years ago by rumremix
This is some code using Thematic Child Theme overrides to remove thematic's post thumbnails and add Post Thumbnails outside of the .entry-content <div> so that POst Thumbnails can be styled separated from all post Meta. See this page for an example...
0
971
posted 12 years ago by AndrewThinkUp
I am using thesis developer version to redesign the site [FFXIV Gil](http://www.cheapffxivgils.com/ "Cheap FFXIV GIL").
Before using the code, you should add the Unique Hook Name to BOX in template(see [the official tutorial](http://diythemes.com/t...
0
817
posted 12 years ago by hell0world
Create navigation links without the need of a plugin, using paginate_links function of wordpress core.
0
2148
posted 12 years ago by rudwolf
JavaScript
Template for a Javascript function with optional and mandatory arguments passed as an object collection
A simple template for a JavaScript function which allows for an arbitrary number of named arguments to be passed in. This is achieved by passing a single object as an argument with each of the 'real' arguments being a key/value pair. In this way argu...
0
1523
posted 12 years ago by davidwaterston
Eric Meyer's Reset Reloaded + HTML 5, from Boilerplate
9
14013
posted 12 years ago by lookingforsome