I hereby claim:
- I am whoisjake on github.
- I am whoisjake (https://keybase.io/whoisjake) on keybase.
- I have a public key whose fingerprint is D060 8CA9 794C 30B8 3239 56BA AB0F E856 7996 733F
To claim this, I am signing this object:
require 'rubygems' | |
# sudo gem install httparty | |
require 'httparty' | |
# sudo gem sources -a http://gems.github.com && sudo gem install multipart-post | |
require 'net/http/post/multipart' | |
require 'mime/types' | |
require 'pp' | |
class Dropio | |
include HTTParty |
require 'rubygems' | |
require 'httparty' | |
require 'uri' | |
module PictureSearch | |
class TwitterSearch | |
include HTTParty | |
base_uri 'search.twitter.com' | |
default_params :output => 'json' |
module Rack | |
# A rack middleware for wrapping sites in http://kanyelicious.appspot.com/. | |
class Kanye | |
def initialize(app) | |
@app = app | |
end | |
def call(env) | |
request_uri = env['REQUEST_URI'] | |
# Check if kanye=true exists, remove param, and stop |
incr_digest = Digest::MD5.new() | |
the_tarball.each_line do |line| | |
incr_digest << line | |
end | |
md5 = incr_digest.hexdigest |
(ns life (:use clojure.test clojure.set)) | |
(def under-populated 1) | |
(def over-populated 4) | |
(def fertile 3) | |
(defn north [[x y]] [x (inc y)]) | |
(defn south [[x y]] [x (dec y)]) | |
(defn east [[x y]] [(inc x) y]) | |
(defn west [[x y]] [(dec x) y]) |
#!/usr/local/bin/ruby | |
require 'find' | |
p "This script will copy the contents of your LEGO MINDSTORMS NXT disc to your desktop, make necessary adjustments to the installer for Mac OS X 10.6 and later, and then initiate the MINDSTORMS installer. Please insert the MINDSTORMS NXT disc before you continue. Would you like to continue? (Y/N)" | |
$name = gets.chomp | |
if $name[0,1].casecmp("Y") == 0 | |
$NXT_CD_Mounted = false | |
Dir.entries("/Volumes").each do |path| |
require 'clever-ruby' | |
module CleverExt | |
def all_pages(filters={}) | |
page_count = 1000 | |
page_n = 1 | |
filters[:limit] = page_count | |
filters[:page] = page_n | |
objects = [] | |
page = all(filters) |
class Lisp | |
def initialize | |
@env = { | |
:label => lambda { |(name,val), _| @env[name] = val }, | |
:quote => lambda { |sexpr, _| sexpr[0] }, | |
:car => lambda { |(list), _| list[0] }, | |
:cdr => lambda { |(list), _| list.drop 1 }, | |
:cons => lambda { |(e,cell), _| [e] + cell }, | |
:eq => lambda { |(l,r), _| l == r }, | |
:if => lambda { |(cond, thn, els), ctx| eval(cond, ctx) ? eval(thn, ctx) : eval(els, ctx) }, |
$script = <<SCRIPT | |
apt-get update --fix-missing | |
apt-get install -y python-software-properties | |
add-apt-repository ppa:terry.guo/gcc-arm-embedded | |
apt-get update | |
apt-get install -y build-essential | |
apt-get install -y gcc-arm-none-eabi | |
apt-get install -y dfu-util | |
apt-get install -y git-core |
I hereby claim:
To claim this, I am signing this object: