- Bill Callahan - Dream River
Standout track: Small Plane
- Daft Punk - Random Access Memories
Standout track: Get Lucky
- David Bowie - The Next Day
Standout track: Where Are We Now?
- Arctic Monkeys - AM
Standout track: R U Mine?
- John Grant - Pale Green Ghosts
Standout track: Glacier
- Deerhunter - Monomania
Standout track: Monomania
- Mark Kozelek & Jimmy Lavalle - Perils From The Sea
Standout track: Gustavo
- Vampire Weekend - Modern Vampires Of The City
Standout track: Step
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
// | |
// Expand various image providers, without having a lot of duplicate code. | |
// | |
// Install by hand, like an animal, or use [gasoline](https://github.com/pjaspers/gasoline) | |
// | |
Campfire.UniversalImageExpander = Class.create({ | |
initialize: function(chat) { | |
this.chat = chat; | |
this.services = { | |
dribbble: /^https?:\/\/[www.]?dribbble.com\/shots\/([A-Za-z0-9]+)/, |
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
Frances ha | |
the worlds end | |
the broken circle breakdown | |
the bling ring | |
pain and gain | |
the great beauty | |
(kate) blue jasmine | |
nebraska | |
beyond the hills | |
the great gatsby |
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
def convert_command(command, *args) | |
args.map! do |word| | |
if word.is_a?(TrueClass) || word.is_a?(FalseClass) | |
word ? '1' : '0' # convert bool to 1 or 0 | |
elsif word.is_a?(Range) | |
if word.end == -1 # negative means to end of range | |
"#{word.begin}:" | |
else | |
"#{word.begin}:#{word.end + (word.exclude_end? ? 0 : 1)}" | |
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
class Song | |
# Create a new Song. | |
# | |
# path - The spotify path | |
# | |
# Returns nothing. | |
def initialize(options={}) | |
self.path = options[:path] if options[:path] | |
cache_album_art | |
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
# Takes a Github Username and copies his/her public key | |
# | |
# ghkey pjaspers | |
# | |
function ghkey { | |
if (( $# < 1 )) | |
then echo "usage: ghkey <username>"; return 1; fi | |
curl -sL https://github.com/$1.keys | pbcopy | |
} |
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
// Bob & Franz bookmarklet | |
// | |
// Bookmarklet to instantly display Bob & Franz. | |
// | |
// Using the Google Closure Compiler to minify the JS: | |
// | |
// curl -O -XPOST -d compilation_level=SIMPLE_OPTIMIZATIONS -d output_info=compiled_code -d output_format=text --data-urlencode "[email protected]" http://closure-compiler.appspot.com/compile | |
// | |
// Cats should have their own namespace | |
window.BobFranz = {}; |
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
/* | |
Display CloudUp images inline. | |
*/ | |
Campfire.CloudUpExpander = Class.create({ | |
initialize: function(chat) { | |
this.chat = chat; | |
var messages = this.chat.transcript.messages; | |
for (var i = 0; i < messages.length; i++) { | |
this.detectCloudUpURL(messages[i]); |
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
# def foo now returns a symbol instead of nil, allowing for something like this | |
class Thing | |
protected def some;end | |
protected def like; end | |
def it; end | |
protected def hot; end | |
end | |
Thing.new.protected_methods |
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
Once upon a very long time ago we did a project to compare the efficiency of | |
Erlang to PLEX. | |
We implemented "the same things" (TM) in Erlang and PLEX and counted total man hours | |
We did this for several different things. | |
Erlang was "better" by a factor of 3 or 25 (in total man hours) - the weighted average was a factor 8 | |
They asked "what is the smart programmer effect" |