Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Fabian Cook fabiancook

🏠
Working from home
Block or report user

Report or block fabiancook

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View use-after-render.js
import { useRef } from "react";
export default function useAfterRender(fn) {
const value = {};
const ref = useRef(value);
if (ref.current === value) {
return;
}
return fn();
}
View keybase.md

Keybase proof

I hereby claim:

  • I am fabiancook on github.
  • I am fabiancook (https://keybase.io/fabiancook) on keybase.
  • I have a public key ASDPw2qRyw4A7r51up5VBbHM_ZB_I3o-OIMS6gqewS86HQo

To claim this, I am signing this object:

View corrugatedVectors three.js
function corrugatedVectors(options) {
const length = lengthToPixel(options.length),
troughLength = lengthToPixel(options.troughLength),
ridgeLength = lengthToPixel(options.ridgeLength),
ridgeHeight = lengthToPixel(options.ridgeHeight),
offsetY = lengthToPixel(options.offsetY),
offsetX = lengthToPixel(options.offsetX),
offsetZ = lengthToPixel(options.offsetZ),
ridgeAngle = options.ridgeAngle,
angle = options.angle,
View readme.md

Getting Started with NPM (as a developer)

If you haven't already set your NPM author info, now you should:

npm set init.author.name "Your Name"
npm set init.author.email "you@example.com"
npm set init.author.url "http://yourblog.com"

npm adduser
View readme.md

Getting Started with NPM (as a developer)

If you haven't already set your NPM author info, now you should:

npm set init.author.name "Your Name"
npm set init.author.email "you@example.com"
npm set init.author.url "http://yourblog.com"

npm adduser
You can’t perform that action at this time.