Skip to content

Instantly share code, notes, and snippets.

View ekhall's full-sized avatar

EK Hall ekhall

  • Personal
  • New York, USA
View GitHub Profile
@ekhall
ekhall / gist:09a4900dd074718c26bc
Created April 1, 2015 20:58
raco compile error
❯ raco exe window.rkt [16:57:48]
open-input-output-file: cannot open output file
path: /Users/hall/Desktop/window
system error: Permission denied; errno=13
context...:
/usr/local/Cellar/plt-racket/6.1.1/share/racket/collects/compiler/private/mach-o.rkt:349:0: get/set-dylib-path
/usr/local/Cellar/plt-racket/6.1.1/share/racket/collects/compiler/private/macfw.rkt:17:2: update-framework-path
/Users/hall/Library/Racket/6.1.1/pkgs/compiler-lib/compiler/commands/exe.rkt: [running body]
/usr/local/Cellar/plt-racket/6.1.1/share/racket/collects/raco/raco.rkt: [running body]
/usr/local/Cellar/plt-racket/6.1.1/share/racket/collects/raco/main.rkt: [running body]
func dbPersistUser() {
let group: dispatch_group_t = dispatch_group_create()
let queue: dispatch_queue_t = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0)
dispatch_group_enter(group)
if self.sessionId == nil {
nik.restPath(Globals.kSessionURL,
method: "POST",
queryParams: [:],
@ekhall
ekhall / mqtt
Created December 11, 2015 20:41
(ns queuing.web
(:gen-class)
(:require
[langohr.core :as rmq]
[langohr.channel :as lch]
[langohr.queue :as lq]
[langohr.consumers :as lc]
[langohr.basic :as lb]
[compojure.core :refer [defroutes GET]]
[compojure.handler :refer [site]]
@ekhall
ekhall / pre
Created December 11, 2015 21:22
(defproject queuing "1.0.0-SNAPSHOT"
:description "Demo Clojure web app with queuing"
:license {:name "Eclipse Public License v1.0"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.7.0"]
[com.novemberain/langohr "3.3.0"]
[compojure "1.1.8"]
[ring/ring-jetty-adapter "1.2.2"]
[environ "0.5.0"]]
:min-lein-version "2.0.0"
@ekhall
ekhall / f
Created December 11, 2015 21:24
web: java $JVM_OPTS -cp target/queuing-standalone.jar clojure.main -m queuing.web
(ns aurora.models.lab
(:require [clojure.java.jdbc :as sql]
[twilio.core :as twilio]
[clojurewerkz.machine-head.client :as mh]))
(defn send-mqtt [message & args]
(let [id (mh/generate-id)
conn (mh/connect mqtt-url id)]
(mh/subscribe conn ["gossamer"] (fn [^String topic _ ^bytes payload]
(println (String. payload "UTF-8"))))

Keybase proof

I hereby claim:

  • I am ekhall on github.
  • I am eugekev (https://keybase.io/eugekev) on keybase.
  • I have a public key whose fingerprint is CF3C CF7A D21D DFD0 DC64 A517 0F9D 881D 59D3 8232

To claim this, I am signing this object:

~/Dropbox/Code/React/iSPIWebsite/ git push heroku [17:36:39]
Counting objects: 6, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (6/6), done.
Writing objects: 100% (6/6), 600 bytes | 0 bytes/s, done.
Total 6 (delta 4), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Node.js app detected
(defproject archetyp-website "0.1.0-SNAPSHOT"
:description "Archetyp Mobility Website in Reagent/React"
:url "http://archetyp.io"
:license {:name "Copyright 2017 Archetyp Mobility LLC"
:url "http://archetyp.io"}
:dependencies [[org.clojure/clojure "1.8.0"]
[ring-server "0.4.0"]
[reagent "0.6.0"]
[reagent-utils "0.2.0"]
(ns giggin.api
(:require [ajax.core :refer [GET]]
[giggin.state :as state]
[clojure.walk :as walk]))
(defn handler
"Resets the state/gigs atom (app state) to the response of the following data
transformation. A GET request is made to the URL below in fetch-gigs. The
keywords? option below turns all JSON key strings into symbols (`key`: `string`
to :key `string`). The `response` is then passed to the series of function calls."