Skip to content

Instantly share code, notes, and snippets.

View jdashton's full-sized avatar

Daniel Ashton jdashton

  • Germantown, Maryland, United States
View GitHub Profile
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

Keybase proof

I hereby claim:

  • I am jdashton on github.
  • I am jdashton (https://keybase.io/jdashton) on keybase.
  • I have a public key whose fingerprint is 39DA E6E8 C279 F690 375A BE9E CAEA 2538 8112 BEC8

To claim this, I am signing this object:

$ rvm install 2.6.1
Found old RVM 1.29.7-next - updating.
Ruby enVironment Manager 1.29.7-next (with-openssl-dir) (c) 2009-2017 Michal Papis, Piotr Kuczynski, Wayne E. Seguin
# rvm get
Update RVM
## Usage
@jdashton
jdashton / rubygems.install.log
Created February 7, 2019 16:41
.rvm/log/1549554328_ruby-2.6.1/rubygems.install.log
[2019-02-07 11:18:14] /Users/jdashton/.rvm/rubies/ruby-2.6.1/bin/ruby
current path: /Users/jdashton/.rvm/src/rubygems-3.0.2
GEM_PATH=/Users/jdashton/.rvm/gems/ruby-2.5.3:/Users/jdashton/.rvm/gems/ruby-2.5.3@global
GEM_HOME=/Users/jdashton/.rvm/gems/ruby-2.5.3
PATH=/usr/local/opt/coreutils/bin:/usr/local/opt/pkg-config/bin:/usr/local/opt/libtool/bin:/usr/local/opt/automake/bin:/usr/local/opt/autoconf/bin:/Users/jdashton/.rvm/gems/ruby-2.5.3/bin:/Users/jdashton/.rvm/gems/ruby-2.5.3@global/bin:/Users/jdashton/.rvm/rubies/ruby-2.5.3/bin:/Users/jdashton/.rvm/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/VMware Fusion.app/Contents/Public:/usr/local/MacGPG2/bin:/Users/jdashton/.rvm/bin:/Users/jdashton/bin
command(7): env GEM_HOME=/ruby-2.6.1@global GEM_PATH= /Users/jdashton/.rvm/rubies/ruby-2.6.1/bin/ruby -d /Users/jdashton/.rvm/src/rubygems-3.0.2/setup.rb --no-document
Exception `LoadError' at /Users/jdashton/.rvm/rubies/ruby-2.6.1/lib/ruby/2.6.0/rubygems.rb:1375 - cannot load such
@jdashton
jdashton / make.log
Created February 7, 2019 16:40
.rvm/log/1549554328_ruby-2.6.1/make.log
[2019-02-07 11:14:03] __rvm_make
__rvm_make ()
{
\make "$@" || return $?
}
current path: /Users/jdashton/.rvm/src/ruby-2.6.1
GEM_PATH=/Users/jdashton/.rvm/gems/ruby-2.5.3:/Users/jdashton/.rvm/gems/ruby-2.5.3@global
GEM_HOME=/Users/jdashton/.rvm/gems/ruby-2.5.3
PATH=/usr/local/opt/coreutils/bin:/usr/local/opt/pkg-config/bin:/usr/local/opt/libtool/bin:/usr/local/opt/automake/bin:/usr/local/opt/autoconf/bin:/Users/jdashton/.rvm/gems/ruby-2.5.3/bin:/Users/jdashton/.rvm/gems/ruby-2.5.3@global/bin:/Users/jdashton/.rvm/rubies/ruby-2.5.3/bin:/Users/jdashton/.rvm/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/VMware Fusion.app/Contents/Public:/usr/local/MacGPG2/bin:/Users/jdashton/.rvm/bin:/Users/jdashton/bin
command(2): __rvm_make -j8
@jdashton
jdashton / config.log
Created February 7, 2019 16:39
.rvm/log/1549554328_ruby-2.6.1/config.log
This file has been truncated, but you can view the full file.
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure --prefix=/Users/jdashton/.rvm/rubies/ruby-2.6.1 --with-opt-dir=/usr/local/opt/libyaml:/usr/local/opt/libksba:/usr/local/opt/readline:/usr/local/opt/zlib:/usr/local/opt/openssl@1.1 --disable-install-doc --enable-shared
## --------- ##
d11442:~ jdashton$ rvm install 2.6
Found old RVM 1.29.7-next - updating.
Downloading https://get.rvm.io
Downloading https://raw.githubusercontent.com/rvm/rvm/master/binscripts/rvm-installer.asc
Verifying /Users/jdashton/.rvm/archives/rvm-installer.asc
gpg: Signature made Sun Dec 30 05:44:46 2018 EST
gpg: using RSA key 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
gpg: Good signature from "Piotr Kuczynski <piotr.kuczynski@gmail.com>" [unknown]
gpg: WARNING: This key is not certified with a trusted signature!
gpg: There is no indication that the signature belongs to the owner.
d11442:~ jdashton$ rvm get master
Downloading https://get.rvm.io
Downloading https://raw.githubusercontent.com/rvm/rvm/master/binscripts/rvm-installer.asc
Verifying /Users/jdashton/.rvm/archives/rvm-installer.asc
gpg: Signature made Sun Dec 30 05:44:46 2018 EST
gpg: using RSA key 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
gpg: Good signature from "Piotr Kuczynski <piotr.kuczynski@gmail.com>" [unknown]
gpg: WARNING: This key is not certified with a trusted signature!
gpg: There is no indication that the signature belongs to the owner.
Primary key fingerprint: 7D2B AF1C F37B 13E2 069D 6956 105B D0E7 3949 9BDB
@jdashton
jdashton / code.rb
Created October 5, 2017 13:21
Aligning parallel code elements for visual simplicity
def self.recalculate(election, new_history)
# if we have one or more updates, just leave the values as they are
if election.history['updates'].length == 0
new_values = new_history['seeds'].reduce({pre_tax: 0, after_tax: 0, roth: 0}) {|acc, seed|
{
pre_tax: [acc[:pre_tax ], seed['values']['pre_tax' ].to_d].max,
after_tax: [acc[:after_tax], seed['values']['after_tax'].to_d].max,
roth: [acc[:roth ], seed['values']['roth' ].to_d].max
}
}