This is a test
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
get '/trackers/tumblr', :to=>'tumblr_trackers#index', :as=>'tumblr_trackers' | |
get '/trackers/tumblr/new', :to=>'tumblr_trackers#new', :as=>'new_tumblr_tracker' | |
post '/trackers/tumblr', :to=>'tumblr_trackers#create' | |
get '/trackers/tumblr-:id', :to=>'tumblr_trackers#show', :as=>'tumblr_tracker' | |
get '/trackers/tumblr-:id/edit', :to=>'tumblr_trackers#edit', :as=>'edit_tumblr_tracker' | |
put '/trackers/tumblr-:id', :to=>'tumblr_trackers#update' | |
delete '/trackers/tumblr-:id', :to=>'tumblr_trackers#destroy' |
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
[~]$ ruby -Ku -e 'puts "Kevin Sjöberg".bytes.to_a.inspect' [ruby-1.8.7-p358] | |
[75, 101, 118, 105, 110, 32, 83, 106, 195, 182, 98, 101, 114, 103] | |
[~]$ ruby scratch.rb "Kevin Sjöberg" [ruby-1.8.7-p358] | |
[75, 101, 118, 105, 110, 32, 83, 106, 195, 182, 98, 101, 114, 103] | |
[~]$ [ruby-1.8.7-p358] | |
[~]$ cat scratch.rb |
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 | |
num_times = (ARGV[0] || "1_000_000").gsub(/_/,'').to_i | |
seed = (ARGV[0] || Time.now).to_i | |
$stderr.puts "seed is #{seed}" | |
srand(seed) | |
time = Time.now.to_f | |
users = %w[Ace Beer Charlie Don Edward Freddie George Harry Ink Johnnie King London Monkey Nuts Orange Pip Queen Robert Sugar Toc Uncle Vic William Xray Yorker Zebra] | |
num_times.times do |user| |
Sometimes we have fun
#!/bin/bash
clear
echo -ne " \n\n\n\n"
echo -ne " a fantastic shrimp voyage\r"
sleep 2
echo -ne " * ( \r"
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 'timeout' | |
begin | |
timeout(1) do | |
sleep(5) | |
end | |
rescue Timeout::Error => e | |
puts e.inspect | |
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
# |
I hereby claim:
- I am mando on github.
- I am mando (https://keybase.io/mando) on keybase.
- I have a public key whose fingerprint is 483F 3CAA E2E4 A208 1869 C970 FB95 C90D 84F2 AABF
To claim this, I am signing this object:
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 'pry' | |
class Vampire < RTanque::Bot::Brain | |
NAME = 'VAMPIRE' | |
include RTanque::Bot::BrainHelper | |
attr_accessor :mah_bot | |
def tick! | |
@mah_bot = nil | |
# Find myself |
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-3.2$ diff -B <( sort A | tr [:lower:] [:upper:] ) <( sort B | tr [:lower:] [:upper:] ) | |
2a3 | |
> HARMONY | |
bash-3.2$ bash --version | |
GNU bash, version 3.2.51(1)-release (x86_64-apple-darwin13) | |
Copyright (C) 2007 Free Software Foundation, Inc. | |
bash-3.2$ uname -a | |
Darwin Socrates 13.3.0 Darwin Kernel Version 13.3.0: Tue Jun 3 21:27:35 PDT 2014; root:xnu-2422.110.17~1/RELEASE_X86_64 x86_64 |