I hereby claim:
- I am maxholman on github.
- I am maxholman (https://keybase.io/maxholman) on keybase.
- I have a public key ASAka7eqrk-zIA177YjM8ut6qJvpGGjDVT-D95jasneDnwo
To claim this, I am signing this object:
#!/usr/bin/env bash | |
# | |
# Create a base CentOS Docker image. | |
# | |
# Original: https://github.com/dotcloud/docker/blob/master/contrib/mkimage-rinse.sh | |
# Added tweaks from: https://github.com/dotcloud/docker/blob/master/contrib/mkimage-rinse.sh | |
if [[ $EUID -ne 0 ]]; then | |
echo "This script must be run as root" 1>&2 | |
exit 1 |
interface WiredActions<S> { | |
[key: string]: (...args: any[]) => S | WiredActions<S>; | |
} | |
type GenericState = any; | |
type Actions = HyperAppActions<GenericState, WiredActions<GenericState>>; | |
function rewriteActions(actions: Actions): Actions { | |
return Object.entries(actions).reduce((accum, [name, action]) => { |
interface WiredActions<S> { | |
[key: string]: (...args: any[]) => S | WiredActions<S>; | |
} | |
type GenericState = any; | |
type Actions = HyperAppActions<GenericState, WiredActions<GenericState>>; | |
function rewriteActions(actions: Actions): Actions { | |
return Object.entries(actions).reduce((accum, [name, action]) => { |
I hereby claim:
To claim this, I am signing this object:
import { readdir, stat } from 'node:fs/promises'; | |
async function* recursiveReaddir(dir: URL): AsyncGenerator<URL> { | |
for await (const file of await readdir(dir)) { | |
const path = new URL(file, `${dir}/`); | |
const x = await stat(path); | |
if (x.isDirectory()) { | |
yield* recursiveReaddir(path); | |
} else { | |
yield path; |
Copyright 2022 Block65 Pte Ltd
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all