Skip to content

Instantly share code, notes, and snippets.

View scmx's full-sized avatar

Albert Arvidsson scmx

View GitHub Profile
@alex-ross
alex-ross / Gemfile
Last active December 26, 2018 20:18
Nanobox + Capybara + Rails + RSpec
# Gemfile
group :development, :test do
gem 'rspec-rails'
gem "capybara"
gem "selenium-webdriver"
end
@JoshCheek
JoshCheek / christmas-tree.rb
Last active June 21, 2017 09:12
A bunch of command-line progrmas for a blog
require 'io/console'
height, width = $stdout.winsize
clear_screen = "\e[1;1H\e[2J"
bg_colour = "\e[40m"
tree_colour = "\e[42m"
base_height = 3
# Go into raw mode so users can enter 1 character at a time
$stdin.raw!