Skip to content

Instantly share code, notes, and snippets.

View ElChache's full-sized avatar

David Cerezo Iñigo ElChache

View GitHub Profile
### Keybase proof
I hereby claim:
* I am elchache on github.
* I am bilbobolson84 (https://keybase.io/bilbobolson84) on keybase.
* I have a public key ASDZ8QindPcj-OyDeWO63QkMARAa-lqTEIJiyw5Yno2--wo
To claim this, I am signing this object:
@ElChache
ElChache / blob.cljs
Created September 24, 2018 23:42
azure-blob-into-stream!
(defn blob-into-stream!
[config res blob-name]
;; Assets the configuration is valid
(s/assert* :registry.azure/config config)
(js/Promise.
(fn [resolve reject]
(-> (@blob-service (:registry.azure/registry-connection-string config))
(.getBlobProperties
@ElChache
ElChache / macros.cljc
Created September 20, 2018 17:23
azure handler macro for shadow-cljs
(ns laputa.registry-fn.macros
#?(:cljs (:require-macros [laputa.registry-fn.macros])))
(defmacro defn-azure-http-handler
[fn-name doc-string {:keys [route]} args body]
`(defn ~fn-name
{:azure/disabled false
:azure/bindings
[{:authLevel "anonymous"