Skip to content

Instantly share code, notes, and snippets.

@wallace
wallace / bigdecimaltest.rb
Created March 14, 2017 13:02
ruby 2.4 vs 2.3 wrt BigDecimal
#### RUBY 2.3 ####
2017-03-14 08:59:51 ⌚ |2.3.1| MBP1516W1R7sMBP in ~/Documents/projects → irb
[1] pry(main)> require 'bigdecimal'
=> true
[2] pry(main)> BigDecimal.new("")
=> #<BigDecimal:7fd10c18e518,'0.0',9(9)>
[3] pry(main)>
#### RUBY 2.4 ####
@wallace
wallace / 0_reuse_code.js
Created September 28, 2015 15:09
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@wallace
wallace / informal_job_announcement.txt
Created June 19, 2015 14:06
informal_job_announcement
hi all, i'm looking for a junior and mid-level developer preferably with some
ruby experience who's interested in working in Athens, Ga with me and an
excellent team. if you're looking to work in a collaborative work environment
that is focused on individual improvement in the context of solving heavy,
technical debt for in-house and client facing applications with relatively
large amounts of data (millions of database rows) to being at the beginning
of developing a SaaS application, then this might be a great fit for you.
hit me up with questions and or comments
class Point
include Comparable
attr_accessor :x, :y
def initialize(x,y)
@x = x
@y = y
end
def <=>(other)
customer = Stripe::Customer.create(description: "#{current_user.name} #{current_user.email}", card: payment_method.stripe_token)
delay 1.5
tell application "System Events"
set browser_apps to the name of every process whose visible is true
if "Safari" is in browser_apps then
tell application "Safari"
set hangout to URL of current tab of front window
end tell
else if "Google Chrome" is in browser_apps then
@wallace
wallace / gist:95a736e156d5811a6707
Created May 10, 2014 02:03
la_quinta_contact.txt
Good afternoon
My family and I had a very nice stay at La quinta in Savannah on Friday February 28th. When we checked out Saturday morning March 1st we left our kindle paperwhite in the room. We soon realized it (on that Saturday afternoon) and called the hotel to ask if it had been found. They said they would look and get back to us. We did not receive a phone call back, so I called again on Monday March 3rd. Once again they said they would look and get back to me. I received a phone call on Monday evening and the lady said that it had been found. She wrote down our address and said it would be mailed within a couple of days. We waited a week and a half and never received anything. I called again and asked to talk with the manager. He was very nice and accommodating. He said he would look into it. He called me and said that it had been sent to us. I told him it never arrived. After looking further into our address etc. he realized that it was a different kindle that a different couple left behin
class ExampleController < ApplicationController
def create
# something that calls private method
# ...
end
private
def private_method
params.

Keybase proof

I hereby claim:

  • I am wallace on github.
  • I am jonathanwallace (https://keybase.io/jonathanwallace) on keybase.
  • I have a public key whose fingerprint is F315 CDC7 D1B8 EFA2 BECA 1312 2F29 B66F E58B 717D

To claim this, I am signing this object:

simple:byebug jonathanwallace$ be rake test
/opt/boxen/rbenv/versions/2.1.0-preview1/bin/ruby -w -Ilib test/test_helper.rb
/opt/boxen/rbenv/versions/2.1.0-preview1/lib/ruby/gems/2.1.0/gems/debugger-linecache-1.2.0/lib/linecache19.rb:379: warning: assigned but unused variable - lines
Run options: --seed 6875
# Running:
dyld: lazy symbol binding failed: Symbol not found: _rb_funcall2
Referenced from: /Users/jonathanwallace/Documents/projects/byebug/lib/byebug.bundle
Expected in: flat namespace