Will Jessop wjessop

View keybase.md

Keybase proof

I hereby claim:

  • I am wjessop on github.
  • I am wj (https://keybase.io/wj) on keybase.
  • I have a public key whose fingerprint is C8A4 CD1E A9C6 B7EF 61C5 3CE8 2571 144B 6931 2734

To claim this, I am signing this object:

View command.go
1 2 3 4 5 6 7 8 9 10
 
func (r *repo_handle) get_tar_file() (string, error) {
target_dir, tmpdir_err := ioutil.TempDir("", "captain_app_tar")
log.Println("Got temp directory for app tar", target_dir)
if tmpdir_err != nil {
return "", tmpdir_err
}
 
archive_path := target_dir + "/" + "app.tar"
log.Println("Going to create the tar archive at path", archive_path)
View gist:7916171
1 2 3 4
[sc-chi] root@proxy-02:~# docker insert slsdhf app.tar /tmp/app.tar
 
[sc-chi] root@proxy-02:~# echo $?
0
View words.rb
1 2 3 4 5 6 7 8 9 10
require 'minitest/autorun'
 
class TestWords < Minitest::Test
def test_that_similar_words_are_found
assert_equal one_off_words("moor", ["door", "moot", "boot", "boots"]), ["door", "moot"]
end
 
def test_fake_failure
assert_equal one_off_words("moor", ["door", "moot", "boot", "boots"]), ["door", "moot", "fuckers"]
end
View gist:7752495
1 2 3 4 5 6 7 8 9 10
class Array
def xor(key)
a = dup
a.length.times { |n| a[n] ^= key[n % key.size] }
a
end
end
 
stra = "123abc"
strb = "123adc"
View piglow.go
1 2 3 4 5 6 7 8 9 10
package main
 
import (
"github.com/wjessop/go-piglow"
"log"
)
 
func main() {
var p *piglow.Piglow
var err error
View ordered_processing.rb
1 2 3 4 5 6 7 8 9 10
require 'thread'
 
LAST_VAL = 8
q = Queue.new
(0..LAST_VAL).to_a.shuffle.each {|i| q << i}
 
vals = []
next_val = 0
loop do
puts "popping the stack"
View api.rb
1 2 3 4 5 6 7 8 9 10
# The API I thought up, This example will
# sleep for 16 seconds (4 * 4 seconds + 5 seconds)
begin
RollingTimeout.new(5) {|timer|
sleep(4)
timer.reset
sleep(4)
timer.reset
sleep(4)
View foo.go
1 2 3 4 5 6 7 8 9 10
package backup_downloader
 
import (
"bytes"
"io"
"log"
"os"
"os/exec"
"sync"
)
View gist:4996860
1 2 3 4 5 6 7 8 9 10
[1.9.3] ~ $ cd Desktop/Funny\ pictures/
[1.9.3] ~/Desktop/Funny pictures $ sendcat *
https://sendc.at/dl/3kqUAI5QGty5uCzqHVbIiCJGZDoULqrSsINOJTAgIEfJBnEHsr62Pel
105.gif was already uploaded, skipping
1265713754_fl: 100% |========================| 469.1KB 108.8KB/s ETA: 00:00:00
1324316240_ca: 100% |========================| 3.4MB 121.8KB/s ETA: 00:00:00
1RyYE.gif was already uploaded, skipping
1rSzCqgzWn8kh: 100% |========================| 1.9MB 117.7KB/s ETA: 00:00:00
1vlzxNk.jpeg: 100% |========================| 226.0KB 101.5KB/s ETA: 00:00:00
292920_10150689018263944_156425228943_9541657_455613102_n.jpg was already uploaded, skipping
Something went wrong with that request. Please try again.