Skip to content

Instantly share code, notes, and snippets.

View odi89's full-sized avatar

Sebastian Melbye odi89

View GitHub Profile
@iuliandita
iuliandita / alacritty.toml
Last active April 16, 2025 01:20
Alacritty TOML config file, with all defaults present (commented out), in the proper order. Color scheme is Catpuccin Mocha.
# alacritty.toml
# commented lines are the defaults
# man 5 alacritty (>0.13) for full config manual
#import = [
#"~/.config/alacritty/catpuccin-mocha.toml",
#"~/.config/alacritty/keybindings.toml",
#]
[shell]
@tengla
tengla / node-typescript-esm.md
Created November 21, 2023 22:16 — forked from khalidx/node-typescript-esm.md
A Node + TypeScript + ts-node + ESM experience that works.

The experience of using Node.JS with TypeScript, ts-node, and ESM is horrible.

There are countless guides of how to integrate them, but none of them seem to work.

Here's what worked for me.

Just add the following files and run npm run dev. You'll be good to go!

package.json

@ryanatkn
ryanatkn / tsconfig.json
Last active October 26, 2024 21:45
A TypeScript 3.5 tsconfig.json with all options organized and with documentation comments
{
// Commented-out options have their default values.
"include": ["src/**/*"],
"exclude": ["node_modules/*"],
// "files": [], // A list of relative or absolute file paths to include.
// "extends": "", // A string containing a path to another configuration file to inherit from.
// "references": [], // An array of objects `{"path": "./to/dirOrConfig"}` that specifies projects to reference.
// "compileOnSave": false, // Signals to the IDE to generate all files for a given tsconfig.json upon saving.
"compilerOptions": {
@adrianhajdin
adrianhajdin / index.js
Created January 26, 2019 21:09
HTML Template
module.exports = ({ name, price1, price2, receiptId }) => {
const today = new Date();
return `
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>PDF Result Template</title>
<style>
.invoice-box {