Skip to content

Instantly share code, notes, and snippets.

Daniel Glauser danielglauser

Block or report user

Report or block danielglauser

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@danielglauser
danielglauser / oraclize-response.json
Created Aug 28, 2018
Oraclize JSON Response from Twilio
View oraclize-response.json
[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 Aug 26, 2018
Oraclize Twilio Query Example
View PhoneNumberVerification.sol
oraclize_query(
"nested",
"[URL] ['json(https://api.authy.com/protected/json/phones/verification/start)', '\\n{\"via\": \"sms\", \"phone_number\": \"8005551212\", \"country_code\": 1 }']"
60);
View clojurescript-testing-browserless-components
```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 "
View keybase.md

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:

View service.clj
(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]
View gist:bfba8b272a47ab3d547f
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 = [...])
View gist:708aae47ff3b64f5e2dc
Hi Daniel,
Unfortunately Rich has said that you cannot use the Clojure logo for your t-shirts.
@danielglauser
danielglauser / gist:5630631
Last active Dec 17, 2015
Dependencies and build instructions for libpst
View gist:5630631
# 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 Dec 17, 2015
Sharing is caring
View gist:5551974
#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
You can’t perform that action at this time.