Skip to content

Instantly share code, notes, and snippets.

View jtzemp's full-sized avatar

JT Zemp jtzemp

  • SF Bay Area, CA, USA
View GitHub Profile
@treybean
treybean / deploy.rb
Created August 16, 2011 17:40
Heroku Deployment Script
#!/usr/bin/env ruby
# Usage
# ./deploy [staging|production] <options>
#
# Options
# -m or --maintenance - Put the application into maintenance mode
# -b or --branch - deploy from a branch other than "master"
if ['staging', 'production'].include? ARGV[0]
#!/user/bin/env ruby
require 'rubygems'
require 'wavefile'
require 'fftw3'
require 'fastercsv'
w = WaveFile.open('sample.wav')
samples = w.sample_data[0, [w.sample_rate * 10, w.sample_data.size].min]