Skip to content

Instantly share code, notes, and snippets.

@smebberson
smebberson / Squares.hx
Created July 2, 2012 13:22
NME (haxe) example
package;
import flash.display.Shape;
import flash.display.Sprite;
import flash.events.MouseEvent;
import flash.display.StageAlign;
import flash.display.StageScaleMode;
import flash.Lib;
class Squares extends Sprite {
@smebberson
smebberson / .gitignore
Created March 28, 2012 02:06
Solr document indexing in ColdFusion
.DS_Store
WEB-INF
collections/*
documents/*
@smebberson
smebberson / .gitignore
Created March 9, 2012 11:20
Facebook oAuth and Graph API example
.DS_Store
WEB-INF
@smebberson
smebberson / index.md
Created January 12, 2012 00:00
iPhone telephone link examples

iPhone telephone link examples

The following looks at how the iPhone automatically detects Australian based phone numbers, and how you can explicitly define them. You can read more about this in Apple's iOS Developer Library.

Explicitly create a clickable telephone link

@smebberson
smebberson / .gitignore
Created January 9, 2012 06:46
Express simple authentication example
node_modules
*.swp
@smebberson
smebberson / app.js
Created December 23, 2011 05:51
Using mustache as an Express view engine
// module depencies
var express = require('express');
var app = express.createServer();
// variables
var port = 3000;
// config
app.set('view engine', 'mustache');
app.register(".mustache", require('stache'));
@smebberson
smebberson / html5.boilerplate.jade
Created November 11, 2011 05:22
HTML5 Boilerplate in Jade
!!! 5
//[if lt IE 7 ]> <html lang="en" class="no-js ie6"> <![endif]
//[if IE 7 ]> <html lang="en" class="no-js ie7"> <![endif]
//[if IE 8 ]> <html lang="en" class="no-js ie8"> <![endif]
//[if IE 9 ]> <html lang="en" class="no-js ie9"> <![endif]
//[if (gt IE 9)|!(IE)]><!--> <html lang="en" class="no-js"> <!--<![endif]
head
title title
body
h1 heading