Skip to content

Instantly share code, notes, and snippets.

View H4kor's full-sized avatar
🦉
Thinking about blogging

Niko Abeler H4kor

🦉
Thinking about blogging
View GitHub Profile
@khalidx
khalidx / node-typescript-esm.md
Last active April 22, 2024 15:40
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

@Benargee
Benargee / rainbowLog.js
Last active January 1, 2022 17:24
A console.log with a little more... flair.
console.rainbow = function (str) {
const colors = [
"red",
"orange",
"yellow",
"green",
"blue",
"indigo",
"violet",//white in VS Code
@nitoyon
nitoyon / rgb.go
Created January 1, 2016 16:08
Generate Animation GIF with Golang
package main
import (
"fmt"
"image"
"image/color"
"image/gif"
"math"
"os"
)
@H4kor
H4kor / .vimrc
Created March 26, 2011 20:43
My .vimrc
:set autoindent
:set cindent
:set number
set nocp
filetype plugin on
set tags+=~/.vim/tags/cpp
set tags+=~/.vim/tags/sfml