Skip to content

Instantly share code, notes, and snippets.

@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
@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 / .gitignore
Created January 9, 2012 06:46
Express simple authentication example
node_modules
*.swp
@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 March 9, 2012 11:20
Facebook oAuth and Graph API example
.DS_Store
WEB-INF
@smebberson
smebberson / .gitignore
Created March 28, 2012 02:06
Solr document indexing in ColdFusion
.DS_Store
WEB-INF
collections/*
documents/*
@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 / index.html
Created August 1, 2012 10:07
Drawing a Google Map using pixel space
<!DOCTYPE html>
<head>
<meta chartset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="author" content="Scott Mebberson">
<title>scottmebberson.com example</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="http://scottmebberson.com/css/examples.css" type="text/css" media="screen">
@smebberson
smebberson / .gitignore
Last active October 27, 2022 21:50
Nodejs static web server boilerplate
.DS_Store
node_modules/
{
// --------------------------------------------------------------------
// JSHint Configuration, Strict Edition
// --------------------------------------------------------------------
//
// This is a options template for [JSHint][1], using [JSHint example][2]
// and [Ory Band's example][3] as basis and setting config values to
// be most strict:
//
// * set all enforcing options to true