Instantly share code, notes, and snippets.

View database_cleaner.rb
require "capybara/rspec"
RSpec.configure do |config|
config.use_transactional_fixtures = false
config.before(:suite) do
if config.use_transactional_fixtures?
raise(<<-MSG)
Delete line `config.use_transactional_fixtures = true` from rails_helper.rb
(or set it to false) to prevent uncommitted transactions being used in
View gist:30b7efef4c8c38f38f689b7314b38b32
Browserify: /Users/jroelofs/Development/browserify-rails/test/dummy/node_modules/.bin/browserifyinc -d --list --cachefile=/Users/jroelofs/Development/browserify-rails/test/dummy/tmp/cache/browserify-rails/browserifyinc-cache.json -o "/Users/jroelofs/Development/browserify-rails/test/dummy/tmp/cache/browserify-rails/output20170222-67719-sza12e" -
Browserify: /Users/jroelofs/Development/browserify-rails/test/dummy/node_modules/.bin/browserifyinc -d --cachefile=/Users/jroelofs/Development/browserify-rails/test/dummy/tmp/cache/browserify-rails/browserifyinc-cache.json -o "/Users/jroelofs/Development/browserify-rails/test/dummy/tmp/cache/browserify-rails/output20170222-67719-1ga4zhp" -
Exorcist: /Users/jroelofs/Development/browserify-rails/test/dummy/node_modules/.bin/exorcist /Users/jroelofs/Development/browserify-rails/test/dummy/app/assets/javascripts/application.map -b /Users/jroelofs/Development/browserify-rails/lib
F
View reply.md

Brian,

I believe you misunderstood the message I was trying to convey in my reply, but that's understandable as Twitter does not really provide a usable framework for such discussions. As such, I'm not going to try to reply in Twitter as I can't make that work but instead will line out my thoughts here.

To preface my original tweet: The Ruby community is oft known for arrogance, egotism, and shaming. Rubyists have not been a very welcoming bunch. I myself have readily partook in such discussions and joined the echo chamber far more often than I probably realize. As such, I've met many developers who refuse to touch the language in fear or disgust of having to deal with what has been a toxic community. I do believe that we as a Ruby community are better today but the damage has been done and won't quickly be forgotten.

As such, this is the last thing I want to happen to the budding and fantastic Elixir community. While a simple website like "canphoenixscale.com" is in itself harmless, it cannot be taken on

View dupefinder.js
(function () {
"use strict";
var find_dupes = function () {
var identified = document.querySelectorAll('[id]'),
found = {},
id,
idx;
for (idx = 0; idx < identified.length; idx++) {
id = (identified[idx]).getAttribute('id');
if(found[id]) {
View game_config.rs
/// All config-related options handled here
extern crate serialize;
use std::collections::HashMap;
use std::path::posix::Path;
use std::io::File;
use serialize::json;
#[deriving(Decodable, Encodable, Show)]
View 1 - master
/Users/roelofs/.rvm/rubies/ruby-2.1.2/bin/ruby ./performance/benchmark.rb lax
Running benchmark for 60 seconds (with 5 seconds warmup).
Calculating -------------------------------------
parse: 2 i/100ms
parse & run: 1 i/100ms
-------------------------------------------------
parse: 28.3 (±7.1%) i/s - 1690 in 60.040297s
parse & run: 13.9 (±7.2%) i/s - 833 in 60.043217s
View 1) Master
/Users/roelofs/.rvm/rubies/ruby-2.1.2/bin/ruby ./performance/benchmark.rb lax
Rehearsal ------------------------------------------------
parse: 3.660000 0.020000 3.680000 ( 3.688094)
parse & run: 7.710000 0.010000 7.720000 ( 7.723662)
-------------------------------------- total: 11.400000sec
user system total real
parse: 3.480000 0.010000 3.490000 ( 3.491892)
parse & run: 7.650000 0.020000 7.670000 ( 7.662562)
View Shopify master
ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-darwin13.0]
$ ruby ./performance/benchmark.rb lax
Rehearsal ------------------------------------------------
parse: 3.410000 0.020000 3.430000 ( 3.428711)
parse & run: 7.490000 0.010000 7.500000 ( 7.500437)
-------------------------------------- total: 10.930000sec
user system total real
View 1_template.liquid
{% include 'header' %}
<h1>{{ item.title }}</h1>
{{ request.host }}
{{ item.data.body }}
View master.txt
] rake benchmark:run benchmark:strict profile:run profile:strict
ruby ./performance/benchmark.rb lax
Rehearsal ------------------------------------------------
parse: 4.420000 0.030000 4.450000 ( 4.455098)
parse & run: 9.050000 0.030000 9.080000 ( 9.078304)
-------------------------------------- total: 13.530000sec
user system total real
parse: 4.320000 0.020000 4.340000 ( 4.339127)
parse & run: 8.810000 0.020000 8.830000 ( 8.832378)