Skip to content

Instantly share code, notes, and snippets.

Avatar

Horace Williams worace

View GitHub Profile
View gis_workshop.org
View snake_quil.cljs
(ns snake-quil.core
(:require [quil.core :as q :include-macros true]
[quil.middleware :as m]))
(enable-console-print!)
(defn setup []
(q/frame-rate 60)
(q/color-mode :hsb)
{:color 0
View distances.txt
name | address_1 | miles_from_laci
-----------------------------------------------------------+---------------------------------------+------------------
Youth Green Community Garden | 12467 W. Osborne Street | 17.8526752533434
Eagle Rockdale Community Garden and Art Park | 1003 Rockdale Avenue | 6.99298846428767
Milagro Allegro Community Garden | 111 S Ave 56 | 5.28154294629922
Glassell Park Community Garden | 3305 Drew Street | 5.50435772214898
Elysian Valley Community Garden | 1816 W Blake Avenue | 3.93094291476127
Fountain Community Gardens | 5620 Fountain Avenue | 5.73078542701499
Mansfield Fountain Community Garden | 1259 N Mansfield
View sequences.rb
require "minitest/autorun"
require "set"
class Sequencer
def sequences(words)
# go through all words
# go through each consecutive slice of 4
# look in the map for that slice
# add the word to the corresponding set
# pick out the keys where values have 1 in the set
@worace
worace / Brandon1608Plan.org
Last active Jun 20, 2016
Plan for Prepping for 1608 Module 1 Repeat
View Brandon1608Plan.org

Brandon 1608 Prep Work

To make sure we are ready to re-join 1608, I’d like you to complete the following steps by **Monday, August 8**.

1 - Prework

Complete the “If you have a month” prework curriculum here.

Make sure you’re filling in all the required documentation in the prework gist according to the instructions provided.

View der_encoding_decoding.rb
sample_data = {:private_der => "MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCmhlYyYt6wttT+ZO6SeV8nHmf3OTWdSYuO92DHDiIEHSqVwDRKEQ15XVQVvolyR7Y5NnrQWBUT6S7wsTQxMET1hXiUB3ioTdfU701Adad6WE2udM1BexGhcteP167P1K3t9uDz7iXF6Smc8YA8O3rvpMye8MgeefRGO4GT7Mf3stxG5H+LWmy2CI+cKHxMGK8vPX93MZ0Fnx28n6kGtS4dw+imZyU3kEqqMA5bWWWoZEW1r8k/xuvyGrhiaALftvH8LpPpnutrBPLwVE5oaggejjFC5PrM2oNbwcYs9HLvQFU/tUkLeIm2k3CMIGdjNRKaOgw9jy9Fy1JQQgdbDOh3AgMBAAECggEAB2H2SVaTy97XM44S+6Bw5QGWl2HMbDQ6ATUbb8fDH06RuEDksJHv+Hz4QNyJKG1geUneiQUWriLM53PbvgCHViE8NsfcBA4rbu/LC3wL2EM48m6QOQJ1RiSaxPBJekJSEbY7w+S/fPY415HnXwQ+D4jNX5CKNruuZjy2InJBbUxI3rzMGFOFkIANp+0MoID3p1naTT/VAsBRpQxH//CrprJqcwU8Nq1UE5UpHY7alCSteDpOZ3OeE8zQ68tXhP3X8Zd2Se25YtTOfeVXq64NnnIz3V7CsCxIlkA9rRhe44rAG+mhqAcvDESetgWvcODjxp6tGWBElQVec8+jzKF65QKBgQDYhxUEHCkgOgYV4CN7jiO0WB+zwURIWdFiZSRn2WqsCJNzkAfwjZaMNEawvCt3ZI8wobFL+mXa8E7meg2csRkTkEgbqaysFKi6CV9A0rGK+tcPPPCh+uimTob9IHU9iH/dyz4k/nMOmKMqJHtPlutCIv25vsu5Q9X6FT5f1QUd7QKBgQDE4be1InvN6gwQzHpQpuh/ot4JHQvs9bKlxE1jyL5zgy/qdDEEH69m42juA0YPe3NQ
View whack_http.cljs
(ns clarke-wallet.http
(:require-macros [cljs.core.async.macros :refer [go go-loop]])
(:require [cljs.core.async :as a]))
(def http (js/require "http"))
(defn read-json [string]
(->> string
(.parse js/JSON)
(js->clj)))
@worace
worace / app.js
Created May 29, 2016
Electron Woes
View app.js
ipc.on("request-rsa-key", (event, keyLength) => {
console.log("Renderer requested RSA key of length", keyLength);
var k = new NodeRSA({b: keyLength})
event.sender.send('rsa-key', k);
console.log("***** Main Finished Key *****")
});
@worace
worace / week_3.markdown
Created May 26, 2016
Module 1 Week 3 Diagnostic
View week_3.markdown

Module 1 Week 3 Diagnostic

This exercise is intended to help you assess your progress with the concepts and techniques we've covered during the week.

For these questions, write a short snippet of code that meets the requirement. In cases where the question mentions a "given" data value, use the variable given to refer to it (instead of re-writing the information).

@worace
worace / abhiyerra.rb
Created May 23, 2016
Jekyll Org Mode Experiments
View abhiyerra.rb
# https://gist.github.com/abhiyerra/7377603
module Jekyll
# Convert org-mode files.
require 'org-ruby'
class OrgConverter < Converter
safe true
def setup
# No-op
You can’t perform that action at this time.