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
| jViTBizGANaGywdZaYavwXUBWBuf5qQJVFVBQP6iaURq9veP87jsEBxCwX2ouY10 | |
| cWFL2RxOhWhKIkAj6aS8ZTVwliKBeTA2Mwb51mCfsXbUoupWGkmdtTyyVN0i | |
| GQz2naCg+OGmAo8gysw1bIXKvqdTkIqrM1/ybBAKhD1EMFJhalChIYCv8PpD | |
| uS8EFby+z5bTKJ6v/JXmORIylGZeAWLdF1LXGePx8xQCQA8/PlC8qAQJxf0vs0 | |
| iK2y2JAtSvcBwB9KGuNjOJ/IFsCSvnpQ92tM/t2vMnTQ9EUyGbse5Dhj7dgL | |
| SCIK2E4RbSa5KFgIGyxBxQV4Y91/gmAE6Cf9WQ4Zo35E6oFQSIH73Xt5TxDouY | |
| 1n4yZGbf0Uu5/q5zkkcIV3Hb5UNs8or6iGylnRDiY3PBGSCPnP85roGD7DNp | |
| ssrRXVq0+hgCdxSwN7j3zyTm9vAQ3A9xI0Re7PBXZ8ecXfWqXB1ph9b8oCKS6 | |
| tBlyTdFDGlbKcP/6yStHr/zWWDM1pgVr9uEPFBIVz/d+7KCe0oifb6B+8jGd | |
| CTW5VzbtMyw6hImkDROwJ9BmVAjboUutMG0koI_31HKBRaaaaaaaaCmDwSGrQLRw |
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
| #!/bin/sh | |
| set -e | |
| DROPBOX_TOKEN= | |
| DIR=${1:-~} | |
| RUBY_VERSION=2.5.0 | |
| # setup logfile (set to append to log) | |
| exec 4>>"$DIR"/basis.log |
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
| ruby/ruby -v | |
| dyld: lazy symbol binding failed: Symbol not found: _clock_gettime | |
| Referenced from: /foo/bar/ruby (which was built for Mac OS X 10.12) | |
| Expected in: /usr/lib/libSystem.B.dylib |
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
| static int | |
| include_modules_at(const VALUE klass, VALUE c, VALUE module, int search_super) | |
| { | |
| VALUE p, iclass; | |
| int method_changed = 0, constant_changed = 0; | |
| const st_table *const klass_m_tbl = RCLASS_M_TBL(RCLASS_ORIGIN(klass)); | |
| while (module) { | |
| int superclass_seen = FALSE; |
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
| class CircuitsController < ApplicationController | |
| layout 'circuit_landing_page' | |
| skip_before_filter :authenticate_user! | |
| before_filter :set_programs, only: :show | |
| respond_to :html | |
| CIRCUIT_PROGRAM_IDS = { | |
| 'web-design-circuit' => 3689, | |
| 'data-analysis-circuit' => 4105 | |
| } |
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 'deferrable_gratification' | |
| class Promise | |
| def initialize | |
| @df = EM::DefaultDeferrable.new | |
| DG.enhance! EM::DefaultDeferrable | |
| end | |
| def done(&block) | |
| tap { @df.callback(&block) } |
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
| [1] pry(main)> def returns(type) | |
| [1] pry(main)* ->(method_name) { | |
| [1] pry(main)* old_method = instance_method(method_name) | |
| [1] pry(main)* define_method(method_name) do |*args, &block| | |
| [1] pry(main)* return_value = old_method.bind(self).call(*args, &block) | |
| [1] pry(main)* unless return_value.class <= type | |
| [1] pry(main)* raise TypeError, "Return value is not of type #{type}!" | |
| [1] pry(main)* end | |
| [1] pry(main)* return_value | |
| [1] pry(main)* 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
| class Proc | |
| def |(other) | |
| ->(*args) { self.(*args) || other.(*args) }; | |
| end | |
| def &(other) | |
| ->(*args) { self.(*args) && other.(*args) } | |
| 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
| class UserCreator | |
| def initialize(listener) | |
| @listener = listener | |
| end | |
| def create(attributes) | |
| user = User.new(attributes) | |
| if user.save | |
| # send email |
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
| ### Keybase proof | |
| I hereby claim: | |
| * I am banister on github. | |
| * I am banisterfiend (https://keybase.io/banisterfiend) on keybase. | |
| * I have a public key whose fingerprint is 4DE2 CE74 F739 8BE1 F95A 1CD2 D551 92EA 0E1F 312C | |
| To claim this, I am signing this object: |