Skip to content

Instantly share code, notes, and snippets.

View humorless's full-sized avatar

Laurence Chen humorless

View GitHub Profile
@humorless
humorless / dbt-duckdb-tutorial.md
Last active May 10, 2025 07:33
Modern data stack by REPLWARE

Modern data stack

Main features

REPLWARE 建議的資料分析技術棧 (modern data stack) 主要有下列特色:

  • ELT over ETL
  • SQL based analytics over non-SQL based analytics
  • Analytic Engineer as a new position
  • When the data is not exceeding 1T, your desktop/notebook is fast enough.
@humorless
humorless / clojars.md
Created November 10, 2022 08:34 — forked from hiteshjasani/clojars.md
Clojars instructions

Publish Release

  1. Update version in project.clj
  2. lein deploy clojars

Setup

Project

1. Ensure prefix is on project in project.clj

@humorless
humorless / deps.clj
Created October 31, 2022 10:08 — forked from theronic/deps.clj
Convert Clojure project.clj :dependencies to deps.edn style
; 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
@humorless
humorless / web-app-dev-tutorial.md
Last active August 4, 2022 04:02
The web application challenges & solutions

The Heretic Web Application Technical Stack

應用軟體開發是很容易遇到坑而做不好、做不快,容易犯下所謂的應用軟體開發七宗罪

需要的 technologies

  1. Software Spec - Event modeling method
  2. Evaluation - The four key metrics
  3. Frontend - htmx
@humorless
humorless / Clojure-tutorial.md
Last active November 5, 2022 09:42
Clojure 速成

為什麼要用 Clojure 語言來開發軟體?

在 Clojure 社群的一個說法:「同樣的工程師使用 Java 來開發軟體、使用 Nodejs 來開發軟體、使用 Clojure 來開發同樣軟體所花費的時間,大約是:5:3:1。」

Part 1: Basic

lesson 1: syntax

  1. truth, math, string
  2. Intros to list, vector, map, set
  3. conj: conj list ,conj vector ,conj map ,conj set
@humorless
humorless / emacs.md
Last active October 14, 2021 06:35
project quality control

invoke function

SPC SPC = M-x
- load-theme
- add-project
- global-linum-mode

special commands

@humorless
humorless / melvn.yaml
Last active September 28, 2021 14:09
The tmuxp config file for melvn
session_name: melvn
start_directory: ~/clo/runeleven
environment:
RUNELEVEN_DIR: /Users/laurence/clo/runeleven
windows:
- window_name: one-repl
panes:
@humorless
humorless / core.clj
Created September 15, 2021 03:19 — forked from plexus/core.clj
(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]))
@humorless
humorless / my-solution.csv
Last active July 10, 2021 17:16
The sitemap can be used with https://www.webscraper.io to scrape your 4clojure.com answers
web-scraper-order web-scraper-start-url code
1625935994-72 https://www.4clojure.com/problem/71 1  last
1625936020-84 https://www.4clojure.com/problem/59 123  (fn gg [& f] (fn [& coll] (vec (map #(apply % coll) f))))
1625936081-105 https://www.4clojure.com/problem/32 12345  (fn t [[x & args]] (if (empty? args) (list x x) (cons x (cons x (t args)))))
1625935881-29 https://www.4clojure.com/problem/121 1
1625935861-20 https://www.4clojure.com/problem/130 1
1625935897-36 https://www.4clojure.com/problem/114 1
1625935899-37 https://www.4clojure.com/problem/113 1
1625935906-40 https://www.4clojure.com/problem/110 1
1625935991-71 https://www.4clojure.com/problem/72 1  reduce +
@humorless
humorless / how-to-write-comments.md
Last active June 2, 2021 08:39
Some Clojure ideas

There are three important comments:

  1. Horizonal comments
  2. doc string comment
  3. FIXME

Horizontal comments

Horizonal comment splits a namespace into sub sections

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Connection