cbartlett
Follow
Entrepreneur, nerd herder, and bit pusher.
-
Co-Founder, @StatusGator
- New York, NY, USA
- https://colinabartlett.com
Highlights
- Pro
Pinned Loading
-
-
-
Print Ruby Exception Hierarchy
Print Ruby Exception Hierarchy 1exceptions = []
2tree = {}
3ObjectSpace.each_object(Class) do |cls|
4next unless cls.ancestors.include? Exception
5next if exceptions.include? cls
-
Kill whitespace!
Kill whitespace! 1find . -not \( -name .svn -prune -o -name .git -prune \) -type f -print0 | xargs -0 sed -i '' -E "s/[[:space:]]*$//"
-
Remove unused local git branches
Remove unused local git branches 1git branch --merged master | grep -v ^\* | xargs git branch -d
-
Convert Ruby hash syntax
Convert Ruby hash syntax 1find . -name \*.rb -exec perl -p -i -e 's/([^:]):(\w+)\s*=>/\1\2:/g' {} \;
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.