🔥 Blazing fast builds
😇 CommonJS bundle
🌲 .mjs
bundle
✨ .d.ts
bundle + type-checking
🧐 Source maps
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
eval "$(/opt/homebrew/bin/brew shellenv)" | |
autoload -Uz compinit | |
compinit | |
setopt append_history | |
setopt auto_pushd | |
setopt autocd | |
setopt cdable_vars |
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
themes { | |
tokyo-night-theme { | |
fg "#c0caf5" | |
bg "#292e42" | |
black "#1a1b26" | |
red "#f7768e" | |
green "#9ece6a" | |
yellow "#e0af68" | |
blue "#7aa2f7" | |
magenta "#bb9af7" |
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
[[language]] | |
name = "javascript" | |
auto-format = true | |
formatter = { command = "prettier", args = ["--write"] } | |
[[language]] | |
name = "typescript" | |
auto-format = true | |
formatter = { command = "prettier", args = ["--write"] } |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<meta | |
name="viewport" | |
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" | |
/> | |
<title>reveal.js</title> | |
<link |
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
.PHONY: setup dev build | |
setup: | |
@echo "Checking for go..." | |
@command -v go >/dev/null 2>&1 || { echo >&2 "go is not installed. Aborting."; exit 1; } | |
@echo "Checking for bun..." | |
@command -v bun >/dev/null 2>&1 || { echo >&2 "bun is not installed. Aborting."; exit 1; } | |
@echo "Checking for air..." | |
@command -v air >/dev/null 2>&1 || { echo >&2 "air is not installed. Please install it by running 'go install github.com/cosmtrek/air@latest'. Aborting."; exit 1; } | |
@echo "Running go mod tidy..." |
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/bash | |
set -euo pipefail | |
# Variables | |
REPO="user/repo" | |
ASSET_NAME="" | |
# Detect OS & set installation path | |
detect_os() { |
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
export async function retryAsync<T>( | |
asyncFn: () => Promise<T>, | |
maxRetries: number, | |
): Promise<T> { | |
let retries = 0; | |
while (retries < maxRetries) { | |
try { | |
return await asyncFn(); | |
} catch (error) { |
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
{ | |
"root": true, | |
"extends": [ | |
"eslint:recommended", | |
"plugin:@typescript-eslint/recommended", | |
"plugin:import/recommended", | |
"plugin:import/typescript", | |
"plugin:react/recommended", | |
"plugin:react/jsx-runtime", | |
"plugin:react-hooks/recommended" |
NewerOlder