Skip to content

Instantly share code, notes, and snippets.

View oldfartdeveloper's full-sized avatar

Scott Smith oldfartdeveloper

View GitHub Profile
@oldfartdeveloper
oldfartdeveloper / opal_no_find_cuke_gem.md
Last active August 29, 2015 13:55
Opal can't seem to find Cucumber gem.

I'm trying to spike running Cucumber in Opal; it's not find it, and I don't know why.

Here's my app/application file. The only change is the addition of the last 3 lines:

# when using sprockets/rails, we must include the corelib
require 'opal'

[1, 2, 3].each { |a| puts a }
@oldfartdeveloper
oldfartdeveloper / gist:5842002
Created June 22, 2013 18:29
A simple Ruby structure for experimenting with classes and definitions without having to retype them in (as in `irb`).

Use this as a template from your favorite editer/IDE. Simple replace the comment in the #execute method with your experiment.

class DirtyHarry

  def execute

    # Feeling lucky, punk?

 end
@oldfartdeveloper
oldfartdeveloper / gist:3956644
Created October 26, 2012 03:05 — forked from fkchang/gist:3956417
rails gem file for opal_test
# create app
rails new opal_test
# add to Gemfile below ruby
gem 'haml'
gem 'haml-rails'
gem 'opal-rails'
# generate controller w index action