Skip to content

Instantly share code, notes, and snippets.

View spradnyesh's full-sized avatar

Pradnyesh Sawant spradnyesh

View GitHub Profile
@spradnyesh
spradnyesh / gist:47c2d19320639156ebf4b34b924fcda1
Created April 26, 2018 11:06
accessing aws s3 in clojure using amazonica
(ns amazonica-s3.core
(:require [amazonica.aws.s3 :as s3]
[amazonica.aws.s3transfer :as s3t])
(:gen-class))
(defonce cred {:access-key ""
:secret-key ""
:endpoint ""})
(defonce bucket "")
(defonce static-root "")
@spradnyesh
spradnyesh / reagent-default-1.cljs
Last active February 10, 2024 20:36
:default-value of :input in reagent when rendering form multiple times
(ns foo
(:require [reagent.core :as r]))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;; global app-state
(defonce app-state (r/atom {}))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;; UI components