Skip to content

Instantly share code, notes, and snippets.


Michael Guterl mguterl

View GitHub Profile
mguterl / canon sdk openframeworks
Created Dec 19, 2016 — forked from wouterverweirder/canon sdk openframeworks
step-by-step how to get canon eos sdk working with openframeworks / C++ on OSX
View canon sdk openframeworks
get canon sdk working with openframeworks
1. Register as canon developer & download canon sdk
2. EDSDK.framework in canon sdk download doesn't seem to be working. Download the latest EOS Utility from for you camera. You might not have a previous EOS Utility install or a CD. You can force the installer to install EOS utility:
1/ Copy the updater app from the dmg to your desktop
2/ Right click and choose Show Package Contents…
3/ Delete the file Contents/Resources/Info.datx
4/ After that run the updater app again. You should be able to install the EOS Utility
View credit_card_helper.rb
#this is a very simple, work in progress helper method for stubbing the stripe checkout.js
#this creates a fake server that will generate stripe token as if it's coming from stripe. So we can test credit card input
class FakeStripe < Sinatra::Base
def self.boot
instance = new { |server| server.boot }
get '/checkout.js' do

Vegan Month Logo

Back in Melbourne circa 2010/11, Jodie, Jared and I used to run a [monthly vegan mentoring group][vegan-month]. I have gone back through the mailing lists and collected much of the curriculum and information from the program into this single document, so that I can distribute it more widely. The program was designed not just to get you through the first month nutritionally, but to expose you to a variety of foods and ideas that may be new to you. It emphasises that veganism is a shift sideways, not a sacrifice.


#Council of Chiefs

9:00PM November 3, 2012

Camp Lazarus
4422 Columbus Pike
Delaware, OH 43015

Goal of the Meeting: To make decisions regarding the specifics of Conclave 2013

View 01-trips_controller.rb
class TripsController < ApplicationController
class Action < ApplicationController::Action
class New < Action
expose(:trip) {[:trip]) }
class Create < New
def call
View latency.txt
Latency Comparison Numbers
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns
Send 1K bytes over 1 Gbps network 10,000 ns 0.01 ms
Read 4K randomly from SSD* 150,000 ns 0.15 ms
View newrelic_outline.mkd

Don't be blind when making adjustments for performance. Measure, measure, measure.


New Relic is a great product for monitoring the peformance of your application. They provide performance management for Ruby, PHP, .Net, Java and Python. Today's presentation is going to focus on Ruby and specifically Rails, however, the basic New Relic overview will be applicable to any of the platforms mentioned. Integrating New Relic into your Rails application is as easy as signing up and adding the gem to your Rails application's Gemfile.


When measuring performance in the browser or on the server New Relic provides Apdex scores. Apdex is

mguterl / .rvmrc
Created Feb 21, 2012 — forked from st23am/urinal_etiquette.rb
Test Problem
View .rvmrc
#!/usr/bin/env bash
# This is an RVM Project .rvmrc file, used to automatically load the ruby
# development environment upon cd'ing into the directory
# First we specify our desired <ruby>[@<gemset>], the @gemset name is optional,
# Only full ruby name is supported here, for short names use:
# echo "rvm use 1.9.3" > .rvmrc
mguterl / BusinessStore.rb
Created Nov 24, 2011 — forked from Justinwceo/BusinessStore.rb
Sunspot: How to filter?
View BusinessStore.rb
class BusinessStore < ActiveRecord::Base
attr_accessible :website, :name, :address, :phone_number, :online_store
has_many :products
View campfire.rb
require 'uri'
require 'psych'
require 'net/http'
require 'meme' # Install meme_generator
module Campfire
class API
attr_reader :uri, :token, :pass