In your package.json
:
"scripts": {
"start": "per-env",
"start:development": "echo We're in development!",
"start:production": "echo We're in production!",
}
import { ChangeEvent, createContext, useMemo, useReducer } from "react"; | |
import { AnyZodObject, ZodError, z } from "zod"; | |
import { mapValues } from "~/lib/map"; | |
type FieldState = { | |
name: string; | |
value: string; | |
error: undefined | ZodError; | |
touched: boolean; | |
}; |
{ | |
"scripts": { | |
"prepare": "test -f .git/hooks/pre-commit || cp scripts/pre-commit .git/hooks", | |
"format": "prettier . --cache", | |
"lint": "eslint . --report-unused-disable-directives --max-warnings 0 --cache", | |
} | |
} |
/** | |
* Stylesheet module classes. | |
*/ | |
declare module "*.module.css" { | |
const stylesheet: { | |
[key: string]: string; | |
}; | |
export = stylesheet; | |
} |
/** | |
* Make all properties of T optional, except those in U. If exempt keys were already optional they'll stay optional. | |
*/ | |
type Semipartial<T, U extends keyof T> = Partial<T> & Pick<T, U>; | |
/** | |
* Make all properties of T required, except those in U. If exempt keys were already required they'll stay required. | |
*/ | |
type Semirequired<T, U extends keyof T> = Required<T> & Pick<T, U>; |
param($addr, $port) | |
netsh interface portproxy delete v4tov4 $port | |
netsh interface portproxy add v4tov4 listenport=$port listenaddress=0.0.0.0 connectport=$port connectaddress=$addr |
Optimize-VHD -Mode Full %APPDATA%\Local\Packages\CanonicalGroupLimited.Ubuntu20.04onWindows_79rhkp1fndgsc\LocalState\ext4.vhdx |
#!/usr/bin/env bash | |
# | |
# Create React Component. | |
# | |
# Sane defaults. | |
# -e Exit on error. | |
# -u Whine on undefined variables. | |
# -o pipefail Exit main script if pipe process fails. | |
set -euo pipefail |
In your package.json
:
"scripts": {
"start": "per-env",
"start:development": "echo We're in development!",
"start:production": "echo We're in production!",
}
/** | |
* Unknown array type alias. | |
*/ | |
type TArray = unknown[]; | |
/** | |
* Unknown object type alias. | |
*/ | |
type TObject = Record<string | symbol, unknown>; |
<?xml version="1.0" encoding="UTF-8"?> | |
<opml version="1.0"> | |
<head> | |
<title>Arthur subscriptions in feedly Cloud</title> | |
</head> | |
<body> | |
<outline text="Everything" title="Everything"> | |
<outline type="rss" text="TechCrunch" title="TechCrunch" xmlUrl="http://feeds.feedburner.com/Techcrunch" htmlUrl="https://techcrunch.com" /> | |
<outline type="rss" text="TorrentFreak" title="TorrentFreak" xmlUrl="http://feeds.feedburner.com/Torrentfreak" htmlUrl="https://torrentfreak.com" /> |