- Build an Anime Robot in WebGL Using Three.js - $41
- Hacking Music and MIDI (and Animation) with Node.js and Clojure - regular edition - $23
- Hacking Music and MIDI (and Animation) with Node.js and Clojure - deluxe edition - $53
- Heretical Guide to Ember.js - $47
- Rails As She Is Spoke - $37
- Unfuck A Monorail For Great Justice - $41
- Software as a Disservice - Fixing a Broken Rails App - $23
- [Rails ebook bundle - all three](http://gilesbowkett.blogspot.com/2013
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
| class Customer | |
| attr_reader :name | |
| def initialize(name) | |
| @name = name | |
| @rentals = [] | |
| end | |
| def add_rental(arg) | |
| @rentals << arg |
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
| Exception in thread "main" java.lang.RuntimeException: EOF while reading string, compiling:(circles/core.clj:146:1) | |
| at clojure.lang.Compiler.load(Compiler.java:7137) | |
| at clojure.lang.RT.loadResourceScript(RT.java:370) | |
| at clojure.lang.RT.loadResourceScript(RT.java:361) | |
| at clojure.lang.RT.load(RT.java:440) | |
| at clojure.lang.RT.load(RT.java:411) | |
| at clojure.core$load$fn__5066.invoke(core.clj:5641) | |
| at clojure.core$load.doInvoke(core.clj:5640) | |
| at clojure.lang.RestFn.invoke(RestFn.java:408) | |
| at clojure.core$load_one.invoke(core.clj:5446) |
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
| Exception in thread "main" java.lang.IllegalArgumentException: No matching method found: .getDeclaredMethod for class java.lang.Class, compiling:(circles/core.clj:130:19) | |
| at clojure.lang.Compiler.load(Compiler.java:7142) | |
| at clojure.lang.RT.loadResourceScript(RT.java:370) | |
| at clojure.lang.RT.loadResourceScript(RT.java:361) | |
| at clojure.lang.RT.load(RT.java:440) | |
| at clojure.lang.RT.load(RT.java:411) | |
| at clojure.core$load$fn__5066.invoke(core.clj:5641) | |
| at clojure.core$load.doInvoke(core.clj:5640) | |
| at clojure.lang.RestFn.invoke(RestFn.java:408) | |
| at clojure.core$load_one.invoke(core.clj:5446) |
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
| ; given this vector | |
| (def probabilities [ 1 0 0 0.5 | |
| 0 0 1 0 ]) | |
| ; I want to run (< (rand) probability) against each element | |
| ; and ultimately get back either | |
| (def result [ 0 0.75 1.5 ]) |
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 script | |
| # accomplishes https://twitter.com/raganwald/status/501535500365086720 | |
| function MacBook() { | |
| if [ $1 == "THELONIUS" ] | |
| then | |
| if [ $2 == "Air" ] | |
| then |
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
| # sinatra | |
| get "/show" do | |
| # render a template here | |
| # maybe sneak in ActiveRecord or something | |
| end | |
| # waves equivalent, isolated for simplicity | |
| on :get, :show => [ 'entry', :name ] do |
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
| model.foobar = model.foo_or_bar? # business logic | |
| response.content = model.to_json # serialization | |
| response.headers += "Content-type: foo/bar" # protocol details | |
| response.send # ok go |
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
| alias MacBook="sudo" | |
| alias THELONIUS="sudo" | |
| alias Air="sudo" |
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
| # only open After Effects if cache hard drive is plugged in | |
| function fx() { | |
| if [ -d /Volumes/Vanniman\ Time\ Machine/ ] | |
| then | |
| open -a Adobe\ After\ Effects\ CC | |
| fi | |
| } |
OlderNewer