I hereby claim:
- I am bmarini on github.
- I am benmarini (https://keybase.io/benmarini) on keybase.
- I have a public key whose fingerprint is 071F BE82 8D4C 65BA D311 A8BA FC0E E0BF 8831 987C
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| package main | |
| import ( | |
| "bufio" | |
| "fmt" | |
| "io" | |
| "os" | |
| ) | |
| func main() { |
| App.run ($rootScope, $filter, $log) -> | |
| $rootScope.$on( '$stateChangeStart', (ev, to, toParams, from, fromParams) -> | |
| $log.info('state change from ', from.name, $filter('json')(fromParams), ' to ', to.name, $filter('json')(toParams)) | |
| ) |
| #!/usr/bin/env ruby | |
| require 'thread' | |
| # Usage ./list-files [DIRECTORY] | |
| WORKERS = 5 | |
| queue = Queue.new | |
| @results = Queue.new | |
| threads = [] |
| module MultiSplit | |
| def msplit(*delimiters) | |
| return [ self ] if delimiters.empty? | |
| if idx = index( delimiters.first ) | |
| [ self[ 0...idx ] ] + self[ ( idx + delimiters.first.length )..-1 ].msplit( *delimiters ) | |
| else | |
| msplit( *delimiters[1..-1] ) | |
| end | |
| end |
| web: bundle exec ruby app.rb -sv -e prod -p $PORT |
| [color] | |
| branch = auto | |
| diff = auto | |
| status = auto | |
| [color "branch"] | |
| current = yellow reverse | |
| local = yellow | |
| remote = green |
| it "has a nice api" do | |
| # To set the video bitrate of the output file to 64kbit/s: | |
| # ffmpeg -i input.avi -b:v 64k output.avi | |
| builder = FastForward.build do |ff| | |
| ff.input "input.avi" | |
| ff.output "output.avi" do |o| | |
| o.bitrate("64k").stream("video") | |
| end | |
| end |
| class UI | |
| container: null | |
| events: { } | |
| constructor: () -> | |
| this.bindEvents() | |
| bindEvents: () -> | |
| for event_type_and_selector, callback of @events | |
| [event_type, selector] = event_type_and_selector.split(' ') |