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
# http://henrik.nyh.se/2008/12/git-dirty-prompt | |
# http://www.simplisticcomplexity.com/2008/03/13/show-your-git-branch-name-in-your-prompt/ | |
# username@Machine ~/dev/dir[master]$ # clean working directory | |
# username@Machine ~/dev/dir[master*]$ # dirty working directory | |
function parse_git_dirty { | |
[[ $(git status 2> /dev/null | tail -n1) != "nothing to commit (working directory clean)" ]] && echo "*" | |
} | |
function parse_git_branch { | |
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/[\1$(parse_git_dirty)]/" |
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
# | |
# bash completion support for core Git. | |
# | |
# Copyright (C) 2006,2007 Shawn O. Pearce <[email protected]> | |
# Conceptually based on gitcompletion (http://gitweb.hawaga.org.uk/). | |
# Distributed under the GNU General Public License, version 2.0. | |
# | |
# The contained completion routines provide support for completing: | |
# | |
# *) local and remote branch names |
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 ruby | |
# Posterous.com API HTTP AUTH Example | |
require 'base64' | |
require 'open-uri' | |
require 'net/http' | |
user = '[email protected]' | |
password = 'password' | |
host = 'posterous.com' |
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
# Dir['vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) } | |
require 'rubygems' | |
require 'railsless-deploy' | |
load 'config/deploy' |
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
function parse_git_svn_revision { | |
ref1=$(__git_ps1 | sed -e "s/ (\(.*\))/(git: \1$(parse_git_dirty))/") | |
#ref1=$(parse_git_branch) | |
if [ "x$ref1" != "x" ]; then | |
ref2=$(git branch -a | grep git-svn) | |
if [ "x$ref2" != "x" ]; then | |
ref3=$(git svn info | grep Revision) | |
echo " ${ref1} (svn: r"${ref3#Revision: }") " | |
else |
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
package main | |
import ( | |
"fmt" | |
"io" | |
"log" | |
"net/http" | |
"os" | |
) |
Here are some resources that I found helpful and found inspiration from when I was writing the talk.
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: Updating an existing request | |
In order to change my mind about what I need | |
I want to be able to edit my Request | |
Background: | |
Given I am logged in with facebook | |
And I go to the new request page | |
And I fill in the following: | |
| I want | Dragon's Lair Arcade Game | | |
| for | 2000 | |
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: Updating an existing request | |
In order to change my mind about what I need | |
I want to be able to edit my Request | |
Background: Logged in via facebook with one request | |
Given I am logged in with facebook | |
And I have a request for "Dragon's Lair Arcade Game" at $2000 | |
Scenario: Logged in users can edit requests | |
When I change the request to "iPhone6" at $300 |
OlderNewer