Skip to content

Instantly share code, notes, and snippets.

View arthurnn's full-sized avatar
🟢
CI is passing

Arthur Nogueira Neves arthurnn

🟢
CI is passing
View GitHub Profile
class NonDigestAssets
include Rake::DSL
FILES = ["external/app.js"]
def generate
assets_files.map do |file|
non_digested = file.gsub /(\-[a-z0-9]{32})/, ""
next unless FILES.all? {|s| non_digested =~ /#{s}/}
class NonDigestAssets
include Rake::DSL
FILES = ["external/app.js"]
def generate
assets_files.map do |file|
non_digested = file.gsub /(\-[a-z0-9]{32})/, ""
next unless FILES.all? {|s| non_digested =~ /#{s}/}
Arthurs-MacBook-Pro:strowger arthurnn$ godep go build
# github.com/flynn/rpcplus
/var/folders/b6/89_6cbqs6f9grl6qwg5v4yyc0000gn/T/godep/rev/7c/e4d7e5143b55e7376b16bde2cfab5814d5fabe/src/github.com/flynn/rpcplus/server.go:834: undefined: debugHTTP
# github.com/coreos/go-etcd/etcd
/var/folders/b6/89_6cbqs6f9grl6qwg5v4yyc0000gn/T/godep/rev/1e/26d8ee84cf9b1000d2af8acfb45b2521f49be5/src/github.com/coreos/go-etcd/etcd/client.go:41: undefined: Cluster
/var/folders/b6/89_6cbqs6f9grl6qwg5v4yyc0000gn/T/godep/rev/1e/26d8ee84cf9b1000d2af8acfb45b2521f49be5/src/github.com/coreos/go-etcd/etcd/client.go:57: undefined: Cluster
godep: go exit status 2
#input = File.read "input.txt"
input = <<-S
3
7 4
2 4 6
8 5 9 3
S
lines = []
input.each_line do |line|
#input = File.read "input.txt"
input = <<-S
3
7 4
2 4 6
8 5 9 3
S
lines = []
input.each_line do |line|
require 'benchmark'
require 'i18n'
p I18n.config.enforce_available_locales = "true" == ARGV[0]
I18n.available_locales = [:en, :"es-CR", :ne, :it, :gl, :ru, :eu, :hr, :vi, :"pt-BR", :el, :sr, :hi, :"hi-IN", :mk, :id, :de, :bn, :"es-VE", :lt, :cy, :et, :rm, :uk, :bs, :"de-AT", :ar, :"es-MX", :tl, :nn, :"en-US", :eo, :or, :ca, :sk, :wo, :he, :pl, :tr, :ko, :fr, :"zh-HK", :bg, :af, :hu, :"de-CH", :nl, :"es-CO", :es, :uz, :kn, :"zh-CN", :lv, :sl, :fa, :"en-IN", :"es-PE", :"en-CA", :sw, :da, :cs, :ja, :"en-AU", :pt, :nb, :sv, :fi, :"fr-CA", :"es-AR", :th, :"en-GB", :lo, :mn, :is, :ro, :"en-NZ", :"es-CL", :"it-CH", :"en-IE", :"es-419", :"fr-CH", :az, :"zh-TW"]
puts Benchmark.measure { 10000.times { I18n.t "foo" } }
require 'active_record'
require 'minitest/autorun'
ActiveRecord::Base.establish_connection(adapter: "sqlite3", database: ":memory:")
p "AR version #{ActiveRecord::VERSION::STRING}"
class Sample < ActiveRecord::Base
connection.create_table table_name, force: true do |t|
t.string :name
t.timestamps
require 'active_record'
require 'logger'
ActiveRecord::Base.establish_connection(adapter: "sqlite3", database: ":memory:")
p ActiveRecord.version
ActiveRecord::Base.logger = Logger.new(STDOUT)
class User < ActiveRecord::Base
connection.create_table table_name, force: true do |t|
t.column :name, :string
# -*- coding: utf-8 -*-
require 'active_record'
require 'minitest/autorun'
require 'logger'
#ActiveRecord::Base.establish_connection(adapter: 'sqlite3', database: ':memory:')
#ActiveRecord::Base.establish_connection(adapter: 'mysql2', database: 'test', username: 'root')
ActiveRecord::Base.establish_connection(adapter: "postgresql", host: "localhost", user: "postgres", database: "test")
p ActiveRecord.version
ActiveRecord::Base.logger = Logger.new(STDOUT)

Errbit

Errbit is an opensource error tracker that follows the Airbrake API. It uses Ruby on Rails, and Mongoid to connect to MongoDB.

The code is maintened by a few people, and we are very active at GitHub, so we follow the GitHub open source flow of Pull Requests, Issues, and merges. All new contributions are welcomed and highly appriciated. We are also looking for more projects maintainer to make sure the project is always being pushed foward.

As a production environment, we use errbit extensively at Shopify, and we are willing to test/help with new features. I will be the main mentor for this project, but we also have an IRC channel to make sure we are always on top of communication and no question is unanswered.

Goals: