Skip to content

Instantly share code, notes, and snippets.

View sehyunchung's full-sized avatar
❤️

Sehyun Chung sehyunchung

❤️
View GitHub Profile

0:00 you do four years of high school then you go to university then you get your degree then you go to the internship then you get your job fair you go to the 0:07 job fair you get your job you start as a junior analyst then you become an analyst then you become an associate 0:12 then you become a senior associate then you become a vice president and then you become a senior vice president and then you become a director and then you 0:18 become a managing director and then you become a partner and then you will be happy 0:23 aboard the train everyone's telling you to board the train but there are no train

@sehyunchung
sehyunchung / machine.js
Created April 12, 2021 03:36
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
// stitches.config.ts
import { createStyled } from '@stitches/react';
export type StitchesConfigsType = Parameters<typeof createStyled>[number];
function getItemOrLastItem<Item extends string | number>(
list: Item[],
itemIndex: number,
): Item | undefined {
@sehyunchung
sehyunchung / gist:ac18cfc9901a41699b7b78248e7bd1f2
Last active June 30, 2020 07:03
blueprint bookmarklet based on zaydek.github.com/debug.css
javascript: /* debug.css | MIT License | zaydek.github.com/debug.css */ if (!("is_debugging"in window)) { is_debugging = false; var debug_el = document.createElement("style"); debug_el.append(document.createTextNode(`*:not(path):not(g) { color: hsla(210, 100%, 100%, 0.7) !important; background: hsla(211, 80%, 28%, 0.5) !important; outline: solid 1px hsla(210, 100%, 100%, 0.5) !important; box-shadow: none !important; filter: none !important; }`)); } function enable_debugger() { if (!is_debugging) { document.head.appendChild(debug_el); is_debugging = true; } } function disable_debugger() { if (is_debugging) { document.head.removeChild(debug_el); is_debugging = false; } } !is_debugging ? enable_debugger() : disable_debugger();