Skip to content

Instantly share code, notes, and snippets.

View ZWkang's full-sized avatar
🇨🇳
the harder the better the sweeter the victory

kang ZWkang

🇨🇳
the harder the better the sweeter the victory
  • 家里蹲
  • China Shenzhen
  • 19:01 (UTC +08:00)
View GitHub Profile
@ZWkang
ZWkang / SKILL.md
Created January 26, 2026 19:36 — forked from kieranklaassen/SKILL.md
Claude Code Swarm Orchestration Skill - Complete guide to multi-agent coordination with TeammateTool, Task system, and all patterns
name description
orchestrating-swarms
Master multi-agent orchestration using Claude Code's TeammateTool and Task system. Use when coordinating multiple agents, running parallel code reviews, creating pipeline workflows with dependencies, building self-organizing task queues, or any task benefiting from divide-and-conquer patterns.

Claude Code Swarm Orchestration

Master multi-agent orchestration using Claude Code's TeammateTool and Task system.


@ZWkang
ZWkang / pre-in-post-order-type.ts
Last active August 26, 2022 09:17
类型体操
type Tree = {
val: 'F',
left: {
val: 'B',
left: {
val: 'A',
left: null;
right: null;
},
right: {
@ZWkang
ZWkang / cheng-lou-spectrum-of-abstraction.md
Created June 28, 2022 11:55 — forked from markerikson/cheng-lou-spectrum-of-abstraction.md
Cheng Lou - "On the Spectrum of Abstraction" summarized transcript (React Europe 2016)

Cheng Lou - On the Spectrum of Abstraction

Cheng Lou, a former member of the React team, gave an incredible talk at React Europe 2016 entitled "On the Spectrum of Abstraction". That talk is available for viewing here: https://www.youtube.com/watch?v=mVVNJKv9esE

It's only a half-hour, but it is mind-blowing. It's worth re-watching two or three times, to let the ideas sink in.

I just rewatched the talk for some research, and wrote down a summary that's semi-transcript-ish. I didn't see any other transcripts for this talk, other than the auto-generated closed captions, so I wanted to share for reference.

Summary

@ZWkang
ZWkang / README.md
Created June 14, 2022 11:15 — forked from mlrawlings/README.md
Using `src/node_modules/` for module development

Using src/node_modules/ for module development

The issue 👎

Often you'll find that you need utility methods or other functionality that might make sense as an external module that you could :tada: open source 🎉, but the process can be painful:

  1. create a directory outside the project
  2. initialize a git repo
@ZWkang
ZWkang / 简单的介绍-乱讲一下.md
Last active August 28, 2021 13:31
module ferdaration

目的肯定是构建时候的模块共享。

原有的一些方案


external

webpack bundle 的时候直接将 require 某些 module 变为,例如 window.xxx-modules 如此去调用。

@ZWkang
ZWkang / case_1.js
Created June 8, 2021 13:43
提前终止promise链式调用 stop promise chain run
let cancel = null;
const canceler = new Cancel((c) => cancel = c);
function Cancel( exc ) {
let token = this;
@ZWkang
ZWkang / CustomRouter.ts
Last active April 27, 2021 02:52
简单泛型推导自制类型
// multiple end
type
<T extends { [key: string]: string}, D extends string> = {
[P in keyof T]: `${D}/${T[P]}`
}
RouterType<{login: 'login/index'}, '/d'>;
function add(aNumber, bNumber) {
return aNumber + bNumber;
}
const 希望 = require("ctressa")
test("name", () => {
希望("test").和("tests").严格相等
})
@ZWkang
ZWkang / taro-css-in-js-round-1.js
Created April 2, 2021 10:41
用一些奇怪的方式在Taro上 写css-in-js
import React, { createContext } from 'react';
import { View } from '@tarojs/components';
const text2obj = str => {
const result = {};
const list = str.split(';');
list.forEach(o => {
const [key, value] = o.trim().split(':');
result[key] = value;
});