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:
class Gort < Formula | |
desc "GORT is a Command Line Toolkit for RobotOps" | |
homepage "http://gort.io/" | |
version "0.5.2" | |
if MacOS.prefer_64_bit? | |
url "https://s3.amazonaws.com/gort-io/0.5.2/gort_0.5.2_darwin_amd64.zip" | |
sha256 "dbcc1f35017ec452986798468631b47350b5bc6dc33e25e812c94c74438f190a" | |
else | |
url "https://s3.amazonaws.com/gort-io/0.5.2/gort_0.5.2_darwin_386.zip" |
I hereby claim:
To claim this, I am signing this object:
$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 |
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) }, |
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) |
#!/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| |
(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]) |
incr_digest = Digest::MD5.new() | |
the_tarball.each_line do |line| | |
incr_digest << line | |
end | |
md5 = incr_digest.hexdigest |
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 |
require 'rubygems' | |
require 'httparty' | |
require 'uri' | |
module PictureSearch | |
class TwitterSearch | |
include HTTParty | |
base_uri 'search.twitter.com' | |
default_params :output => 'json' |