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 'sinatra' | |
| require 'haml' | |
| require 'sass' | |
| get '/stylesheet.css' do | |
| content_type 'text/css', :charset => 'utf-8' | |
| sass :stylesheet | |
| 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
| <html> | |
| <head> | |
| <script type='text/javascript' src='jquery-1.3.2.min.js'></script> | |
| <script type='text/javascript' src='jquery.cycle.lite.1.0.min.js'></script> | |
| <style> | |
| body { margin: 0 } | |
| li { width: 100% } | |
| h1 { | |
| position: absolute; | |
| font-family: arial; |
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
| #!/usr/bin/env bash | |
| # call like this on the target server: | |
| # NODENAME='foo' CHEF_ENV='production' RUNLIST='["role[foo]","recipe[bar]"]' CHEFREPO='[email protected]:repo.git' bash <( curl -L https://raw.github.com/gist/1026628 ) | |
| # You will need to ensure that the ssh key is already set up on the server. | |
| set -e | |
| export CHEF_DIR="${HOME}/chef" | |
| sudo rm -rf $CHEF_DIR | |
| mkdir -p "$CHEF_DIR" |
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
| committers = `git log --pretty=format:%an` | |
| authors = [] | |
| committers.each_line do |commit| | |
| commit.chomp.split(' and ').map{|a| authors.push a} | |
| end | |
| stats = Hash.new(0) | |
| authors.map do |author| | |
| stats[author] += 1 | |
| 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
| Feature: Paul pays employees | |
| In order to retain staff | |
| As Paul the Payroll Manager I want to pay my staff | |
| Scenario: | |
| Given an admin user called "Paul" with a password "password" | |
| And a user called "Bob" | |
| And "Bob" is an employee | |
| And "Bob" gets paid "$2,000" a month | |
| When I visit the homepage |
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
| Given /^an employee called "([^"]+)"$/ do |employee_name| | |
| create_employee(employee_name) | |
| end | |
| Then /^I should be able to pay "([^"]+)" his salary$/ do |employee_name| | |
| pay_salary_to(employee_) | |
| 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
| Given /^an employee called "([^"]+)"$/ do |employee_name| | |
| create_employee(employee_name) | |
| end | |
| Then /^I should be able to pay "([^"]+)" his salary$/ do |employee_name| | |
| pay_salary_to(employee_) | |
| 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
| diff --git a/app/account.rb b/app/account.rb | |
| index a108685..c89ad34 100644 | |
| --- a/app/account.rb | |
| +++ b/app/account.rb | |
| @@ -1,4 +1,22 @@ | |
| +require 'open-uri' | |
| + | |
| module Sol | |
| + class Url | |
| + def self.get(url) |
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
| git status --porcelain | grep 'test' | grep -v 'factories' | cut -c4- | sort | uniq | xargs zeus test |
OlderNewer