Skip to content

Instantly share code, notes, and snippets.

View braidn's full-sized avatar
🏰
Storming

Braden Douglass braidn

🏰
Storming
View GitHub Profile
Feature: This is just for simple testing purposes
Background:
Given I am at the list of adhesives
And there is an object named "Stuff"
Scenario:
When I click on "Stuff"
Then I am presented with a detailed view of the object
Feature: This is just for simple testing purposes
Background:
Given I am at the list of adhesives
And there is an object named "Stuff"
Scenario:
When I click on "Stuff"
Then I am presented with a detailed view of the object
source 'http://rubygems.org'
gem 'rails', '3.2.3'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'sqlite3'
gem 'ruby_parser'
gem 'hpricot'
# IMPORTANT: This file is generated by cucumber-rails - edit at your own peril.
# It is recommended to regenerate this file in the future when you upgrade to a
# newer version of cucumber-rails. Consider adding your own code to a new file
# instead of editing this one. Cucumber will automatically load all features/**/*.rb
# files.
require 'cucumber/rails'
# Capybara defaults to XPath selectors rather than Webrat's default of CSS3. In
# order to ease the transition to Capybara we set the default here. If you'd
@braidn
braidn / vimrc.before
Created October 31, 2012 20:11
vimwiki everywhere
let g:vimwiki_ext2syntax = {'.md',: 'markdown', '.markdown': 'markdown', '.mdown': 'markdown'}
@braidn
braidn / gist:4157152
Created November 27, 2012 21:28
Stacktrace of rake db:migrate
** Invoke environment (first_time)
** Execute environment
** Invoke db:load_config (first_time)
** Execute db:load_config
** Execute db:migrate
rake aborted!
An error has occurred, this and all later migrations canceled:
Survey is not a class
/Users/cannonball/Desktop/survey/db/migrate/20121127190871_update_blank_api_ids_
def a_test
puts 'responded successfully'
end
@braidn
braidn / sum_of_list.sml
Created January 22, 2013 04:05
ML Just got me off the couch
fun sum_list(xs : int list) =
if null xs
then 0
else hd xs + sum_list(tl xs)
class CompletelyFuckingCustomController < ApplicationController
def index
@completelyFuckingAwesome = CompletelyFuckingCustom.all
end
def show
@completelyFuckingAwesome = CompletelyFuckingCustom.find(params[:id])
end
def new
@braidn
braidn / scorched.rb
Last active December 15, 2015 08:39
just playing with a little / new framework
class MyApp < Scorched::Controller
render_defaults.merge!(
engine: :haml,
layout: :index
)
#redirect after a 404 error
after status:404 do
redirect('/')
end
middleware << proc {