Skip to content

Instantly share code, notes, and snippets.

View dgcoffman's full-sized avatar

Daniel Coffman dgcoffman

View GitHub Profile
### Keybase proof
I hereby claim:
* I am dgcoffman on github.
* I am dancoffman (https://keybase.io/dancoffman) on keybase.
* I have a public key whose fingerprint is 88C9 10BF B83E C525 E24D E1D1 05DB 9538 F040 19EA
To claim this, I am signing this object:
Full name Email address or phone number
Harry Potter harrypotter@remind.com
Hermoine Granger hermoine@remind.c
Rupert rupert@remind.com
Luna Lovegood
He who must not be named with a really long name 415-444-4444
Dumbledore 415-555-5555
Severus Snape 444-4244
Ron Weasley +2444-4-4-4-4
Lord voldemort 415-444-4444
SmashingConf New York 2016
June 14-15
New York, NY
http://lanyrd.com/2016/smashingconf-new-york/
Generate
July 15th
San Francisco, CA
http://www.generateconf.com/san-francisco-2016/

Itinerary

6:00pm Wednesday 5/25 Depart 300 Hill St

remember tickets

6:15pm Wednesday 5/25 Arrive at SFO

7:42pm Wednesday 5/25 Depart SFO for SEA

@dgcoffman
dgcoffman / JavaScript Objects
Last active March 12, 2017 03:03
Description of how JavaScript objects work
Objects have four states:
properties can be added | deleted | modified* | do it with | check with
Default √ | √ | √ | n/a | n/a
preventExtensions X | √ | √ | preventExtensions | isExtensible
seal X | X | √ | seal | isSealed
freeze X | X | X | freeze | isFrozen
* by changing any of the four attributes below
You can make an object in three different ways:
@dgcoffman
dgcoffman / proposals.txt
Created March 14, 2017 23:30
ES.Next Proposals
9th Edition - ES.Next
Stage 3 (Candidate)
===================
1. SIMD - Single Instruction Multiple Data
http://www.2ality.com/2013/12/simd-js.html
https://github.com/tc39/ecmascript_simd/blob/master/tc39/SIMD-128%20TC-39.pdf
@dgcoffman
dgcoffman / cloudSettings
Last active October 11, 2019 19:43
Visual Studio Code Sync Settings Gist
{"lastUpload":"2019-10-11T19:43:48.295Z","extensionVersion":"v3.4.3"}
{
"telemetry.telemetryLevel": "off",
"nxConsole.enableTelemetry": false,
"editor.fontLigatures": true,
"editor.fontFamily": "Fira Code",
"editor.fontSize": 16,
"files.trimTrailingWhitespace": true,
"files.insertFinalNewline": true,
"workbench.editor.enablePreview": false,
"editor.renderWhitespace": "all",
@dgcoffman
dgcoffman / require-named-effect.js
Created May 23, 2022 16:16
libs/eslint-rules/require-named-effect.js
const isUseEffect = (node) => node.callee.name === 'useEffect';
const argumentIsArrowFunction = (node) => node.arguments[0].type === 'ArrowFunctionExpression';
const effectBodyIsSingleFunction = (node) => {
const { body } = node.arguments[0];
// It's a single unwrapped function call:
// `useEffect(() => theNameOfAFunction(), []);`
if (body.type === 'CallExpression') {