Skip to content

Instantly share code, notes, and snippets.

@steveu
steveu / loops.scss
Created September 17, 2012 13:31
Sass/SCSS Loops
/*
Given the following html
<nav>
<ul>
<li class="home"><a>Home</a></li>
<li class="about"><a>About</a></li>
<li class="blog"><a>Blog</a></li>
<li class="contact"><a>Contact</a></li>
</ul>
</nav>
@steveu
steveu / modernizr_custom.js
Created March 12, 2012 17:36
Custom modernizr build
/* Modernizr 2.0.6 (Custom Build) | MIT & BSD
* Contains: fontface | backgroundsize | borderimage | borderradius | boxshadow | flexbox | hsla | multiplebgs | opacity | rgba | textshadow | cssanimations | csscolumns | generatedcontent | cssgradients | cssreflections | csstransforms | csstransforms3d | csstransitions | applicationcache | canvas | canvastext | draganddrop | hashchange | history | audio | video | indexeddb | input | inputtypes | localstorage | postmessage | sessionstorage | websockets | websqldatabase | webworkers | geolocation | inlinesvg | smil | svg | svgclippaths | touch | webgl | iepp | respond | mq | cssclasses | addtest | prefixed | teststyles | testprop | testallprops | hasevent | prefixes | domprefixes | load
*/
;window.Modernizr=function(a,b,c){function I(){e.input=function(a){for(var b=0,c=a.length;b<c;b++)t[a[b]]=a[b]in l;return t}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" ")),e.inputtypes=function(a){for(var d=0,e,f,h,i=a.length;d<i;d+
<?php
$config = array(
'title' => 'Setup your account',
'buttonTitle' => 'Register',
'redirect' => '/thanks/',
'showShortErrors' => true,
'dbTable' => 'users',
'onlyInsert' => true,
'fieldsets' => array(
'example' => array(
$config = array(
'title' => 'Setup your account',
'buttonTitle' => 'Register',
'redirect' => '/thanks/',
'showShortErrors' => false,
'showLongErrors' => true,
'fieldsets' => array(
'example' => array(
$config = array(
'title' => 'Setup your account',
'buttonTitle' => 'Register',
'redirect' => '/thanks/',
'showShortErrors' => false,
'showLongErrors' => true,
'fieldsets' => array(
'example' => array(
'enquiry' => array(
'title' => 'Example Form',
'id' => 'form_enquiry',
'buttonTitle' => 'Send Enquiry',
'redirect' => 'test',
'completedMessage' => '<p>Your enquiry has been sent.</p>',
'fieldsets' => array(