Skip to content

Instantly share code, notes, and snippets.

View chrisrzhou's full-sized avatar
⌨️
clicking; clacking;

Chris Zhou chrisrzhou

⌨️
clicking; clacking;
View GitHub Profile
@chrisrzhou
chrisrzhou / bootstrap.md
Last active April 20, 2026 05:54
Frontend Best Practices

Bootstrap Best Practices

General

  • Only style what you need. Create classes or IDs to allow targeting of specific elements.

Containers

  • Use container to create padding and margins that center based on screen width.
  • Use container-fluid to allow for expansion to the whole screen width while keeping a natural padding.
@chrisrzhou
chrisrzhou / git-advanced.md
Last active April 20, 2026 05:54
Git Resources

Git Advanced Resources

Interactive Rebase

  • Enter interactive rebase using git rebase -i
  • Some rebase options include:
    • squash: combine commits
    • edit: split commits (using git reset HEAD^)
    • reword: rename commit
    • pick: run commits in order
@chrisrzhou
chrisrzhou / react-libraries.md
Last active April 20, 2026 05:54
Useful/quality react libraries

Core Libraries in React Applications

  • react
  • react-redux
  • react-router
  • recompose
  • redux
  • react devtools (chrome)
  • redux devtools (chrome)
@chrisrzhou
chrisrzhou / README.md
Last active April 2, 2024 00:02
D3 Pianogram

D3 Pianogram

bl.ocks.org link

Pianogram visualizes music notes in a beautiful histogram and updates them over music measure bars (time). This is a clone of the wonderful idea by [joeycloud][] providing real-time updates to the music over time (music measure bars).

The project is created using AngularJS and D3.js.


Code Reviews

Chris Zhou, 2022-10-14


Elements of Coding

  • Code
  • Coder
@chrisrzhou
chrisrzhou / the-garden-of-code.md
Last active June 24, 2022 20:18
Tending to your code, finding and killing bugs, growing a garden

The Garden of Code

Chris Zhou, 2022-06-24


About

I discovered many of the following thoughts through gardening and they continue to influence the way I think and code.

@chrisrzhou
chrisrzhou / README.md
Last active December 1, 2021 09:57
D3 Radar Chart

D3 Radar Chart

bl.ocks.org link

A radar chart visualizes multivariate data in a 2D chart of three or more quantitative variables represented on axes.

The project is created using AngularJS and D3.js.


Description

@chrisrzhou
chrisrzhou / code1.js
Created March 21, 2019 05:52
React Hooks + Threejs
function useResponsiveCanvas<T>(
initialSize?: MinMaxPair,
): State {
const canvasRef = useRef<HTMLCanvasElement>();
const mountRef = useRef<HTMLDivElement>();
const [size, setSize] = useState<MinMaxPair>([0, 0]);
// set initial svg and size
useEffect(() => {
const canvas = document.createElement('canvas');
@chrisrzhou
chrisrzhou / README.md
Last active May 31, 2020 16:51
Dances with Factors

Dances with Factors

bl.ocks.org link

Dances with Factors visualizes prime factorization of integers.

The fundamental theorem of arithmetic states that every integer greater than 1 is either prime itself or a product of prime numbers.

The project is created using D3.js.