Skip to content

Instantly share code, notes, and snippets.

View jmkoni's full-sized avatar
💻

Jennifer Konikowski jmkoni

💻
View GitHub Profile
@jmkoni
jmkoni / measure.rb
Created May 26, 2015 19:34
Benchmark script from Ruby Performance Optimization (https://pragprog.com/book/adrpo/ruby-performance-optimization)
require "json"
require "benchmark"
class Measure
def self.run(&block)
no_gc = (ARGV[0] == "--no-gc")
if no_gc
GC.disable
else
# collect memory allocated during library loading # and our own code before the measurement
@jmkoni
jmkoni / lpthwdjango
Created August 18, 2013 17:32
Starting project for final LPTHW class
1) Change into directory that you want your project in.
ex: mkdir SongIdentifier
cd SongIdentifier
2) Install and run virtualenv
pip install virtualenv
virtualenv --no-site-packages testenv
source testenv/bin/activate
3) Install required packages: