We do not collect or store any information when you use this service.
This file contains 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
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; | |
} |
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:
This file contains 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
<meta name="auth0_client_key" content="<%= Application.get_env(:traverse, :auth0)[:client_key] %>"> | |
<meta name="auth0_endpoint" content="<%= Application.get_env(:traverse, :auth0)[:endpoint] %>"> |
This file contains 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
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 |
This file contains 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
defmulti foo (fn [ identifier, message ] identifier) | |
(defmethod foo :hello [ message ] | |
(println "Hello " message)) |
This file contains 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
(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)))) ] |
This file contains 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
(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 |
This file contains 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
# 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" |
This file contains 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
letmein |
NewerOlder