Skip to content

Instantly share code, notes, and snippets.

View ryanaghdam's full-sized avatar

Ryan Aghdam ryanaghdam

View GitHub Profile
@ryanaghdam
ryanaghdam / crayola.scss
Created February 24, 2014 03:41
Crayola Colors
// http://en.wikipedia.org/wiki/List_of_Crayola_crayon_colors
$color-almond: #EFDECD;
$color-antique-brass: #CD9575;
$color-apricot: #FDD9B5;
$color-aquamarine: #78DBE2;
$color-asparagus: #87A96B;
$color-banana-mania: #FAE7B5;
$color-atomic-tangerine: #FFA474;
$color-beaver: #9F8170;
$color-bittersweet: #FD7C6E;
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
nav,article,#hover {
position: absolute;
top: 0;
left: 0;
width: 500px;
}
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
nav,article,#hover {
position: absolute;
top: 0;
left: 0;
width: 500px;
}
[ -r ~/.bashrc ] && source ~/.bashrc
# use vi key bindings
set -o vi
bind '"\C-i":complete'
# Add local bin directory to PATH
export PATH=$HOME/.bin:$PATH
# Prompt
@ryanaghdam
ryanaghdam / git-delete-merged-branches
Created May 16, 2013 14:23
Delete all merged branches, except for master and the current branch.
#!bin/bash
git branch --merged | grep -v \* | grep -v master | xargs -n1 git branch -d
@ryanaghdam
ryanaghdam / .gitconfig
Created April 25, 2013 16:48
Git colors
[color]
ui = true
[color "branch"]
current = yellow black
local = yellow
remote = magenta
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red reverse
Scion FR-S, Subaru BRZ Delivery Checklist
=========================================
[ ] Rips and tears in seats
[ ] Car was filled with *premium* fuel.
[ ] Key for wheel locks included
[ ] Tie down hole is plugged properly (http://imgur.com/01WRfbD)
@ryanaghdam
ryanaghdam / pp.sh
Created March 6, 2013 22:05
Pretty print a text file.
#!/bin/bash
enscript --output=/tmp/$$.ps --header='$n|%W %t|Page $% of $=' --header-font=Helvetica10 --borders $1
open /tmp/$$.ps
@ryanaghdam
ryanaghdam / slug.scm
Created January 30, 2011 04:04
Slugs
;; string->slug: String -> String
;; Produces a slug of the given string.
(define (string->slug a-string)
(string-downcase
(regexp-replace* "[^a-zA-Z0-9-]+" a-string "-")))