Skip to content

Instantly share code, notes, and snippets.

View cameronhunter's full-sized avatar

Cameron Hunter cameronhunter

View GitHub Profile
@cameronhunter
cameronhunter / holyrood9a.tsv
Created October 25, 2012 17:05
Holyrood 9a Order
archie Guacamole Burger Piri piri
stevenm Spiced Lamb Burger Plain
smithali Texas BBQ Burger Piri piri
caluml Guacamole Burger Plain
andthomp Pioneer Burger Plain
drewb Cheese Burger Plain
dominics Chilli Burger Piri piri
ajbailey Shroom Italienne Plain
gthubron Cheese and Bacon Burger Piri piri
andmell Pioneer Burger Piri piri
@cameronhunter
cameronhunter / responsive-abbreviations.html
Created October 2, 2012 12:31
Responsive abbreviations in HTML using CSS
<!doctype html>
<html>
<head>
<title>Responsive Abbreviations</title>
<style type="text/css">
/* Show "U.K." */
abbr {cursor:default; border:none;}
/* Show "United Kingdom" */
@media (min-width: 481px) {
@cameronhunter
cameronhunter / gist:3343413
Created August 13, 2012 19:17
Responsive design incantation
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no" />
@cameronhunter
cameronhunter / gist:978987
Created May 18, 2011 16:50
I've always liked Ruby's "rescue" keyword. I've implemented something similar in Javascript.
rescue = do(console) ->
(expression, fallback) ->
try expression?() || expression
catch e
console?.warn?( 'Rescued from', e, '. Using fallback value', fallback )
return fallback