Skip to content

Instantly share code, notes, and snippets.

View akjetma's full-sized avatar

Adam Jetmalani akjetma

  • >_>
  • <_<
View GitHub Profile
@akjetma
akjetma / Gemfile
Last active December 25, 2015 18:19
little ruby wrapper for orchestrate.io API v0 beta
source 'https://rubygems.org'
gem 'rest-client'
gem 'json'
gem 'pry'
@akjetma
akjetma / remeat.js
Last active December 27, 2015 23:29
remeat control. change the meatword to whatever you want to listen for then plop it in your console.
var observer,
callback,
options,
meats;
var meatword = "meatlejuice meatlejuice meatlejuice",
queued = false;
callback = function( recordqueue ) {
var meatspeaks = recordqueue[0].addedNodes,
@akjetma
akjetma / core.clj
Created December 14, 2015 04:39
TripleByte question
(ns triplebyte.core)
(defn split-string
([s position] (split-string s (count s) position))
([s length position]
[(subs s 0 position)
(subs s position length)]))
(defn twigs
[branch]
(require '[org.httpkit.client :as h]
'[clojure.data.json :as json]
'[clojure.string :as string])
(def base-url "http://challenge.shopcurbside.com")
(def session-url (str base-url "/get-session"))
(defn get-session
[]
@(h/get session-url))