Skip to content

Instantly share code, notes, and snippets.

View catsby's full-sized avatar
🏠
Working from home

Clint catsby

🏠
Working from home
View GitHub Profile
@catsby
catsby / keybase.md
Created March 7, 2014 20:39
keybase.md

Keybase proof

I hereby claim:

  • I am catsby on github.
  • I am catsby (https://keybase.io/catsby) on keybase.
  • I have a public key whose fingerprint is A9E3 2F18 B535 5BDB AA6D 0A1D D468 181B 2818 F49A

To claim this, I am signing this object:

@catsby
catsby / nope
Last active August 29, 2015 13:57
test
curl -X POST -d '{"text":"===== ===== ======= \n A B A and B \n===== ===== ======= \nFalse False False \nTrue False False \nFalse True False \nTrue True True \n===== ===== ======= \n"}' https://api.github.com/markdown
<p>===== ===== =======<br>
A B A and B<br>
===== ===== =======<br>
False False False<br>
True False False<br>
False True False<br>
True True True<br>
===== ===== ======= </p>%
@catsby
catsby / etl.go
Created June 18, 2014 23:40
exercisms
package etl
import (
"strings"
)
func Transform(input map[int][]string) map[string]int {
m := make(map[string]int)
for k, v := range input {
set nocompatible
set incsearch
set ai
set expandtab
set tabstop=4
set shiftwidth=4
set ignorecase
set smartcase
set scrolloff=3
set number
@catsby
catsby / .profile
Created September 15, 2010 13:09
My .profile
source ~/.cinderella.profile
source ~/.private.profile
source ~/.git-completion.bash # from git source contrib/completion
alias gf="/usr/local/bin/git-flow"
alias dirs="ls -al | grep '^d'" # show the dir's in the current dir
# cinderella ( http://www.atmos.org/cinderella/intro.html )
# Runs things on load, which I don't want, so I edited the matching plist files
# in ~/Library/LaunchAgents and set 'RunAtLoad' and 'KeepAlive' to false
# opting to start them manually when needed.
@catsby
catsby / gist:943028
Created April 26, 2011 20:16 — forked from schacon/gist:942899
delete all remote branches that have already been merged into master
$ git branch -r --merged |
grep origin |
grep -v '>' |
grep -v master |
xargs -L1 |
awk '{sub(/origin\//,"");print}' |
xargs git push origin --delete
#!/bin/sh
config_changed="false"
for rev in $(git diff HEAD@{1} HEAD --name-only)
do
if [[ $rev =~ "/config/" ]]
then
config_changed="true"
fi
done
$ brew list
ack
boost
cmake
coreutils
ctags
erlang
fortune
gdbm
gearman
GLaDOS:octokit clint$ curl http://github.com/api/v2/json/repos/show/schacon/grit
{"repository":{"url":"https://github.com/schacon/grit","parent":"mojombo/grit","has_issues":true,"source":"mojombo/grit","homepage":"http://grit.rubyforge.org/","integrate_branch":"integration","forks":11,"language":"Ruby","watchers":125,"fork":true,"has_downloads":true,"size":4104,"private":false,"created_at":"2008/04/18 16:14:24 -0700","name":"grit","owner":"schacon","pushed_at":"2010/05/05 15:28:38 -0700","description":"Grit is a Ruby library for extracting information from a git repository in an object oriented manner - this fork tries to intergrate as much pure-ruby functionality as possible","has_wiki":true,"open_issues":0}}GLaDOS:octokit clint$
require 'rack'
require ::File.expand_path('../myapp', __FILE__)
run MyApp