Skip to content

Instantly share code, notes, and snippets.

View jordanfowler's full-sized avatar

Jordan Fowler jordanfowler

View GitHub Profile
{
"$schema": "https://json.schemastore.org/resume",
"basics": {
"name": "Jordan Fowler",
"label": "Technologist. Doing more with less.",
"image": "",
"email": "me@jordanfowler.co",
"phone": "",
"url": "",
"summary": "Technologist with a bias for action. I'm able to talk to people as well as machines. A focus on business understanding and applications of technology which enables smarter decision-making, increased revenue, and/or reduced costs.",

Keybase proof

I hereby claim:

  • I am jordanfowler on github.
  • I am jordanfowler (https://keybase.io/jordanfowler) on keybase.
  • I have a public key ASAnTz9Gu4tcS-jtnC_f6Os6RjDHd-X23EmCHfv2DmeQewo

To claim this, I am signing this object:

@jordanfowler
jordanfowler / conjured_mana_cake.rb
Last active July 17, 2018 21:37
Gilded Rose Exercise
module Delegates
class ConjuredManaCake < DefaultItem
def tick
unless quality == 0
if days_remaining > 0
@quality -= 2
else
@quality -= 4
end
end
(1..100).each do |i|
buffer = []
buffer << "Fizz" if i > 0 && i % 3 == 0
buffer << "Buzz" if i > 0 && i % 5 == 0
buffer << i.to_s if buffer.compact.empty?
puts buffer.join
end
@jordanfowler
jordanfowler / gist:e35958f412424122ed7f
Last active August 29, 2015 14:05
Sexy Ruby Exception handling in Method
def render(*args); puts "Render: #{args.inspect}"; end
def render_error(*args); puts "Render error: #{args.inspect}"; end
class Error < Exception
end
def exceptional_method(test)
if not test
raise Error, "Error message: #{not true}"
end
require 'benchmark'
require 'ostruct'
class LocalStruct < OpenStruct
def run_proc(&block)
instance_eval(&block) if block_given?
end
end
class LocalStruct2