Skip to content

Instantly share code, notes, and snippets.

@tonydewan
tonydewan / example.html
Created January 24, 2017 21:39
DocRaptor - different header on each page
<html>
<head>
<style>
.header-content {
string-set: headercontent content();
}
@page {
@top {
content: string(headercontent);
@tonydewan
tonydewan / Gemfile
Created October 14, 2016 19:52
Simple SprocketsCoffeeReact replacement for Sprockets 3.0+
gem "coffee-react"
@tonydewan
tonydewan / keybase.md
Created January 13, 2015 14:56
keybase.md

Keybase proof

I hereby claim:

  • I am tonydewan on github.
  • I am tonydewan (https://keybase.io/tonydewan) on keybase.
  • I have a public key whose fingerprint is AE43 8C2D 2530 3802 A1D1 BC9B 6808 F8DB B79D C770

To claim this, I am signing this object:

@tonydewan
tonydewan / example.html
Created April 1, 2014 01:02
css toggle switch - togglebox 2.0
<input checked="checked" class="switch" id="switch-1" name="switch-1" type="checkbox" value="1">
<label for="switch-1">switch next to label</label>
<input checked="checked" class="switch bottom" id="switch-2" name="switch-2" type="checkbox" value="1">
<label for="switch-2">switch below to label</label>
@tonydewan
tonydewan / 0_reuse_code.js
Created January 23, 2014 22:06
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
#!/bin/bash
#
# This script installs and configures couchdb on a fresh Amazon Linux AMI instance.
#
# Must be run with root privileges
# Tested with Amazon Linux AMI release 2011.02.1.1 (ami-8c1fece5)
#
sudo mkdir -p /usr/local/var/run/couchdb
@tonydewan
tonydewan / couchdb-ec2-install.sh
Created May 1, 2012 21:21 — forked from msmith/couchdb-ec2-install.sh
Set up CouchDB on EC2
#!/bin/bash
#
# This script installs and configures couchdb on a fresh Amazon Linux AMI instance.
#
# Must be run with root privileges
# Tested with Amazon Linux AMI release 2011.02.1.1 (ami-8c1fece5)
#
export BUILD_DIR="$PWD"
@tonydewan
tonydewan / gist:1029399
Created June 16, 2011 14:55
A terrible attempt at describing our appreciation of ExactTarget's Sponsorship of Indy.js
if(indyJs + exactTarget === "<3"){
pizza = "here";
everyone = ":)";
}