Skip to content

Instantly share code, notes, and snippets.

I may be slow to respond.

Aleksey Leshchuk alekseyl

I may be slow to respond.
View GitHub Profile
devhero / ruby threads finish together
Created Jul 2, 2015
Ruby wait for all threads finish
View ruby threads finish together
require 'thread'
require 'thwait'
threads = []
threads << { }
threads << { }
nlively /
Created Apr 5, 2012
Count lines of code in a rails project
find . \( -iname '*.rb' -o -iname '*.css' -o -iname '*.js' -o -iname '*.erb' -o -iname '*.html' -o -iname '*.haml' -o -iname '*.scss' -o -iname '*.coffee' \) -exec wc -l {} + | sort -n