<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr - nerdfiles</title>
<link>http://snipplr.com/users/nerdfiles</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Mon, 22 Mar 2010 02:52:17 GMT</pubDate>
<item>
<title>(JavaScript) Strip Tags</title>
<link>http://snipplr.com/view/29554/strip-tags/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 10 Mar 2010 14:09:55 GMT</pubDate>
<guid>http://snipplr.com/view/29554/strip-tags/</guid>
</item>
<item>
<title>(JavaScript) Sort Objects by Date Property</title>
<link>http://snipplr.com/view/29553/sort-objects-by-date-property/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 10 Mar 2010 14:07:46 GMT</pubDate>
<guid>http://snipplr.com/view/29553/sort-objects-by-date-property/</guid>
</item>
<item>
<title>(JavaScript) SafelyDeclare</title>
<link>http://snipplr.com/view/29343/safelydeclare/</link>
<description><![CDATA[ <p>To safely declare variables. Well, actually use this to tell before the fact whether you would clobber a var with a name. It won't be declared, and you'll receive a nice, breathy error.

It's more of a diagnostic tool, I suppose.</p> ]]></description>
<pubDate>Fri, 05 Mar 2010 13:42:02 GMT</pubDate>
<guid>http://snipplr.com/view/29343/safelydeclare/</guid>
</item>
<item>
<title>(CSS) Remove Button Focus Border in Firefox and IE8 with CSS</title>
<link>http://snipplr.com/view/28964/remove-button-focus-border-in-firefox-and-ie8-with-css/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 26 Feb 2010 11:31:55 GMT</pubDate>
<guid>http://snipplr.com/view/28964/remove-button-focus-border-in-firefox-and-ie8-with-css/</guid>
</item>
<item>
<title>(JavaScript) Passing Anonies</title>
<link>http://snipplr.com/view/28770/passing-anonies/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 22 Feb 2010 17:54:42 GMT</pubDate>
<guid>http://snipplr.com/view/28770/passing-anonies/</guid>
</item>
<item>
<title>(JavaScript) Very Simple Form Validation (skeleton)</title>
<link>http://snipplr.com/view/28118/very-simple-form-validation-skeleton/</link>
<description><![CDATA[ <p>@data-validation values map to objects in patterns. I'm not sure of this thing's performance on large field sets. It cannot handle multiple validation rules yet.

Presupposes HTML5 namespace rules (specifically, @data-*)</p> ]]></description>
<pubDate>Wed, 10 Feb 2010 12:02:05 GMT</pubDate>
<guid>http://snipplr.com/view/28118/very-simple-form-validation-skeleton/</guid>
</item>
<item>
<title>(JavaScript) getElementsByAttribute</title>
<link>http://snipplr.com/view/28115/getelementsbyattribute/</link>
<description><![CDATA[ <p>Derivative from Dustin Diaz's getElementsByClass</p> ]]></description>
<pubDate>Wed, 10 Feb 2010 11:01:03 GMT</pubDate>
<guid>http://snipplr.com/view/28115/getelementsbyattribute/</guid>
</item>
<item>
<title>(JavaScript) Module, Singleton and Observer Patterns</title>
<link>http://snipplr.com/view/27955/module-singleton-and-observer-patterns/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 08 Feb 2010 16:21:57 GMT</pubDate>
<guid>http://snipplr.com/view/27955/module-singleton-and-observer-patterns/</guid>
</item>
<item>
<title>(JavaScript) Observer pattern (again)</title>
<link>http://snipplr.com/view/27949/observer-pattern-again/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 08 Feb 2010 15:33:35 GMT</pubDate>
<guid>http://snipplr.com/view/27949/observer-pattern-again/</guid>
</item>
<item>
<title>(PHP) Display WP Page/Post name</title>
<link>http://snipplr.com/view/26929/display-wp-pagepost-name/</link>
<description><![CDATA[ <p>I use this to display the page/post name in @class of the . It's pretty self-explanatory; dealing with numbers in @class for CSS is undesirable. This way, you can specify a background for "child pages" by name, etc. Plus, neither body_class() nor hybrid_body_class()  sets a "hierarchical" relationship between child and parent pages in @class of .</p> ]]></description>
<pubDate>Sat, 23 Jan 2010 19:40:03 GMT</pubDate>
<guid>http://snipplr.com/view/26929/display-wp-pagepost-name/</guid>
</item>
<item>
<title>(JavaScript) Simple Module Pattern Example &amp;amp; Facade Pattern Example</title>
<link>http://snipplr.com/view/26591/simple-module-pattern-example--facade-pattern-example/</link>
<description><![CDATA[ <p>For private variables, private methods; closed API.</p> ]]></description>
<pubDate>Sun, 17 Jan 2010 03:07:04 GMT</pubDate>
<guid>http://snipplr.com/view/26591/simple-module-pattern-example--facade-pattern-example/</guid>
</item>
<item>
<title>(HTML) Two-column (cinematic)</title>
<link>http://snipplr.com/view/26268/twocolumn-cinematic/</link>
<description><![CDATA[ <p>"Header," "Footer": 100%
"Page" width: fixed width, 960
Browsers tested: IE6, 7 and 8, FF3.5, Chrome, Opera 10.

Add in HTML5 if you wish.</p> ]]></description>
<pubDate>Mon, 11 Jan 2010 14:47:23 GMT</pubDate>
<guid>http://snipplr.com/view/26268/twocolumn-cinematic/</guid>
</item>
<item>
<title>(CSS) IE CSS hacks</title>
<link>http://snipplr.com/view/26152/ie-css-hacks/</link>
<description><![CDATA[ <p>Many developers are passing around incorrect syntactic variations of these hacks.</p> ]]></description>
<pubDate>Fri, 08 Jan 2010 17:01:18 GMT</pubDate>
<guid>http://snipplr.com/view/26152/ie-css-hacks/</guid>
</item>
<item>
<title>(PHP) cleanse html, js, style from form input</title>
<link>http://snipplr.com/view/26013/cleanse-html-js-style-from-form-input/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 06 Jan 2010 10:35:22 GMT</pubDate>
<guid>http://snipplr.com/view/26013/cleanse-html-js-style-from-form-input/</guid>
</item>
<item>
<title>(JavaScript) testing getElementsByClassName in HTML5</title>
<link>http://snipplr.com/view/25392/testing-getelementsbyclassname-in-html5/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 24 Dec 2009 12:24:55 GMT</pubDate>
<guid>http://snipplr.com/view/25392/testing-getelementsbyclassname-in-html5/</guid>
</item>
<item>
<title>(CSS) Eric Meyer's CSS Reset</title>
<link>http://snipplr.com/view/25229/eric-meyers-css-reset/</link>
<description><![CDATA[ <p>Remove "inherent" values to make compatible with Dean Edward's IE7.js and IE8.js</p> ]]></description>
<pubDate>Tue, 22 Dec 2009 12:52:01 GMT</pubDate>
<guid>http://snipplr.com/view/25229/eric-meyers-css-reset/</guid>
</item>
<item>
<title>(JavaScript) Variable Variables in JS, non-window object ("globals") method</title>
<link>http://snipplr.com/view/25117/variable-variables-in-js-nonwindow-object-globals-method/</link>
<description><![CDATA[ <p>1. Don't use (window) globals.
2. Don't use eval().</p> ]]></description>
<pubDate>Sun, 20 Dec 2009 13:52:54 GMT</pubDate>
<guid>http://snipplr.com/view/25117/variable-variables-in-js-nonwindow-object-globals-method/</guid>
</item>
<item>
<title>(JavaScript) Fun with OO JavaScript</title>
<link>http://snipplr.com/view/25116/fun-with-oo-javascript/</link>
<description><![CDATA[ <p>Exercises... May come in handy to beginners.

1. QS is an ad hoc loader. It takes n arguments, pushes them into a "tasklist" array. That array is then searched for all the functions it may or may not contain. Each function is executed. (Solves the "window.onload" problem.)

2. Loader does roughly the same thing, but it allows you to also listen for the "load" of an IDentified element. (This doesn't really work since we cannot listen for the "load" of division elements, etc. (Perhaps?)

3. $GLOB/etc is an example of passing objects, functions, etc. as arguments. 

4. testFunc is an example of how reference works for non-String objects.</p> ]]></description>
<pubDate>Sun, 20 Dec 2009 12:57:46 GMT</pubDate>
<guid>http://snipplr.com/view/25116/fun-with-oo-javascript/</guid>
</item>
<item>
<title>(CSS) CSS: The Basics</title>
<link>http://snipplr.com/view/24976/css-the-basics/</link>
<description><![CDATA[ <p>You figure out the rest. (For starting projects.)</p> ]]></description>
<pubDate>Thu, 17 Dec 2009 16:51:47 GMT</pubDate>
<guid>http://snipplr.com/view/24976/css-the-basics/</guid>
</item>
<item>
<title>(JavaScript) Poor Man's jQuery Validation (or jQuery Proof)</title>
<link>http://snipplr.com/view/24779/poor-mans-jquery-validation-or-jquery-proof/</link>
<description><![CDATA[ <p>Inspired by the reputable jQuery Validation plugin. I'll turn this into a proper plugin later... after I clean it up some.

Rule invocation by @class, so:
@class="required",
@class="e-mail",
@class="digit",
@class="zip",
@class="min-length-10",
@class="max-length-100"

Caveat:
Error handling assumes that the input, select, etc field are wrapped in a division which distinguishes them from their respective label (and its wrapping division). My mark-up of form fields is a bit cumbersome, but I believe it gives me flexibility and structural consistency (it's irritating to only wrap the input[type='file'] in many divisions while the rest of the form fields don't receive the same service).

Invoke like so: 
var options = { livetype: true };
$proof.validator( $('#sms-form'), options );</p> ]]></description>
<pubDate>Mon, 14 Dec 2009 18:21:09 GMT</pubDate>
<guid>http://snipplr.com/view/24779/poor-mans-jquery-validation-or-jquery-proof/</guid>
</item>
</channel>
</rss>