This file contains hidden or 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 { generatorHandler } from "@prisma/generator-helper"; | |
import fs from "node:fs/promises"; | |
import path from "node:path"; | |
const header = `// This file was generated by a custom prisma generator, do not edit manually.\n`; | |
generatorHandler({ | |
onManifest() { | |
return { | |
defaultOutput: "./enums/index.ts", |
This file contains hidden or 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
NEXT_PUBLIC_FIREBASE_PUBLIC_API_KEY=your_firebase_email | |
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN=your_firebase_auth_domain | |
NEXT_PUBLIC_FIREBASE_DATABASE_URL=your_firebase_database_url | |
NEXT_PUBLIC_FIREBASE_PROJECT_ID=your_project_id | |
NEXT_PUBLIC_BASE_API_URL=http://localhost:3000 | |
NEXT_PUBLIC_SERVICE_ACCOUNT=your_config_json_converted_to_base64 | |
NEXT_PUBLIC_COOKIE_NAME=auth |
This file contains hidden or 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 | |
# | |
# gh-dl-release! It works! | |
# | |
# This script downloads an asset from latest or specific Github release of a | |
# private repo. Feel free to extract more of the variables into command line | |
# parameters. | |
# | |
# PREREQUISITES | |
# |
This file contains hidden or 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
/* | |
@fliptopbox | |
LZW Compression/Decompression for Strings | |
Implementation of LZW algorithms from: | |
http://rosettacode.org/wiki/LZW_compression#JavaScript | |
Usage: | |
var a = 'a very very long string to be squashed'; | |
var b = a.compress(); // 'a veryāăąlong striċ to bečquashed' |