Skip to content

Instantly share code, notes, and snippets.

View fluency03's full-sized avatar

Chang Liu fluency03

  • London
View GitHub Profile

The Ultimate V60 Technique

◉ Brew ratio: 60 g/L (e.g. 30 g per 500 mL,  18 g per 300 mL, 12 g per 200 mL, ...)

◉ Grind size: medium fine, Niche Zero: 40 ~ 50

◉ Temperature: the hotter, the better (especially with lighter roasts)

The Ultimate Clever Dripper Technique

◉ Brew ratio: 60-65g/L (18 g per 300 mL)

◉ Grind size: medium fine, Niche Zero: 45 ~ 50

Brew

  1. Grind 18 g coffee
  2. Fold and rinse paper with hot tap water

The Ultimate AeroPress Technique

◉ 11g coffee

  • Ground at the finer end of medium, assuming this is light roasted coffee.
  • The darker you go the more you may prefer to increase the dose and coarsen the grind.
  • Niche Zero: 30 ~ 35

◉ 200g water (brought to a boil and used immediately)

  • The darker the roast is, the lower the temperature is (or even down to 90 Celsius for really dark roast)
@lkaihua
lkaihua / 00.README.md
Last active February 6, 2019 15:36
Javascript examples on `this`

A collection of code snippets explaining:

  • this
  • bind
  • arrow functions
@panva
panva / README.md
Last active April 29, 2021 09:36
Simple Native OAuth2.0 Application Login CLI implementation

Simple Native OAuth2.0 Application Login CLI implementation

run

npx https://gist.github.com/panva/429e0c646eb730079fe0a0070c160e1d
@sebmarkbage
sebmarkbage / The Rules.md
Last active June 30, 2024 01:30
The Rules of React

The Rules of React

All libraries have subtle rules that you have to follow for them to work well. Often these are implied and undocumented rules that you have to learn as you go. This is an attempt to document the rules of React renders. Ideally a type system could enforce it.

What Functions Are "Pure"?

A number of methods in React are assumed to be "pure".

On classes that's the constructor, getDerivedStateFromProps, shouldComponentUpdate and render.

#!/bin/bash
set -e
CONTENTS=$(tesseract -c language_model_penalty_non_dict_word=0.8 --tessdata-dir /usr/local/share/tessdata/ "$1" stdout -l eng | xml esc)
hex=$((cat <<EOF
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
@paulp
paulp / build.sbt
Last active October 28, 2017 13:02
/** Your task is to reason your way to which compiler
* options which will be passed for each of
* 1) sbt root/compile
* 2) sbt p1/compile
*/
scalacOptions := Seq("-DSBT")
scalacOptions in ThisBuild += "-D0"
scalacOptions in Global += "-D1"
@fokusferit
fokusferit / enzyme_render_diffs.md
Last active June 18, 2024 11:27
Difference between Shallow, Mount and render of Enzyme

Shallow

Real unit test (isolation, no children render)

Simple shallow

Calls:

  • constructor
  • render
@zcaceres
zcaceres / Eyeballing-This.md
Last active August 17, 2023 23:38
Understanding Binding and 'this' in Javascript by zach.dev

How to Eyeball Your ‘This’ Context in Javascript

The early programmer struggles with the Javascript keyword this. But understanding your this context is easier than it seems.

This is all about where a function is invoked. Often, early programmers worry about where the function was declared. Perhaps the function was declared in a specific file or a particular object. Surely this changes it's this!

Nope.