Skip to content

Instantly share code, notes, and snippets.

Noel Rappin noelrappin

Block or report user

Report or block noelrappin

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View rubocop.yml
# Rubocop file I use for book code
# Note, this is code I work on by myself, so some. things that I don't do I may not have covered
AllCops:
Exclude:
- "db/schema.rb"
- ".bundle/**/*"
- "bin/**/*"
- "vendor/**/*"
View block1.rb
PriceCalculator do
it "returns the price of one item" do
calculator = PriceCalcuator.new(Item.new(price: 200))
expect(calcuator.calculate).to eq(200)
end
end
View block2.rb
PriceCalculator
def initialize(*items)
end
def calculate
200
end
end
View gist:fe20ee4132bbea9f7c2454cd7bccae52
### Keybase proof
I hereby claim:
* I am noelrappin on github.
* I am noelrap (https://keybase.io/noelrap) on keybase.
* I have a public key whose fingerprint is 9D10 BE61 2831 3E78 345C F8B3 789C 84D0 FC55 9E5B
To claim this, I am signing this object:
View profiling.rb
class UnclaimedSlowTestException < Exception
THRESHOLD = 1
def initialize(example)
@example = example
end
def message
"This spec at #{@example.metadata[:location]} is slower than #{THRESHOLD} seconds.
View rubocop.yml
AllCops:
Exclude:
- "db/schema.rb" # You can't touch this
- ".bundle/**/*" # Auto-generated
- "bin/**/*" # Auto-generated
- "vendor/**/*" # We cannot solve the world's problems
TargetRubyVersion: 2.3
Rails:
Enabled: true
View code_email.md

Hi,

We'd like to continue the application process with you.

For technical candidates, we ask that they submit a solution to a coding challenge. Take a look at this exercise: REDACTED

Here are a few things we'd like you to keep in mind as you work on this problem.

We encourage you to think of this in a real world context, meaning that a client really wants to DO THIS THING, (you can assume the client has a laptop with them and can run arbitrary command-line or web programs). In other words, we want you to solve the problem, not just the algorithm. How will the client run the program? How will the output be presented?

View keybase.md

Keybase proof

I hereby claim:

  • I am noelrappin on github.
  • I am noelrap (https://keybase.io/noelrap) on keybase.
  • I have a public key whose fingerprint is 84D8 DF21 E2A5 56CD 18B6 880B B7C9 5761 2D75 E81F

To claim this, I am signing this object:

@noelrappin
noelrappin / index-test.js
Created Oct 14, 2014
Ember controller test with model
View index-test.js
import {
moduleFor,
test
} from 'ember-qunit';
import Ember from 'ember';
import startApp from '../../../../helpers/start-app';
var App;
var store;
@noelrappin
noelrappin / index_controller_spec.js
Last active Dec 16, 2015
Ember integration test
View index_controller_spec.js
// This is my attempt at an ember controller integration test based on http://jsfiddle.net/ekidd/hCsws/
// It almost works..
// Here's what doesn't work: Template lookup
// In the view description, I have
// template: Ember.TEMPLATES.index
//
// it should be
You can’t perform that action at this time.