- Typical news/announcements
- Progress updates and what we've each been working on
- "Trimming the sails": Where we are, where we're going, and where we need to be
- Sprint Planning!
- Towards a cohesive team-based workflow
- Mixpanel
- Automation
- Infrastructure and Operations
- Core technology decisions
- SBT/Maven?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def pretty_hash(hash_obj) | |
hash_obj.inject("\n") { |collection, item| collection << " #{item[0]}: #{item[1]},\n" } | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module A | |
module B; end | |
module C | |
puts B | |
module D | |
# First looks for A::C::D::B (doesn't exist) then searches for A::B | |
puts "\nmodule A::C::D" | |
puts Module.nesting |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function loadrc(path::String) | |
if (path == ENV["HOME"] || path == "/") | |
return "" | |
end | |
loadrc(dirname(path)) | |
juliarc = joinpath(path, ".juliarc.jl") | |
println(juliarc) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module FactoryGirl | |
def self.find_or_create(resource_name, attributes = {}, &block) | |
clazz = resource_name.to_s.classify.constantize | |
model = clazz.find_by(attributes) || FactoryGirl.build(resource_name, attributes) | |
yield(model) if block_given? && model.new_record? | |
model.tap(&:save) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"metadata": { | |
"name": "", | |
"signature": "sha256:973f629a9825a5e2ab8a547b36f84aa20289633b121d810ca166ed9acdeebc6f" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Design Architecture of Datamill | |
===================================== | |
## Core Requirements | |
#####**High Level (user-facing) Design Requirements** | |
- **Multi-Tenancy:** Ability to service multiple users simultaneously | |
- **Low-Latency:** Where possible, data should always be current with less than a 15-20 minute delay. | |
- **Reliability:** Services should run with *> 99.99%* uptime. Data recovery should be possible in the event of service or hardware failure. |
- Configuration REST API is up and online within cluster. You can access it from any node in the cluster at
api.internal.o18m.com
- Ruby configuration API client: https://github.com/methodmill/ConfigurationApiClientRuby
- Scala configuration API client: https://github.com/methodmill/
- New Jobqueue server https://dashboard.methodmill.com/client-jobqueue/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "active_support/all" | |
require "net/http" | |
token = "my_token" | |
url = "https://graph.facebook.com/v2.6/me/messages?" | |
sender = 100688998246663 | |
text = "Hello" | |
request_params = { | |
recipient: {id: sender}, | |
message: {text: text}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "rspec" | |
## | |
# Recursively flattens a nested array by performing a in-order depth first traversal and reducing the found items into a single, flat | |
# array within the tail call. | |
def flatten(arr) | |
return [arr] unless arr.is_a? Array | |
# Note that the return value of `reduce` is the last call in the our recursive `flatten` function, so nested items are concatenated | |
# in order as they return up the call stack. |
OlderNewer