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
### Keybase proof | |
I hereby claim: | |
* I am datise on github. | |
* I am datise (https://keybase.io/datise) on keybase. | |
* I have a public key ASCzN6rQEnKRCfrYKtfDzRXdz3kXQCcZQHGg9ZA5nnbp3Qo | |
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
// run this with "node 0.js" | |
console.log("Hello World"); |
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
SELECT isbn | |
FROM editions JOIN publishers ON (editions.publisher_id = publishers.id) | |
WHERE publishers.name='Random House' | |
SELECT isbn, book_id | |
FROM editions JOIN publishers ON (editions.publisher_id = publishers.id) | |
JOIN books ON editions.book_id = books.id | |
WHERE publishers.name='Random House' | |
SELECT editions.isbn, editions.book_id, stock.stock, stock.retail |
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
require 'rubygems' | |
require 'rest-client' | |
require 'open-uri' | |
DIRNAME = "vagrant" | |
hash = Dir.glob('../../vagrant/*/**').inject({}) do |hash, fname| | |
ext = File.basename(fname).split('.')[-1].to_s.downcase | |
hash[ext] ||= [ 0,0] | |
hash[ext][0] += 1 | |
hash[ext][1] += File.size(fname) |