Skip to content

Instantly share code, notes, and snippets.

@anderssvendal
anderssvendal / module.coffee
Created July 5, 2012 19:05
Easy namespacing of classes and objects.
# Easy namespacing of classes and objects.
#
# name - The String containing namespaces up to but not including the class
# name.
#
# Examples
# # Using a class
# class module("Foo.Bar").Baz
# doStuff: ->
# console.log "doing stuff"
@anderssvendal
anderssvendal / grid.sass
Created August 19, 2012 17:41
Small sass gridsystem
// 12 column grid
$column-width: 60px !default
$gutter-width: 20px !default
$grid-columns: 12 !default
$grid-width: $column-width * $grid-columns + $gutter-width * ($grid-columns - 1)
@function column-width($n)
@return $column-width * $n + $gutter-width * ($n - 1)
@anderssvendal
anderssvendal / gist:3749134
Created September 19, 2012 11:21
sublime text settings
{
"auto_complete_commit_on_tab": true,
"color_scheme": "Packages/Color Scheme - Default/Spacedust.tmTheme",
"detect_indentation": true,
"draw_white_space": "selection",
"folder_exclude_patterns":
[
".sass-cache",
"tmp"
],
@anderssvendal
anderssvendal / README.md
Created October 29, 2012 10:20
ubuntu + unicorn + sinatra