This file contains 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 quickSort = ([pivot, ...rest]) => | |
pivot | |
? [ | |
...quickSort(rest.filter(x => x < pivot)), | |
pivot, | |
...quickSort(rest.filter(y => y >= pivot)) | |
] | |
: [] |
This file contains 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 IO = effect => | |
({ | |
effect, | |
run() { | |
return this.effect() | |
}, | |
map(fn) { | |
if (!fn ?? typeof fn !== 'function') { | |
throw new Error('.map requires a function argument.') | |
} |
This file contains 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
curl \ 20:19:16 | |
-H "Accept: application/vnd.github.v3+json" \ | |
# replace :token below with your personal access token | |
-H "Authorization: token :token" \ | |
-H "Content-Length: 0" \ | |
-X PUT \ | |
# replace ORGNAME with your organization name and USERNAME your username | |
https://api.github.com/orgs/ORGNAME/public_members/USERNAME |
NewerOlder