Skip to content

Instantly share code, notes, and snippets.

View danielglauser's full-sized avatar

Daniel Glauser danielglauser

  • Denver, Colorado
View GitHub Profile
### Keybase proof
I hereby claim:
* I am danielglauser on github.
* I am danielglauser (https://keybase.io/danielglauser) on keybase.
* I have a public key ASD1Gg4ZkSrGarwVDph9GUNSs99u_DwnTDBc-rPgvRzd7wo
To claim this, I am signing this object:
@danielglauser
danielglauser / oraclize-response.json
Created August 28, 2018 20:42
Oraclize JSON Response from Twilio
[2018-08-28T20:16:15.050Z] INFO 33b8e04d0a57beecfc1a1597847f2b958936f8c80f7983f873f076ab550cfa13 HTTP query result:
{
"result": {
"_timestamp": 1535487373,
"id": "33b8e04d0a57beecfc1a1597847f2b958936f8c80f7983f873f076ab550cfa13",
"daterange": [
1535487309,
1535489109
],
"_lock": false,
@danielglauser
danielglauser / PhoneNumberVerification.sol
Created August 26, 2018 19:12
Oraclize Twilio Query Example
oraclize_query(
"nested",
"[URL] ['json(https://api.authy.com/protected/json/phones/verification/start)', '\\n{\"via\": \"sms\", \"phone_number\": \"8005551212\", \"country_code\": 1 }']"
60);
```clojure
(ns browserless-test.components
(:require
[reagent.core :as reagent]))
(defn easy-component []
[:div "I'm easy"])
(defn stateful-component [is-easy-atom]
[:div (str "I'm "

Keybase proof

I hereby claim:

  • I am danielglauser on github.
  • I am danielglauser (https://keybase.io/danielglauser) on keybase.
  • I have a public key ASBvwF2FxtgOsSzi6tNrNPEu1bm7DJdGsL3qjs9taZXHXAo

To claim this, I am signing this object:

(ns turbovote-admin-http-api.service
(:require [io.pedestal.http :as bootstrap]
[io.pedestal.http.route :as route]
[io.pedestal.http.route.definition :refer [defroutes]]
[io.pedestal.interceptor :refer [interceptor]]
[io.pedestal.impl.interceptor :refer [terminate]]
[ring.util.response :as ring-resp]
[turbovote.resource-config :refer [config]]
[pedestal-toolbox.params :refer :all]
[pedestal-toolbox.content-negotiation :refer :all]
@danielglauser
danielglauser / gist:5630631
Last active December 17, 2015 15:19
Dependencies and build instructions for libpst
# Build instructions for libpst on Ubuntu 12 Precise Pangolin
sudo apt-get install mercurial libtool autotools-dev automake python-dev libboost-python-dev libgsf-1-114 libgsf-1-dev doxygen
hg clone http://hg.five-ten-sg.com/libpst/
cd libpst
make -f *cvs
# Remove man from the SUBDIRS line in the Makefile
./configure && make && sudo make install
# This installs readpst in /usr/local/bin, the old version should still be in /usr/bin
@danielglauser
danielglauser / gist:5551974
Last active December 17, 2015 04:39
Sharing is caring
#Add the following to a file called .ssh/config
Host daniel
User vagrant
ProxyCommand ssh -q theden nc -q0 localhost 8675
# Misc
Host theden
Hostname denofclojure.org
ForwardAgent yes
Refactor this:
(is (= false (amqp/exchange-exists? *amqp* "test")))
(is (= true (amqp/exchange-exists? *amqp* "test")))
What's wrong with this line?
(is (= (false? (contains? file :file/message)))))
https://github.com/pjstadig/humane-test-output
How do you ensure all the elements of a seq are equal?
(apply = [...])
Hi Daniel,
Unfortunately Rich has said that you cannot use the Clojure logo for your t-shirts.