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
#!/bin/sh | |
RPI_PIVERSION="${RPI_PIVERSION:-""}" | |
RPI_PIMODEL="${RPI_PIMODEL:-""}" | |
RPI_IMAGE_URLPREFIX="${RPI_IMAGE_URLPREFIX:-"https://downloads.raspberrypi.org/raspbian_"}" | |
RPI_IMAGE_VARIANT="${RPI_IMAGE_VARIANT:-"lite"}" | |
RPI_IMAGE_VERSION="latest" | |
RPI_GUEST_SHELL="${RPI_GUEST_SHELL:-"sh"}" |
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
interface IValidQuestionValidation { | |
success: true; | |
value: string; | |
} | |
interface IInvalidQuestionValidation { | |
success: false; | |
message: string; | |
} |
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
class MonadError extends Error {} | |
class EmptyMonadError extends MonadError {} | |
class Maybe<T> { | |
protected value?: T; | |
constructor(value?: T) { | |
this.value = value; |
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
function s(strings: ReadonlyArray<string>, ...exprs: any[]): string { | |
return strings.reduce((accum, elem, idx) => `${accum}${elem}${idx < exprs.length ? exprs[idx] : ''}`, ''); | |
} | |
// Example: | |
// s`a_${10}_b` -> "a_10_b" |
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
type FormFieldTuple<T> = { value: Required<T>, valid: boolean, message?: string }; | |
type FormFieldData<T> | |
= T extends undefined ? FormFieldTuple<T> | undefined | |
: FormFieldTuple<T> | |
; | |
type FormFields<F, K extends keyof F = keyof F> = { [KK in K]: | |
F[KK] extends object ? FormFields<F[KK]> : FormFieldData<F[KK]> |
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
class MonadError extends Error {} | |
class EmptyMonadError extends MonadError {} | |
class Maybe<T> { | |
protected value?: T; | |
constructor(value?: T) { | |
this.value = value; |
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
#!/bin/sh | |
readonly wsconfig_env_home="$(cd "$(dirname "$0")" && pwd -P)" | |
{ WS_DOCKERFILE_CONTENTS="$(cat)"; } <<"_DOCKERFILE_" | |
FROM ubuntu:bionic | |
ENV DEBIAN_FRONTEND="teletype" | |
# Update system and install essential developer tools |
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
#!/bin/sh | |
main() { | |
local m2_root; m2_root="~/.m2" | |
local groupId | |
local artifactId | |
local parsing; parsing=0 | |
local path | |
local exitcode; exitcode=0 | |
local dry_run; dry_run=1 |
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
See https://stackoverflow.com/questions/38335668/how-to-refer-to-typescript-enum-in-d-ts-file-when-using-amd | |
Run with `npm run exec`, will install all dependencies as needed. | |
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
#! /bin/sh | |
# | |
# This file was generated by a make rule | |
# | |
# | |
####################################################### | |
# From 'shell_config' | |
####################################################### | |
ENABLE_ABYSS_THREADS="yes" | |
THREAD_LIBS="-lpthread" |