Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env ruby
require 'set'
cmd = "git diff --cached --name-only"
matches = { /\.sass/ => /\.css/, /\.haml/ => /\.html/ }
files = IO.popen(cmd).readlines.map(&:chomp)
fail = false
.SUFFIXES: .haml .html .css .sass
HAML = haml
SASS = sass
HAML_SRC = $(shell find . -name "*.haml")
HTML_SRC = $(HAML_SRC:.haml=.html)
SASS_SRC = $(shell find . -name "*.sass")
CSS_SRC = $(SASS_SRC:.sass=.css)
all: $(HTML_SRC) $(CSS_SRC)
jekyll
import math
import turtle
class MyTurtle(object):
def __init__(self):
self.turtle = turtle.Turtle()
self.complex = 1
self.screen = (self.turtle.window_width(), self.turtle.window_height())
self.size = 3*self.screen[1]/8
import re
class System(object):
matcher = re.compile("^rule_")
def __init__(self):
self.base = self.base_rule()
self.__introspect()
def __introspect(self):
import re
class System(object):
matcher = re.compile("^rule_")
def __init__(self):
self.base = self.base_rule()
self.__introspect()
def __introspect(self):

We used Pavaune Pearson from Invited Events (https://twitter.com/#!/invitedevents) for our day of coordinator. She rocks and I highly recommend her.

Things she did:

  • She ran point with all of vendors before day of to make sure everyone is on the same page
  • Did walk through with caterer and us to at the site
  • Made extremely detailed timeline of the days events. coordinated that with all vendors
  • Came to our apt 2 days before the wedding to run through the timeline and pickup all the things we had (programs, vases, pictures,menus, etc, etc,etc). It was a lot of stuff.
  • Ran the whole rehearsal
  • Took care of all the setup of the stuff we gave her, worked with caterer to make sure everything was perfect. Also did all the teardown of everything.
(ns diablo)
(defn craft-cost [x]
(cond
(> x 0) (* 100000 (+ 1 x))
:default 0))
(defn gem-cost [level]
(reduce +
(map
// ==UserScript==
// @name Reddit imgur Gif->Gifv-ifier
// @namespace https://gist.github.com/cmaggard/595b314359d615d8c49c
// @version 0.1
// @description Turns direct links to gifs on imgur into gifvs
// @author Cody Maggard
// @match http://*.reddit.com/*
// @grant none
// ==/UserScript==
require 'set'
class DateGuesser
class DateGuesserError < StandardError; end
class UnguessableYearError < DateGuesserError; end
class UnguessableDayError < DateGuesserError; end
def guess(d)
begin
guess_year_position d unless @ypos
PLD
WAR
DRK
WHM
SCH
AST
BLU
BRD
MNK
FSH