Skip to content

Instantly share code, notes, and snippets.

View .emacs.txt
;; blank lines
;; M-x flush-lines RET ^$ RET
;; whilespace lines
;; M-x flush-lines RET ^\s-*$ RET
;; packages
(setq package-archives
View state.clj
(let [method "POST"
service "dynamodb"
host "docapi.serverless.yandexcloud.net"
region "ru-central1"
endpoint "https://docapi.serverless.yandexcloud.net/"
content-type "application/x-amz-json-1.0"
amz_target "DynamoDB_20120810.Query"
payload
(cheshire.core/generate-string
View foo.class
//
// Decompiled by Procyon v0.5.36
//
package teleward;
import clojure.lang.IFn;
import clojure.lang.Util;
import clojure.lang.Var;
import java.util.function.Function;
View foo.class
//
// Decompiled by Procyon v0.5.36
//
package teleward;
import clojure.lang.IFn;
import clojure.lang.Util;
import clojure.lang.Var;
import java.util.function.Function;
View sink_connector.clj
(ns foo.bar.sink-connector
"
Clojure-driven implementation of the SinkConnector class.
https://kafka.apache.org/26/javadoc/org/apache/kafka/connect/sink/SinkConnector.html
"
(:require
[foo.bar.sink-task]
[foo.bar.state :as state]
[clojure.tools.logging :as log])
View integration.clj
(defmacro with-globals [& body]
(let [syms
(vec (keys &env))
;; syms
;; '[a b c]
sym-pairs
(for [sym syms]
View integration.clj
(defmacro with-globals [& body]
(let [syms
(keys &env)
sym-pairs
(for [sym syms]
[sym (symbol (format "__old_%s" sym))])]
`(do
View integration.clj
(defmacro eval+ [& body]
(let [syms
(keys &env)
sym-pairs
(for [sym syms]
[sym (symbol (format "__old_%s" sym))])]
`(do
View integration.clj
(defmacro with-globals [& body]
(let [syms
(keys &env)
;; syms
;; '[a b c]
sym-pairs
(for [sym syms]
View integration.clj
(defmacro eval+ [& body]
(let [syms
(keys &env)]
`(do
~@(for [sym syms]
`(let [sym-old#