- approve-request
- reject-request
{
"c": "reject-request",
"req-op": {
"id": 17592186045481,
"stamp": 0
; using Clojure 1.9 | |
(require '[clojure.pprint :as pprint]) | |
(defn xform-dep [[lib version & korks]] | |
(let [args (into {} (apply hash-map korks))] | |
[lib (merge {:mvn/version version} args)])) | |
(defn xform-deps | |
"deps.edn utility function by @theronic 2018-02-28 | |
Transforms a collection of project.clj :dependencies to deps.edn style |
git checkout --orphan gh-pages
git rm -rf . # 砍掉所有檔案重來
... # 加新檔案
git add .
git commit -m 'create new branch'
Push this branch to github repo
(ns my-backend.core | |
(:gen-class) | |
(:require [compojure.core :as c] | |
[compojure.route :as route] | |
[ring.adapter.jetty :as jetty] | |
[ring.middleware.defaults :as ring-defaults] | |
[hiccup2.core :as h] | |
#_[muuntaja.core :as m] | |
[muuntaja.middleware :as muuntaja])) |
(ns my-backend.core | |
(:gen-class) | |
(:require [compojure.core :as c] | |
[compojure.route :as route] | |
[ring.adapter.jetty :as jetty] | |
[ring.middleware.defaults :as ring-defaults] | |
[hiccup2.core :as h] | |
#_[muuntaja.core :as m] | |
[muuntaja.middleware :as muuntaja])) |
REPLWARE 建議的資料分析技術棧 (modern data stack) 主要有下列特色:
;; Logging is a bit of a lost art. I see people use it the same way they use | |
;; println debugging, putting in lots of (log/debug "HERE") kind of stuff, and | |
;; then removing it afterwards. | |
;; | |
;; But with a good logging library these logging statements can continue to | |
;; provide value, even if (especially if) most of the time you turn them off. | |
;; For this you need to make good use of log levels like | |
;; error/warn/info/debug/trace. What follows is an illustrated example of how I | |
;; tend to use them. |