Skip to content

Instantly share code, notes, and snippets.

View jellybob's full-sized avatar

Jon Wood jellybob

View GitHub Profile
@jellybob
jellybob / foo.java
Last active January 21, 2019 12:40
public String toString() {
String message = "The book, " + title + " was written by " + getAuthorName() + " it is " + pageCount() + " pages long.";
if (!this.author.alive) {
message = message + " It will become public domain in " + getYearsToPublicDomain() + " years.";
}
return message;
}
@jellybob
jellybob / Privacy Policy.md
Created October 6, 2018 09:41
Storytime Policies

Privacy Policy

We do not collect or store any information when you use this service.

@jellybob
jellybob / keybase.md
Created August 4, 2017 09:33
keybase.md

Keybase proof

I hereby claim:

  • I am jellybob on github.
  • I am jonwood (https://keybase.io/jonwood) on keybase.
  • I have a public key whose fingerprint is F191 1AE1 82A4 EB79 F588 840E 7D26 D129 627C 5749

To claim this, I am signing this object:

<meta name="auth0_client_key" content="<%= Application.get_env(:traverse, :auth0)[:client_key] %>">
<meta name="auth0_endpoint" content="<%= Application.get_env(:traverse, :auth0)[:endpoint] %>">
@jellybob
jellybob / gist:5858953
Last active December 18, 2015 23:08
I may be a little annoyed with Yodel now.
Good day to you sirs and madams,
I've been asked via Twitter by Danny on your customer support team to make a formal complaint. Presumably contacting you via Twitter wasn't considered formal enough. I shall endeavour to make sure we've been introduced and bow correctly next time.
On Saturday the 15th of June a large parcel was delivered to my address, 20 Middle Hill, despite the label on said parcel saying 20 Egham Hill. Well, I say it was delivered. Others might say it was unceremoniously dumped outside the front door in the rain.
At 1:20pm on that day I rang your customer support phone line, but everyone goes home at 1pm on a Saturday. In exasperation I had a quick moan about it on Twitter. They're used to me moaning about your service since almost every delivery results in the driver not finding my house for several attempts, or just plain not turning up.
On Monday Danny sent me a message, suggesting that if I got in touch he could arrange for the parcel to be picked up. Success! A customer service tri
defmulti foo (fn [ identifier, message ] identifier)
(defmethod foo :hello [ message ]
(println "Hello " message))
(def state
ref { :view-ns 'media-mogul.frontend.main-menu })
(defn- callback
[ name & args ]
; Rummages around in the specified namespace, extracts any public methods
; and then finds the one with the same name as the callback being requested.
;
; Then evals it for good measure.
(let [ callback-fn @(name (ns-publics (the-ns (:view-ns @state)))) ]
(ns media-mogul.frontend.callbacks)
(defmulti renderer (fn [ state container graphics ] (:view state) ))
(defmethod renderer :default
[ state container graphics ]
(doto graphics
(.drawString "Using default renderer", 30, 30)))
(defmulti updater (fn [ state container delta ] (:view state) ))
(defmethod updater :default
@jellybob
jellybob / download_harrington.rb
Created September 29, 2012 21:38
Download Honor Harrington books for Kindle conversion.
# Go to http://www.baen.com/series_list.asp?letter=H and find the book ID for the one you
# want, and replace the book variable with it. Run this program, and add the resulting
# index.html to Calibre, which can then convert it to a .mobi. Finally, email the .mobi
# to your Kindle and enjoy.
require 'capybara'
require 'capybara/dsl'
require 'capybara/webkit'
require 'fileutils'
book = "0743435710"
letmein