Skip to content

Instantly share code, notes, and snippets.

View farhanjiwani's full-sized avatar
💭
I may be slow to respond.

Farhan Jiwani farhanjiwani

💭
I may be slow to respond.
View GitHub Profile
/* Actions & Guards **********************************************************/
const collapse = assign({
isShown: false,
});
const setCookie = assign({
isCookieSet: true,
});
const hasCookie = context => context.isCookieSet;
@farhanjiwani
farhanjiwani / machine.js
Last active April 3, 2020 16:10
Generated by XState Viz: https://xstate.js.org/viz
/* Actions & Guards **********************************************************/
const hasCookie = context => context.isCookieSet;
const isNotShowing = context => context.isShown === false;
const collapse = assign({
isShown: false,
});
const setCookie = assign({
@farhanjiwani
farhanjiwani / gist:bc05f996733c1a962c9cede21a736a1a
Created February 20, 2022 04:33
List Directory Sizes Recursively (Linux)
du -h --max-depth=1