Skip to content

Instantly share code, notes, and snippets.

View cokron's full-sized avatar

Björn Grossmann cokron

View GitHub Profile
@cokron
cokron / gist:4174578
Created November 30, 2012 08:50
Gemfile.lock
GIT
remote: git://github.com/sporkrb/spork.git
revision: a07c59d6652d81e8863b7ae5767e943fd272b5da
specs:
spork (1.0.0rc3)
GIT
remote: https://github.com/iox/best_in_place.git
revision: 713100f928644db51d719e53f3bbb9ed03c4d988
specs:
@cokron
cokron / scrollable_divs.html
Created September 25, 2012 08:16
three scrollable columns similar to pivotal tracker
<html>
<head>
<style>
table{
height: 98%;
}
.panel {
vertical-align: top;
width: 33%;
}
@cokron
cokron / gist:3425515
Created August 22, 2012 13:25
rvm info
rvm info
ruby-1.9.3-p194:
system:
uname: "Darwin bg.local 11.3.0 Darwin Kernel Version 11.3.0: Thu Jan 12 18:47:41 PST 2012; root:xnu-1699.24.23~1/RELEASE_X86_64 x86_64 i386"
bash: "/bin/bash => GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin11)"
zsh: "/bin/zsh => zsh 4.3.11 (i386-apple-darwin11.0)"
rvm:
@cokron
cokron / detect_merged_remote_branches.sh
Created July 4, 2012 14:49
delete merged git branches
current_branch=$(git symbolic-ref HEAD | sed -e 's,.*/\(.*\),\1,')
echo $current_branch
echo "finding branches that have already been merged into $current_branch"
for branch in $(git branch -a | grep "remotes/origin/" | grep -v "$current_branch" | grep -v "develop" | grep -v "master" | grep -v "origin/HEAD" | sed 's|remotes/||')
do
echo "checking $branch for unmerged changes"
if git diff --exit-code $current_branch...$branch > /dev/null
then
@cokron
cokron / gist:2122027
Created March 19, 2012 18:05
Ruby style guides
# This class holds the logic for X
class Foo
extend SomeModule
include SomeModule
# associations
has_many :bars
# scopes
named_scope :special_foos