Skip to content

Instantly share code, notes, and snippets.

View mathdroid's full-sized avatar
☢️
not good, not terrible

Odi mathdroid

☢️
not good, not terrible
View GitHub Profile
@mathdroid
mathdroid / rick.1.gif
Created May 11, 2019 00:24
Gist for rick.1.gif. Generated by `crop-github-images-cli`.
rick.1.gif
@mathdroid
mathdroid / rick.0.gif
Created May 11, 2019 00:24
Gist for rick.0.gif. Generated by `crop-github-images-cli`.
rick.0.gif
@mathdroid
mathdroid / rick.5.gif
Created May 11, 2019 00:24
Gist for rick.5.gif. Generated by `crop-github-images-cli`.
rick.5.gif
@mathdroid
mathdroid / rick.2.gif
Created May 11, 2019 00:24
Gist for rick.2.gif. Generated by `crop-github-images-cli`.
rick.2.gif
@mathdroid
mathdroid / rick.3.gif
Created May 11, 2019 00:24
Gist for rick.3.gif. Generated by `crop-github-images-cli`.
rick.3.gif
@mathdroid
mathdroid / absolute-to-relative.js
Created June 28, 2021 11:57 — forked from benmerckx/absolute-to-relative.js
jscodeshift codemod to change imports of internal modules using absolute path to relative path
//jscodeshift --rootDirs ./src --packageDir . --extensions ts --parser tsx -t abs.js src
/**
* This codemod expects 2 CLI arguments:
* - packageDir: the path of the directory containing the package.json. It's used to detect whether a path points
* to a dependency or an internal module.
* - rootDirs: root directory paths separated by a comma if you have more than one root.
* Let's say that you have two files:
* - src/component.js
* - src/index.js containing the import "import Component from 'component.js';"
.card {
box-shadow: rgba(0, 0, 0, 0.01) 0px 0px 1px, rgba(0, 0, 0, 0.04) 0px 4px 8px, rgba(0, 0, 0, 0.04) 0px 16px 24px, rgba(0, 0, 0, 0.01) 0px 24px 32px;
}
@mathdroid
mathdroid / vapor.1.gif
Last active January 8, 2021 20:32
Gist for vapor.1.gif. Generated by `crop-github-images-cli`.
vapor.1.gif
@mathdroid
mathdroid / vapor.2.gif
Last active January 8, 2021 20:32
Gist for vapor.2.gif. Generated by `crop-github-images-cli`.
vapor.2.gif
@mathdroid
mathdroid / vapor.3.gif
Last active January 8, 2021 20:32
Gist for vapor.3.gif. Generated by `crop-github-images-cli`.
vapor.3.gif