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
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAtfa1ympybOXisMIlvinQ5nbDB0WGtu4q5SaUaQ67M7GJ8oacBCAy63pf9YCf+GuJ9XvQDhAhRGUPpmn0qtz5zP+ZTLrRdXZ9tYcl4RHo3ElCFgvaL5vWsISxwBXj4G4xLX4GTMSWYDJvQCzm2rWxqq98nswWvFOOgPh40Wx2ztU1uNXEq1tOO/1AtF/nTGL/xZzjw59fpjhP1UghkXfYd/nMPQDIytvNXJdc3V/O+Oo4vfkOqQ0+feL9laeJuht5XPDm/GMfLajkf+iJe7e9AIMIJhEsNCJj0GC4plricTXzqnY12iaIzupDf11M9/hbPNOImUFuB1zbmTaTIKCUYQ== siga |
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
<?xml version="1.0"?> | |
<root> | |
<item> | |
<name>Homerow Arrow Keys (Dvorak)</name> | |
<appendix>Change Fn+C to Move Up</appendix> | |
<appendix>Change Fn+T to Move Down</appendix> | |
<appendix>Change Fn+H to Move Left</appendix> | |
<appendix>Change Fn+S to Move Right</appendix> | |
<identifier>private.homerow_arrowkeys_dvorak</identifier> | |
<modifier_only> |
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
# ... code that builds the calls_hashes Array | |
# THIS CODE SPAWNS NEW MONGO CONNECTIONS | |
unless Rails.env.production? | |
line.calls.with(safe: true).create!(calls_hashes) | |
else | |
line.calls.with(write: {w: 'majority'}, safe: true).create!(calls_hashes) | |
end | |
# ... code that schedules map&reduce jobs. |
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
{ | |
"erb_verify_command": "erb -xT - {file_name} | ruby -c", | |
"ruby_verify_command": "ruby -c {file_name}", | |
"run_ruby_unit_command": "ruby -Itest {relative_path}", | |
"run_single_ruby_unit_command": "ruby -Itest {relative_path} -n '{test_name}'", | |
"run_cucumber_command": "cucumber {relative_path}", | |
"run_single_cucumber_command": "cucumber {relative_path} -l{line_number}", |
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 HashReducer | |
# use the block to transform the addition/reduce result for each value | |
def self.reduce!(base: nil, add: nil, &block) | |
base = {} unless base | |
add = {} unless add | |
fail 'base: must be a hash!' unless base.is_a?(Hash) | |
fail 'add: must be a hash!' unless add.is_a?(Hash) | |
add.each do |k,v| | |
if v.is_a?(Hash) | |
base[k] = {} unless base[k] |
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
/var/folders/q8/p7npkjgn17d5m_7f1rdhnkww0000gn/T/ruby-build.20141121115309.41710 /usr/local/Cellar/ruby-build/20141113/share/ruby-build | |
/var/folders/q8/p7npkjgn17d5m_7f1rdhnkww0000gn/T/ruby-build.20141121115309.41710/rubinius-2.3.0 /var/folders/q8/p7npkjgn17d5m_7f1rdhnkww0000gn/T/ruby-build.20141121115309.41710 /usr/local/Cellar/ruby-build/20141113/share/ruby-build | |
Fetching gem metadata from https://rubygems.org/.. | |
Installing rake 10.3.2 | |
Installing daedalus-core 0.1.0 | |
Installing redcard 1.1.0 | |
Installing rubinius-ast 2.2.5 | |
Installing rubinius-bridge 1.1.0 | |
Installing rubinius-compiler 2.2.1 | |
Installing rubinius-melbourne 2.2.2.0 |
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
# https://zvkemp.github.io/blog/2014/04/25/binary-search-trees-in-ruby/ | |
module BinaryTree | |
class EmptyNode | |
def to_a | |
[] | |
end | |
def include?(*) | |
false |
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
#!/usr/bin/env ruby | |
# Ruby Recursive Build | |
# This script is intended for environment first setups automation, its homebrewed and tested only on my env. | |
# Use it at your own risk. | |
# I strongly recommend you to read the code through, and change it to fit your needs. | |
# It will look for your .ruby-version files and install all of 'em | |
# run this inside your Workspace folder | |
# Download it into your Workspace folder | |
# chmod +x ruby-recursive-building.rb |
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
heroku config:set BUILDPACK_URL=https://github.com/heroku/heroku-buildpack-ruby.git#v84 --app YOURAPP |
NewerOlder