This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# | |
# unicorn_reloader | |
# | |
# spawns a unicorn to serve a rack app in the given directory. Watches | |
# the app files for changes, restarting the unicorn worker when they're | |
# detected. | |
# | |
# Tony Strauss <tony at animoto.com> | |
# Forked in order to: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
temp_dir: '/tmp/' | |
segment_prefix: 'sample' | |
index_prefix: 'stream' | |
# type of logging: STDOUT, FILE | |
log_type: 'STDOUT' | |
#log_type: 'FILE' | |
#log_file: '/tmp/streamer.log' | |
# levels: DEBUG, INFO, WARN, ERROR | |
log_level: 'DEBUG' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'v8' | |
JS = <<EOF | |
Foo = function() { | |
throw new Error("BOOG1"); | |
}; | |
function bar() { | |
throw new Error("BOOG2"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
etrog:~/slideshow_director tony$ bundle exec test3.rb boog.json | |
====================================================================== | |
Ruby: | |
{:sections=> | |
[{:values=> | |
[[0.8, 0.014, 7.282, 2.0], | |
[1.3, 0.01, 1.548, 4.0], | |
[1.74, 0.009, 1.226, 4.0], | |
[2.16, 0.015, 2.148, 4.0], | |
[2.6, 0.011, 1.283, 4.0], |