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
math.randomseed(os.time()) | |
local charset = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890" | |
function string.random(length) | |
if length > 0 then | |
return string.random(length - 1) .. charset:sub(math.random(1, #charset), 1) | |
else | |
return "" | |
end |
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
// Apple Crayon Palette RGB | |
$cantaloupe: rgb(255, 206, 110); | |
$honeydew: rgb(206, 250, 110); | |
$spindrift: rgb(104, 251, 208); | |
$sky: rgb(106, 207, 255); | |
$lavender: rgb(210, 120, 255); | |
$carnation: rgb(255, 127, 211); | |
$licorice: rgb(0, 0, 0); | |
$snow: rgb(255, 255, 255); |
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
# starship prompt | |
# https://starship.rs/ | |
eval "$(starship init zsh)" | |
# rtx runtime | |
# https://github.com/jdx/rtx | |
eval "$(rtx activate zsh)" | |
export PIPENV_VENV_IN_PROJECT=1 | |
export VISUAL=vim |
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
:: Package your ESO add-on ready for distribution. | |
:: Version 1.3 Sat, 14 Nov 2015 22:36:23 +0000 | |
@echo off | |
setlocal enableextensions enabledelayedexpansion | |
set zip=%ProgramFiles%\7-Zip\7z.exe | |
if not exist "%zip%" goto :zipnotfound | |
for %%* in (.) do set name=%%~nx* |
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
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; | |
}; |
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
<?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" /> |
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
{ | |
"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", | |
} | |
} |
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
/** | |
* Stylesheet module classes. | |
*/ | |
declare module "*.module.css" { | |
const stylesheet: { | |
[key: string]: string; | |
}; | |
export = stylesheet; | |
} |
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
#!/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 |
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
/** | |
* Text stroke using text-shadow. | |
* @example | |
* p { | |
* @include stroke(black, 2px); | |
* } | |
*/ | |
@mixin stroke($color, $size: 1px) { | |
$value: null; | |
NewerOlder