This file contains 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
# | |
# cucumber.yml | |
# | |
# Filter which features are run with each profile by the file extension | |
webrat: --require features/steps/common --require features/support/webrat_env.rb --exclude selenium.feature --format progress | |
selenium: --require features/steps/common --require features/support/selenium_env.rb --exclude webrat.feature --format progress | |
# | |
# features/support/env.rb |
This file contains 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 config --global alias.lg "log --date=relative --since='1 week ago' --pretty -… | |
…-graph" |
This file contains 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 config --global alias.lg "log --graph --since='1 week ago' --pretty=format:'%Cblue%h%Creset %cr %Cgreen%an%Creset %s'" |
This file contains 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
checking for gcc... gcc | |
checking whether the C compiler works... yes | |
checking for C compiler default output file name... a.out | |
checking for suffix of executables... | |
checking whether we are cross compiling... no | |
checking for suffix of object files... o | |
checking whether we are using the GNU C compiler... yes | |
checking whether gcc accepts -g... yes | |
checking for gcc option to accept ISO C89... none needed | |
checking how to run the C preprocessor... gcc -E |
This file contains 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
var sys = require('sys'), | |
spawn = require('child_process').spawn, | |
http = require('http'); | |
http.createServer(function (req, res) { | |
var ffmpeg = spawn('ffmpeg', ['-i /path/to/file', '-f mp3', '-']); | |
res.writeHead(200, {'Content-Type': 'audio/mpeg'}); | |
ffmpeg.stdout.addListener('data', function (d) { |
This file contains 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
set myDelay to 0.1 | |
tell application "Safari" to activate | |
tell application "System Events" | |
tell process "Safari" | |
-- open the print dialog | |
click menu item "Print…" of menu 1 of menu bar item "File" of menu bar 1 | |
delay myDelay | |
click menu button "PDF" of sheet 1 of window 1 |
This file contains 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 | |
interface = 'eth0' | |
host = nil | |
`ifconfig #{interface}`.each do |line| | |
host = $1 if line =~ /inet addr:([\d\.]+)/ | |
end | |
map = { | |
2 => { 80 => :tcp }, # www |
This file contains 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: Facebook Connect | |
Scenario: Sign in with Facebook | |
When I go to the sign in page | |
And I press "Sign in with Facebook" | |
And Facebook returns uid:"123", nickname:"chunky.bacon", first_name:"Chunky", last_name:"Bacon", email:"bacon@mysite.co.nz" | |
Then I should see "Your mysite account was successfully created" |
This file contains 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
module Jammit | |
HASHES = YAML.load_file(File.join(Rails.root, "config", "assets.yml.lock")) || {} | |
def self.asset_url(package, extension, suffix=nil, mtime=nil) | |
file = filename(package, extension, suffix) | |
hash = HASHES[file] | |
"/cache/#{hash}/#{file}" | |
end |
This file contains 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
/* ------------------------------------------------------------------------------------------------- | |
It's *strongly* suggested that you don't modify this file. Instead, load a new stylesheet after | |
this one in your layouts (eg formtastic_changes.css) and override the styles to suit your needs. | |
This will allow you to update formtastic.css with new releases without clobbering your own changes. | |
This stylesheet forms part of the Formtastic Rails Plugin | |
(c) 2008 Justin French | |
--------------------------------------------------------------------------------------------------*/ |