Skip to content

Instantly share code, notes, and snippets.

View humorless's full-sized avatar

Laurence Chen humorless

View GitHub Profile

set permission

chmod -R 777 /tmp/kestra-wd/tmp

@humorless
humorless / metlano.yml
Created December 8, 2025 16:32
Very quick meltano test
version: 1
default_environment: dev
project_id: 019afeb1-bcc4-7481-b40a-1010c0ab4fc4
environments:
- name: dev
- name: staging
- name: prod
plugins:
extractors:
- name: tap-smoke-test
@humorless
humorless / oranment_example.clj
Created November 27, 2025 14:22
Example of using ornament
;; Example of using
;;
;; - #{...}
;; - "&:not()"
;; - "&:has()"
(o/defstyled form :form
...
[#{:input :textarea :select} ["&:not([type=checkbox])"
:w-full :mb-3]]
@humorless
humorless / topic.md
Last active November 15, 2025 03:21
Clojure Meetup Main topic

Clojure Meetup #2

  • libraries over framework
  • The EDN format
  • static vs dynamic types

Clojure Meetup #1

  • interactive development
  • tutorial

CSS 相關

  1. Tailwind 練習
  2. CSS in js/cljs
  3. CSS selector
  4. CSS pseudo class

Post 相關

  • layout-component (ornament fn)
    • handle CSS part
    • leverage query syntax to assign CSS to child structure
  • widget-component (ornament fn)
    • small, reusable, and self-contained UI elements)
  • presenter-fn (ordinary fn)
    • handle pure html structure (withouth CSS)
    • example: fail-page
  • container-fn (ordinary fn)
    • handle the data && logic behavior
@humorless
humorless / metric.md
Created September 27, 2025 08:41
專業書籍的評分 metric

專業書籍的評分 metric

  1. Implied Reader 一致性
  2. 創新性
  3. 概念清晰度與結構化
  4. 實務可操作性
  5. 持久性(Timelessness)
## 假設您將書分成三個部分(Part 1, Part 2, Part 3),這是您給第一個部分(Part 1)的提示:
```
以下是一本專業書的第${n}部分。請你閱讀這段內容,並幫助我分析這段文字所預設的「隱含讀者」(implied reader)是什麼樣的人?
具體來說,請你從以下幾個方面來描述:
1. **讀者的背景知識:** 這位讀者可能具備哪些專業知識?是初學者、中級學習者還是該領域的專家?
2. **讀者的學習目標:** 這位讀者想從書中獲得什麼?是想解決特定問題、學習新技能還是獲取宏觀知識?
3. **讀者的思維模式與偏好:** 讀者可能習慣什麼樣的論證方式?是喜歡條列式說明、圖表輔助還是需要大量實例?
4. **基於以上分析,請你綜合描述這位「隱含讀者」的完整輪廓。**
@humorless
humorless / prompt.md
Last active August 12, 2025 02:23
prompts
  • Q1
如何在 neovim 裡註冊一個新的 filetype 
  • Q2
如果建立了一個新的 neovim plugin,比方說,叫做 conjure-piglet-client
該 plugin 用 fnl 寫多數的邏輯。

Directory

  1. ~/.config/nvim => 設定檔
  2. ~/.local/share/nvim => 資料檔

;; share:繼承了 UNIX 的歷史,用於存放使用者專屬的、與系統架構無關的應用程式資料。(無關,所以可以被不同的 CPU share)

Command

  1. :luado 執行一個 lua command