This file contains hidden or 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
app_1 | DATABASE_URL: postgres://admin:password@db:5432/app_development | |
app_1 | ENV: {"PATH" => "/opt/shards/bin:/app/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", "HOSTNAME" => "181af68fff6d", "DATABASE_URL" => "postgres://admin:password@db:5432/app_development", "AMBER_ENV" => "production", "HOME" => "/home/dev"} | |
app_1 | | |
app_1 | ENV: {"id" => "4", "FORKED" => "1", "AMBER_ENV" => "production"} | |
app_1 | DATABASE_URL: | |
app_1 | no driver was registered for the schema "", did you maybe forget to require the database driver? (ArgumentError) | |
app_1 | | |
app_1 | | |
app_1 | ENV: {"id" => "3", "FORKED" => "1", "AMBER_ENV" => "production"} | |
app_1 | DATABASE_URL: |
This file contains hidden or 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 Decorator | |
def def_decorator(name, &blk) | |
define_method(name) do |method_name| | |
new_name = "#{method_name}_" | |
alias_method new_name, method_name | |
define_method(method_name) do | |
lmbda = lambda { send(new_name) } | |
blk.call(lmbda) | |
end |
This file contains hidden or 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 'bindata' | |
class CustomProtocol < BinData::Record | |
endian :big | |
stringz :command_word | |
uint8 :op1 | |
uint8 :op2 | |
end |
This file contains hidden or 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 ImmutableStruct | |
module PropSetter | |
attr_reader :props | |
def use_struct_props(*props) | |
attr_reader *props | |
@props = props | |
end | |
end |
This file contains hidden or 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 'rack' | |
require 'json' | |
require 'erb' | |
class Application | |
def self.application | |
@application ||= new | |
end | |
def self.configure(&blk) |
This file contains hidden or 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
Color = function(hexOrObject) { | |
var obj; | |
if (hexOrObject instanceof Object) { | |
obj = hexOrObject; | |
} else { | |
obj = LinearColorInterpolator.convertHexToRgb(hexOrObject); | |
} | |
this.r = obj.r; | |
this.g = obj.g; | |
this.b = obj.b; |