Skip to content

Instantly share code, notes, and snippets.

View ThaddeusJiang's full-sized avatar

Thaddeus Jiang ThaddeusJiang

View GitHub Profile

《Fog of War | Remix》 读后感

blog: https://remix.run/blog/fog-of-war

虽然我能理解借助 prefetch 可以提前加载某些 Routes 以提高页面跳转性能,但是过度使用 prefetch 会不会导致服务器过载呢?

prefetch 的问题

  1. 不必要的请求增多
  2. 网络带宽浪费
@ThaddeusJiang
ThaddeusJiang / index.html
Created June 13, 2024 07:44
Textarea with auto-sizing
<textarea>
Textarea with auto-sizing
</textarea>
@ThaddeusJiang
ThaddeusJiang / zod-in-single-file.js
Created June 11, 2024 06:13
JavaScript single-file application
// install npm package
async function install() {
const z = await import("zod")
return { z }
}
async function main() {
const { z } = await install()
const result = z.string().datetime().safeParse("2021-01-01T00:00:00Z")
console.log(result)
@ThaddeusJiang
ThaddeusJiang / README.md
Created April 27, 2024 07:10
TiddlyWiki WikiText Macros

TiddlyWiki WikiText Macros

  • \define
  • $parameter-name$
@ThaddeusJiang
ThaddeusJiang / README.md
Created April 27, 2024 07:06
TiddlyWiki JavaScript Macros Snippet
@ThaddeusJiang
ThaddeusJiang / cloud.md
Created February 14, 2024 08:47
TJ's cloud checksheet

2024

cloud

@ThaddeusJiang
ThaddeusJiang / backend-checksheet.md
Created February 14, 2024 08:39
ThaddeusJiang backend checksheet
@ThaddeusJiang
ThaddeusJiang / date_helper.exs
Created November 28, 2023 03:27
Elixir pattern-matching functions
defmodule DateHelper do
def from_date(:undefined) do
:undefined
end
def from_date(:null) do
:undefined
end
def from_date(date) do
@ThaddeusJiang
ThaddeusJiang / DevOps-JD.md
Created October 25, 2023 13:26
一份 DevOps 工程师 JD

devops工程师

职位详情

  1. 负责公司云服务(Azure)各项运维;
  2. 负责大规模Saas产品的日常运维;
  3. 负责Gitlab、Github服务的运维(CI/CD);
  4. 负责各项服务状态监控、海量日志分析;
  5. 负责信息安全(体系建立、安全工具)监控、优化等;
  6. 负责公司内部运维自动化工具的开发和优化。
@ThaddeusJiang
ThaddeusJiang / antd-responsive-design.jsx
Created October 25, 2023 12:53
antd GridView - Responsive Design
<List
grid={{
gutter: 16,
xs: 1,
sm: 2,
md: 4,
lg: 4,
xl: 6,
xxl: 3,
}}