Skip to content

Instantly share code, notes, and snippets.

View tobowers's full-sized avatar

Topper Bowers tobowers

View GitHub Profile
alerts on:
exceptions
http alerts
absence of events
dimensions of an event (queue wait time over 2 seconds, storage space used over 80%)
presence of a single event (oncall support request)
possibilities (for custom code)
@tobowers
tobowers / select.rb
Created September 15, 2014 19:45
a quick select implementation
class Array
def select(&block)
new_array = []
self.each do |array_element|
new_array << array_element if block.call(array_element)
end
new_array
end
end
@tobowers
tobowers / client.rb
Last active August 29, 2015 14:07
simple set key
class Client < ActiveRecord::Base
after_initialize :set_key
private
def set_key
self.client_key ||= SecureRandom.urlsafe_base64(20, false)
end
end
class ApiFrontEnd
def consume(attrs)
instance = Foo.new(attrs)
instance.include(SomeModule)
instance.method_from_some_module
end
end
node_modules/.bin/intern-runner config=tests/intern functionalSuites=tests/functional/index
Listening on 0.0.0.0:9000
Starting tunnel...
UnknownError: [POST http://localhost:4444/wd/hub/session / {"desiredCapabilities":{"browserName":"safari","version":"7","platform":"OS X 10.9","name":"tests/intern","idle-timeout":60,"selenium-version":"2.44.0"}}] No enum constant org.openqa.selenium.Platform.OS X 10.9
at Server._post <node_modules/intern/node_modules/leadfoot/Server.js:68:9>
at Server.createSession <node_modules/intern/node_modules/leadfoot/Server.js:290:15>
at Suite.setup <node_modules/intern/runner.js:222:22>
at callOnSuite <node_modules/intern/lib/Suite.js:157:42>
at call <node_modules/intern/lib/Suite.js:208:13>
at Suite.run <node_modules/intern/lib/Suite.js:306:4>
var Masthead = new CustomComponent;
Masthead.extend({
typeIntoLocation: function(text) {
parent
.findById("q")
.click()
.type(text)
}
});
orientdb {db=vitals-test}> select expand(both('Specializes').both('Accepts').name) from Specialty
----+------+-----
# |@CLASS|value
----+------+-----
0 |null |aetna
1 |null |aetna
----+------+-----
2 item(s) found. Query executed in 0.003 sec(s).
Talk #1: ETL Architecture For Experimentation at Flatiron Health
Gil will share some of the principles and techniques used by Flatiron to build the nation’s largest cancer database. Flatiron Health’s platform connects cancer centers across the country on a common technology infrastructure, supporting treatment for about 1 in 5 active cancer patients in the U.S. Their architecture is focused on enabling rapid development iterations with cancer specialists, nurses, and other stakeholders. Rapidly integrating medical data from hundreds of heterogeneous source systems required Flatiron to develop a unique data integration and processing framework. Iterating quickly while incorporating knowledge from oncologists, nurses, medical informaticists, and healthcare analysts has largely shaped this architecture as well.
The talk will focus on tooling and the architecture that we built to support rapid iteration on complex ETL processes (iteration itself is quick) and minimizes knowledge translation iterations (number
Message = MBX.JsModel.create("Message", {
iAmAClassAttribute: '',
instanceMethods: {
defaults: {
content: "I'm default content"
},
iAmAnInstanceMethod: function () {
//this.doSomething;
},
beforeCreate: function () {},
require 'rubygems'
gem 'zookeeper'
require 'zookeeper'
REQUIRED_NUMBER_OF_PROCESSES = 2
class EventHandler
import org.apache.zookeeper.Watcher