Skip to content

Instantly share code, notes, and snippets.

View klaut's full-sized avatar

Klaut klaut

  • free thinker
  • here
View GitHub Profile
mode = ENV["SPEC"] || "full"
require_relative "spec_helper_#{mode}"
@klaut
klaut / ohmyzsh theme
Created July 13, 2013 10:40
zsh theme
function box_name {
[ -f ~/.box-name ] && cat ~/.box-name || hostname -s
}
local user='%{$fg[magenta]%}%n%{$fg[green]%}@%{$fg[magenta]%}$(box_name)%{$reset_color%}'
local pwd='%{$fg[white]%}%~%{$reset_color%}'
local rvm=''
if which rvm-prompt &> /dev/null; then
rvm='%{$fg[green]%}‹$(rvm-prompt i v g)›%{$reset_color%}'
else

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@klaut
klaut / gist:4168357
Created November 29, 2012 11:24 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
@klaut
klaut / index.html
Created January 16, 2012 20:06 — forked from ZJONSSON/index.html
Using data() enter and exit in D3
<!DOCTYPE html>
<html>
<head></head>
<body></body>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js"></script>
<script type="text/javascript">
// Define the SVG domain in a viewbox to get automatic resize to
// window. This is a good alternative to d3.scale for simple stuff
svg=d3.select("body")
@klaut
klaut / basic-raphael-map.html
Created January 15, 2012 12:50 — forked from chrisgemignani/basic-raphael-map.html
Simple Raphael Maps using D3 Projections
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Simple Raphael Maps Using D3 Projections</title>
<script type="text/javascript" charset="utf-8" src="raphael-min.js"></script>
<script type="text/javascript" charset="utf-8" src="geo-projection.js"></script>
<script type="text/javascript" charset="utf-8" src="us.svg.js"></script>
@klaut
klaut / visualization_in_js.md
Created January 1, 2012 10:22 — forked from entaroadun/visualization_in_js.md
Visualization using Javascript on Github

Data visualization in one of three most important steps in data mining (https://github.com/entaroadun/hnpickup#readme). Often times, it's impossible to understand data without proper visualization. I went looking for great tools to do that.

Two website list recent JS visualization frameworks:

Most of them are available on Github. My three favorite: