- Susy Grid: A grid that you build with Susy. You can have multiple on one page if you need.
- Grid Element: Any HTML element that is aligned to a Susy Grid.
- Container: The root element in a Susy Grid. Anything inside it is a potential Grid Element.
- Context: Either root (default) or the number of columns spanned by the parent Grid Element.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Feature: Capybara Webkit focus test | |
In order to show that Capybara Webkit does not allow an element to maintain focus | |
I created this feature | |
Which anyone can try | |
@javascript | |
Scenario: Run demo page | |
When I am on the capybara demo page | |
Then I should see a successful result |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
require 'sinatra' | |
set server: 'thin', connections: [] | |
get '/' do | |
halt erb(:login) unless params[:user] | |
erb :chat, locals: { user: params[:user].gsub(/\W/, '') } | |
end | |
get '/stream', provides: 'text/event-stream' do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vagrant::Config.run do |config| | |
# ... | |
config.vm.customize do |vm| | |
# Use the host resolver for DNS so that VPN continues | |
# to work within the VM | |
vm.network_adapters.each do |na| | |
if na.enabled? && na.nat_driver | |
na.nat_driver.dns_use_host_resolver = true | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'selenium-webdriver' | |
pr = Selenium::WebDriver::Firefox::Profile.new | |
pr.native_events = true | |
d = Selenium::WebDriver.for :firefox, :profile => pr | |
d.get "http://jqueryui.com/demos/sortable/" | |
list = d.find_element(:id, 'sortable').find_elements(:tag_name, 'li') | |
d.action.drag_and_drop_by(list[0], 0, 200).perform |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cat .gitignore | egrep -v "^#|^$" | while read line; do | |
if [ -n "$line" ]; then | |
OLD_IFS=$IFS; IFS="" | |
for ignored_file in $( git ls-files "$line" ); do | |
git rm --cached "$ignored_file" | |
done | |
IFS=$OLD_IFS | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 Jed Schmidt <http://jed.is> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe ApiWrapper::Connection, "with retry enabled" do | |
before(:each) do | |
# connect to api | |
# the @api_wrapper object persists, across all the responses, and we set the number of retries | |
# on the ApiWrapper::Connection#get method here too, for when we call it further down in the spec. | |
@api_wrapper = ApiWrapper::Connection.new('stage.api_wrapper.com', APIWRAPPER_V2_API_KEY, APIWRAPPER_V2_PASSWORD, :retries => 2) | |
VCR.use_cassette("ApiWrapper_Connection/v2/raising unhandled errors") do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add this to the end of your development.rb and add | |
# | |
# gem 'pry' | |
# | |
# to your Gemfile and run bundle to install. | |
silence_warnings do | |
begin | |
require 'pry' | |
IRB = Pry |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'test/unit' | |
require 'em-http' | |
require 'vcr' | |
VCR.config do |c| | |
c.cassette_library_dir = 'fixtures/vcr_cassettes' | |
c.http_stubbing_library = :webmock | |
end |