term | [IPA][I] | [respelling][r] | notes |
---|---|---|---|
[ASIC][asic] | /ˈeɪsɪk/ | [source][asic] | |
[Bash][B] | /bæʃ/ | bash | [source][B-1] |
[CAPTCHA][cap] | /kæp.tʃə/ | kap-TCHA | [source][cap] |
[cout][c] | see-out | [✓ source][c-1] | |
[char][ch] | /tʃɑr/ | tchar | [source][ch-1] |
[deque][dq] | /:dek/ | deck | |
[etcd][e] | /ˈɛtsiːdiː/ | ET-see-dee | [✓ source][e-1] |
[fsck][f] | fisk | [✓ source][f-1], [alt][f-2] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import "@total-typescript/ts-reset"; | |
function isUndefined(value: unknown): value is undefined { | |
return typeof value === "undefined"; | |
} | |
function isNull(value: unknown): value is null { | |
return value === null; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const ROMAN_ARABIC_CONVERSION = { | |
I: 1, | |
V: 5, | |
X: 10, | |
L: 50, | |
C: 100, | |
D: 500, | |
M: 1_000, | |
V̅: 5_000, | |
X̅: 10_000, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.4; | |
contract Account {} |
git log --graph --oneline --decorate ( git fsck --no-reflog | awk '/dangling commit/ {print $3}' )
This will show you all the commits at the tips of your commit graph which are no longer referenced from any branch or tag – every lost commit, including every stash commit you’ve ever created, will be somewhere in that graph.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fetchCuteAnimals = () => { | |
return fetch('https://www.reddit.com/r/aww.json') | |
.then(res => res.json()) | |
.then(data => data.data.children.map(child => child.data)) | |
} | |
const cuteAnimalMachine = Machine({ | |
id: 'cuteAnimals', | |
initial: 'idle', | |
context: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const delay = timer => ctx => | |
ctx.multiplier * timer | |
const stoplight = Machine({ | |
id: "stoplight", | |
strict: true, | |
context: { | |
multiplier: 2 | |
}, | |
on: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// const { Machine, interpret } = require("xstate"); | |
const lit = { | |
on: { | |
BREAK: "broken", | |
TOGGLE: "unlit" | |
} | |
}; | |
const unlit = { | |
on: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// @ts-check | |
/*jshint esversion: 6 */ | |
const formatter = new Intl.NumberFormat('en-US', { | |
style: 'currency', | |
currency: 'USD', | |
}); | |
/** | |
* @class {Object} Person |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log("hi!"); | |
// worker.js | |
this.onmessage = e => { | |
console.log("worker.js: Message received from main script", e.data); | |
this.postMessage("Hello main"); | |
}; |
NewerOlder