Skip to content

Instantly share code, notes, and snippets.

View xchoi's full-sized avatar

alex choi xchoi

  • Asana
  • San Francisco, CA
  • 01:14 (UTC -07:00)
View GitHub Profile
@xchoi
xchoi / jasmine_spec.rb
Created July 9, 2015 22:00
jasmine spec from rspec that passes rubocop
require 'spec_helper'
describe 'Jasmine suite', :js do
def run_jasmine_tests
visit '/jasmine'
Timeout.timeout(10) do
sleep 0.25 while page.has_css?('.runningAlert')
end
end
@xchoi
xchoi / gist:1516166
Last active August 30, 2016 20:47
Asian name generator
%w(a e i o u).map {|x|
['', 'a', 'e', 'i', 'o', 'u'].map {|y|
['', 'n', 'ng'].map {|z|
if (x!=y)
%w(l ch).map {|a|
a + x + y + z
}
else
nil
end