Skip to content

Instantly share code, notes, and snippets.

@voluntas
voluntas / shiguredo_otetsudai.rst
Last active January 25, 2024 06:27
時雨堂のお手伝い募集

時雨堂のお手伝い募集

更新

2024-01-21

作者

@voluntas

バージョン

2024.5

url

https://voluntas.github.io/

ありがたいことにたくさんの応募をいただきましたので、一旦応募を締め切りました。

@ThaddeusJiang
ThaddeusJiang / .gitignore
Created July 25, 2023 04:31
docker compose local postgres db
local/
@ThaddeusJiang
ThaddeusJiang / my-tech-interview-flow.md
Last active March 28, 2023 01:10
My tech interview flow

My tech interview flow

背景

  1. 为什么应聘我们公司?

有明确判断标准

  1. bugfix of your own code
  2. add feature of your own code
(ns defclass.test-framework)
(def all-test (atom {}))
(def ^:dynamic *test* true)
(defmacro is [expr]
`(let [result# ~expr]
(when-not result#
(set! *test* false)
(printf "FAILED: %s%n" '~expr))))
@martinwoodward
martinwoodward / mermaid.md
Created February 11, 2022 20:34
GitHub HTML Rendering Pipeline
```mermaid
sequenceDiagram
    participant dotcom
    participant iframe
    participant viewscreen
    dotcom->>iframe: loads html w/ iframe url
    iframe->>viewscreen: request template
    viewscreen->>iframe: html & javascript
 iframe->>dotcom: iframe ready
@rishitells
rishitells / Jest_GitLab_CI.md
Last active May 3, 2024 20:18
Setting up Jest tests and coverage in GitLab CI

Configuring Jest Tests in GitLab CI

1. Add GitLab CI configuration file in the root

In the root of your project, add .gitlab-ci.yml with the configuration below.

image: node:latest

stages:
@ThaddeusJiang
ThaddeusJiang / index.tsx
Created December 28, 2020 11:44
JavaScript defaultProps 容易出bug
const defaultProps = {
editable: {
name: true,
age: true,
}
}
<Card /> // ok
<Card editable={{ name: false }} /> // NG, because you lose `editable.age`
@kenmori
kenmori / TwitterWithMarkDown.md
Last active April 20, 2023 18:27
How to write a Twitter link in Markdown

How to write a Twitter link in Markdown

Twitter URL


[![Twitter URL](https://img.shields.io/twitter/url/https/twitter.com/bukotsunikki.svg?style=social&label=Follow%20%40bukotsunikki)](https://twitter.com/bukotsunikki)

author

@ThaddeusJiang
ThaddeusJiang / chrome-shortcut.md
Last active March 8, 2019 07:17
[Mac] chrome shortcut (快捷键)
  • 恢复上一个关闭的窗口 cmd+shift+t

  • 跳转到地址栏 cmd+l

  • 切换 tab ctrl + tab

@bvaughn
bvaughn / index.md
Last active April 3, 2024 07:41
Interaction tracing with React

This API was removed in React 17


Interaction tracing with React

React recently introduced an experimental profiler API. After discussing this API with several teams at Facebook, one common piece of feedback was that the performance information would be more useful if it could be associated with the events that caused the application to render (e.g. button click, XHR response). Tracing these events (or "interactions") would enable more powerful tooling to be built around the timing information, capable of answering questions like "What caused this really slow commit?" or "How long does it typically take for this interaction to update the DOM?".

With version 16.4.3, React added experimental support for this tracing by way of a new NPM package, scheduler. However the public API for this package is not yet finalized and will likely change with upcoming minor releases, so it should be used with caution.