Skip to content

Instantly share code, notes, and snippets.

@spacekat
spacekat / CoffeeScript syntax examples from '80s pop music
Created September 20, 2011 03:42
CoffeeScript basics from Rails Girls, Helsinki, 2011
# =================================================================
# = Examples 1. Simple data storage (Variables, Strings, Numbers) =
# =================================================================
# String assignment
theSingle = "Video Killed the Radio Star"
theBand = "The Buggles"
# Numbers
mtvMusicVideoDebut = 1981
@spacekat
spacekat / index.html
Created December 5, 2012 21:38
A CodePen by spacekat. Fairy Kei pastel typographic style - I was inspired by the typography I saw on a Yerba Buena poster (http://cl.ly/image/3I1a3P2W161n) on the way to work, and wanted to create the same effect in CSS. The starting point colors from t
<h1 class="fairy-kei-gradient">dark Stardust</h1>
<div>
<h2 class="fairy-kei-solid">3rd Street Gallery</h2>
</div>
<div>
<h2 class="fairy-kei-solid">January 11-13</h2>
</div>
@spacekat
spacekat / samples.haml.rb
Created February 9, 2013 00:54
HAML-friendly Ruby bits (for Rails views)
%li{:class => (current_page?(:action => "show") && "active")}
@spacekat
spacekat / Philly Dream Date.md
Last active December 27, 2015 19:59
Spots to check out during my philly weekend

Saturday

transit

Bus 48 at Poplar and 29th St. $2.25

Transfer to the 57 South at 4th street.

breakfast & coffee

@spacekat
spacekat / .bash_profile
Last active August 29, 2015 14:02
color_my_prompt kawaii command line
## Prompt
function color_my_prompt {
local __user="\[\033[01;35m\]\u"
local __cur_location="\[\033[01;31m\]\w"
local __git_branch_color="\[\033[37m\]"
local __git_branch='`git branch 2> /dev/null | grep -e ^* | sed -E s/^\\\\\*\ \(.+\)$/\(\\\\\1\)\ /`'
local __prompt_tail="\[\033[35m\]♥"
local __last_color="\[\033[37m\]"
export PS1="$__user $__cur_location $__git_branch_color$__git_branch$__prompt_tail$__last_color "
}