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
\documentclass{ou-assignment} | |
\student{My Name} | |
\email{[email protected]} | |
\identifier{B1234567} | |
\course{M248} | |
\tma{1} | |
\tmapart{1} | |
\date{January 20, 2011} |
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 'nokogiri' | |
require 'open-uri' | |
require 'cgi' | |
searches = [['alf', 'www.hedweb.com/alffaq.htm'], ['bold food', 'http://dockets.justia.com/docket/new-york/nysdce/1:2009cv00440/338836/']] | |
searches.each do |term, url| | |
def search(term, url, start = 0) |
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
echo1: echo "Hello world 1" | |
echo2: echo "Hello world 2" |
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
puts "Hello world" |
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
client = BBC::Redux::Client.new | |
user = client.login("your-username", "your-password") | |
key = client.key("5286788632060148780", user.session) | |
frame = "http://framestore.bbcsnippets.co.uk/generate/frame/by_disk_reference/5286788632060148780/400/57.jpg?key=" + key.value | |
client.logout(user) |
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/bash | |
set -e | |
if [ $# -ne 1 ] || [ ! -f $1 ]; then | |
echo "usage: `basename $0` file" | |
exit 1 | |
fi | |
input=$1 |
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
command: rake test gem:build gem:push |