Running node index.js
is the same of running npm run cy:run --record --key <YOUR_RECORDING_KEY>
.
I used it here to make the npm run
dynamic without changing the way I managed it.
Running node index.js
is the same of running npm run cy:run --record --key <YOUR_RECORDING_KEY>
.
I used it here to make the npm run
dynamic without changing the way I managed it.
To setup a different passphrase for FileVault and for the user (so to use your Mac two different passphrases are required):
$ sudo defaults write /Library/Preferences/com.apple.loginwindow DisableFDEAutoLogin -bool YES
$ sudo fdesetup remove -user USER_NAME
That's all 🎉
$ cat .gitconfig
# This is Git's per-user configuration file.
[alias]
gr = log --graph --full-history --all --color --tags --decorate --pretty=format:\"%x1b[31m%h%x09%x1b[32m%d%x1b[0m%x20%s %x1b[33m%aN <%ae>%x1b[0m (%aI)\"
// @see https://github.com/NoriSte/recoil-apis | |
/* | |
* The internally stored Recoil values | |
*/ | |
export type CoreRecoilValue<T> = { | |
key: string; | |
subscribers: Subscriber[]; | |
} & ( | |
| { |
// @see https://github.com/NoriSte/recoil-apis | |
export type RecoilStores = Record< | |
string, | |
Record<string, CoreRecoilValue<unknown>> | |
>; |
// @see https://github.com/NoriSte/recoil-apis | |
export type Atom<T> = { key: string; default: T }; | |
export type Selector<T> = { | |
key: string; | |
get: ({ get }: { get: GetRecoilValue }) => T; | |
set?: ( | |
{ | |
get, |
// @see https://github.com/NoriSte/recoil-apis | |
/** | |
* Get the current Recoil Atom' value | |
*/ | |
const coreGetAtomValue = <T>(recoilId: string, atom: Atom<T>): T => { | |
const coreRecoilValue = getRecoilStore(recoilId)[atom.key]; | |
// type-safety | |
if (coreRecoilValue.type !== "atom") { |
// @see https://github.com/NoriSte/recoil-apis | |
// core function, it requires the id | |
function logId(id: string) { | |
console.log(id); | |
} | |
// create a new function that accesses the id thanks to its closure | |
function createLogid(id: string) { |
// @see https://github.com/NoriSte/recoil-apis | |
/** | |
* Provide a Recoil Value setter | |
* @private | |
*/ | |
const coreSetRecoilValue = <T>( | |
recoilId: string, | |
recoilValue: RecoilValue<T>, | |
nextValue: T |
// @see https://github.com/NoriSte/recoil-apis | |
/** | |
* Register a new Recoil Value idempotently. | |
* @private | |
*/ | |
export const registerRecoilValue = <T>( | |
recoilId: string, | |
recoilValue: RecoilValue<T> | |
) => { |