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
# Like rspec --format doc, (which minitest doesn't have) | |
# | |
# usage: minidoc test/integration/robs_cool_potatoes_test.rb | |
minidoc() { | |
rscript=' | |
red = "\e[0;31m" | |
purple = "\e[0;35m" | |
green = "\e[0;32m" | |
blue = "\e[0;34m" | |
none = "\e[0m" |
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/sh | |
# Some things taken from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Set the colours you can use | |
black='\033[0;30m' | |
white='\033[0;37m' | |
red='\033[0;31m' | |
green='\033[0;32m' |
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
pp (YourClass.methods - Object.methods).sort |
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
module Assert | |
class AssertFailedException < Exception | |
end | |
def assert!(object, method, expected_value) | |
result = object.send(method) | |
if result != expected_value | |
raise new Assert::AssertFailedException("#{object} expected #{method} to be #{expected_value} but was #{result}" | |
end | |
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
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Data; | |
using System.Drawing; | |
using System.Linq; | |
using System.Text; | |
using System.Windows.Forms; | |
namespace Alexander_Sean_McArthur_300229975 |
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
# run this script on a fresh Ubuntu server installation as root | |
# copy public ssh key to server's authorized_keys keychain for simple ssh logins | |
mkdir -p ~/.ssh | |
echo -e '<your ssh public key here>' > ~/.ssh/authorized_keys | |
# setup .gemrc | |
echo -e '--- | |
:verbose: true |