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
$ vagrant box add ubuntu http://cloud-images.ubuntu.com/vagrant/precise/current/precise-server-cloudimg-amd64-vagrant-disk1.box | |
Downloading or copying the box... | |
Extracting box...te: 2942k/s, Estimated time remaining: 0:00:01) | |
The box you're attempting to add already exists: | |
Name: ubuntu | |
Provider: virtualbox | |
$ vagrant box list | |
ubuntu (virtualbox) |
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
[default] Mounting shared folders... | |
[default] -- /vagrant | |
[default] -- /app_path |
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
Failing Scenarios: | |
cucumber features/capybara_javascript_drivers.feature:22 # Scenario: Use a particular driver | |
cucumber features/capybara_javascript_drivers.feature:44 # Scenario: Mixed DB access | |
cucumber features/choose_javascript_database_strategy.feature:30 # Scenario: Set the strategy to truncation and run a javascript scenario. | |
cucumber features/emulate_javascript.feature:3 # Scenario: See a widget | |
cucumber features/mongoid.feature:6 # Scenario: Keep Mongoid happy | |
cucumber features/multiple_databases.feature:62 # Scenario: Default transactional strategy is not attempted on second database | |
cucumber features/multiple_databases.feature:71 # Scenario: Truncation strategy is used on the second database |
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 | |
rails new BugReproduce -T | |
cd BugReproduce | |
echo "group :test do" >> Gemfile | |
echo " gem 'cucumber-rails'" >> Gemfile | |
echo " gem 'rspec-rails'" >> Gemfile | |
echo " gem 'database_cleaner'" >> Gemfile | |
echo "end" >> Gemfile | |
echo "group :development do" >> Gemfile |
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
{ | |
"_links": { | |
"self": { | |
"href": "https://twitter.com/calebbuxton/status/328995716200558592" }, | |
"reply": { | |
"href": "https://twitter.com/i/tweet/create?in_reply_to_status_id=328995716200558592" }, | |
"favourite": { | |
"href": "https://twitter.com/i/tweet/favorite?id=328995716200558592" } | |
}, |
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
# TMUX | |
if which tmux 2>&1 >/dev/null; then | |
# if no session is started, start a new session | |
test -z ${TMUX} && (tmux attach || tmux new-session) | |
# when quitting tmux, try to attach | |
while test -z ${TMUX}; do | |
tmux attach || break | |
done | |
fi |
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
#!/bin/bash | |
read -p "Branch? " branch | |
echo | |
git co $branch | |
git pull origin $branch | |
git rebase az/master | |
read -p "Clean rebase? " -n 1 rebase | |
echo |
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
<a href="chrome://chrome/settings/pointer-overlay#mouse">click here</a> |
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
rotation_z180 = [ | |
[cos(180), -sin(180), 0, 0], | |
[sin(180), cos(180), 0, 0], | |
[0, 0, 1, 0], | |
[0, 0, 0, 1]]; | |
rotation_x90 = [ | |
[1, 0, 0, 0], | |
[0, cos(90), sin(90), 0], | |
[0, -sin(90), cos(90), 0], |
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
class Notifier | |
constructor: -> | |
@enableNotification = false | |
@checkOrRequirePermission() | |
hasSupport: -> | |
window.webkitNotifications? | |
requestPermission: (cb) -> | |
window.webkitNotifications.requestPermission (cb) |