Skip to content

Instantly share code, notes, and snippets.

View jarednorman's full-sized avatar
☹️
not actually grumpy

Jared Norman jarednorman

☹️
not actually grumpy
View GitHub Profile
@jarednorman
jarednorman / react-phantomjs.markdown
Created February 22, 2016 08:05
Running React on PhantomJS

Running React on PhantomJS

I ran into an issue getting a simple Capybara/Poltergeist feature test suite running against a site that used React.js. The following failure was bubbling up to RSpec.

Failures:
@jarednorman
jarednorman / roda-middleman.markdown
Created February 22, 2016 08:02
Roda to Middleman in 1 Easy Step

Roda to Middleman in 1 Easy Step

In an experiment to try to squeeze as many unicorns as I could out of a single dyno on Heroku, I built a version of this website on top of Roda, a thin routing layer for Rack.

It was successful experiment, between freezing about every object I could find, and a lot of other various tweaking, I had an app that provided me the convenicence of the workflow/tools I'm used to (code-reloading, Sprockets,

@jarednorman
jarednorman / fizzbuzz.markdown
Created February 22, 2016 07:59
Fizzbuzz in Elixir

Fizzbuzz in Elixir

Elixir is a beautiful language. Among its strength is its powerful pattern matching system which allows one to write very declarative, elegant code. FizzBuzz is a trivial problem often presented to new programmers or interviewees to determine baseline programming ability. Here is a solution Elixir:

defmodule FizzBuzz do
jdjkelly> uh
jdjkelly> did anyone bring the buttfor?
mnote> *what's a buttfor*?
mnote> :)
jdjkelly> for pooping, silly