Skip to content

Instantly share code, notes, and snippets.

View humorless's full-sized avatar

Laurence Chen humorless

View GitHub Profile
@humorless
humorless / basic_command.md
Last active March 9, 2026 21:05
Claude Note
  1. 常見指令

claude "task" ;; task
claude -p "query" ;; query
claude -c ;; continue

  1. CLI 內建指令

/init
/exit

@humorless
humorless / writing-style-giude.md
Last active February 12, 2026 22:03
AI concluded my writing guide

Writing Style Guide

Core Philosophy

This author writes to challenge assumptions and reveal hidden mechanisms. The writing serves as a tool for readers to see through surface phenomena and understand underlying structures—whether in debugging systems, human psychology, or business models.


Narrative Structure

@humorless
humorless / CLAUDE.md
Last active March 5, 2026 14:04
CLAUDE.md extension for a new Clojure empty project (which is created by "Clojure Stack Lite")

Dev Workflow

  • After editing source files, use brepl to require the changed namespace with :reload and test interactively, rather than relying solely on curl or bb test.

Interactive Development Techniques

  • Call handlers directly — Ring handlers are pure functions (request map → response map). Test them in brepl without going through HTTP or middleware: (handlers/home-handler {}), (handlers/inspect-handler {}). Inspect response structure with (keys resp) before dumping the full body.
  • Verify routes with Reitit — Use reitit.core/match-by-path to check route matching interactively without a browser: (reitit.core/match-by-path (reitit.ring/router app-routes/routes) "/"). Useful for verifying newly added routes before integration testing.
  • Compose and inspect HoneySQL queries — Build queries incrementally as data and preview the generated SQL with (honey.sql/format query {:quoted true}) before sending to the database. This lets you verify correctness without executing a

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)