Mat Schaffer matschaffer

View agent.js
1 2 3 4 5 6 7 8 9 10
/*jshint multistr:true */
var fs = require('fs'),
exec = require('child_process').exec,
path = require('path'),
os = require('os');
 
var Sentinel = require("node-sentinel"),
_ = require("underscore"),
async = require("async"),
nodemailer = require("nodemailer");
View redis_sub.rb
1 2 3 4 5 6 7
def subscribe_to_switch_master
redis.subscribe('+switch-master') do |on|
on.message do |channel, message|
reconfigure
end
end
end
View randomizer.py
1 2 3 4 5 6 7 8 9 10
import sys
import numpy as np
import matplotlib.pyplot as plt
import csv
 
with open('names.csv', 'rb') as csvfile:
csvreader = csv.reader(csvfile)
people = []
for row in csvreader:
people.append(row)
View go_output.txt
1 2 3 4
╰─ GOOS=linux go build hello.go 2 ↵
# runtime
/usr/local/go/src/pkg/runtime/extern.go:137: undefined: theGoos
/usr/local/go/src/pkg/runtime/extern.go:137: cannot use theGoos as type string in const initializer
View use_a_gist_walter.rb
1 2 3 4 5 6 7 8 9 10
####
 
belongs_to :attachable, :polymorphic => true
 
 
####
 
has_many :images, :as => :attachable, :dependent => :destroy
 
accepts_nested_attributes_for :images, :reject_if => lambda { |a|
View vagrantfile.rb
1 2 3 4 5 6 7
Vagrant::Config.run do |config|
config.vm.provision :chef_solo do |chef|
chef.add_recipe("apache")
chef.add_recipe("php")
chef.arguments = "-l debug"
end
end
View solo.rb
1 2 3 4 5 6 7 8
solo_path = File.dirname(__FILE__)
knife[:solo_path] = solo_path
 
data_bag_path File.join(solo_path, 'data_bags')
encrypted_data_bag_secret File.join(solo_path, 'data_bag_key')
cookbook_path [ File.join(solo_path, "site-cookbooks"),
File.join(solo_path, "cookbooks") ]
role_path File.join(solo_path, "roles")
View overtone_play.clj
1 2 3 4 5 6 7 8 9 10
(ns otexplore.core
(:use overtone.live))
 
(def rain (sample (freesound-path 2521)))
(rain)
 
(demo (sin-osc 440))
(demo (saw [220 220.5 221]))
 
(stop)
View osc_test.clj
1 2 3 4 5 6 7 8 9 10
(ns otexplore.core
(:use overtone.live))
 
(def server (osc-server 44100 "osc-clj"))
 
;; (zero-conf-on)
;; (zero-conf-off)
 
;; (osc-listen server (fn [msg] (println msg)) :debug)
;; (osc-rm-listener server :debug)
Something went wrong with that request. Please try again.