Skip to content

Instantly share code, notes, and snippets.

@khalidx
khalidx / node-typescript-esm.md
Last active May 8, 2024 07:58
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

@adamatti
adamatti / README.md
Last active April 3, 2024 12:41
Corona / Covid
@yogthos
yogthos / clojure-beginner.md
Last active May 6, 2024 08:11
Clojure beginner resources

Introductory resources

@dwildt
dwildt / openhackrs-principios.txt
Last active August 10, 2023 15:42
Open Hack RS - Funcionamento base e princípios.
/// OpenHackRS - Open Hack Rio Grande do Sul
/// https://www.meetup.com/OpenHackRS/
TL;DR; Queremos fazer eventos para desenvolver software. Reunir pessoas
interessadas em desenvolvimento de software, interessadas em aprender
novas tecnologias. Quer participar de eventos?
Se inscreva no https://www.meetup.com/OpenHackRS/.
Quer ajudar a organizar eventos? Procura pelo dwildt no Telegram.
@adamatti
adamatti / .editorconfig
Last active November 1, 2019 19:10
Default files - Java #bootstrap
root = true
[*.{groovy,gradle}]
end_of_line = lf
insert_final_newline = true
charset = utf-8
indent_style = space
indent_size = 4
[Makefile]
@wojteklu
wojteklu / clean_code.md
Last active May 10, 2024 21:32
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

@ngpestelos
ngpestelos / remove-docker-containers.md
Last active March 5, 2024 20:45
How to remove unused Docker containers and images

May 8, 2018

I wrote this four years ago, so instead use this command:

$ docker rmi $(docker images -q -f dangling=true)
@johand
johand / install.sh
Created August 21, 2013 22:51
heroku toolbelt installer without sudo
HEROKU_CLIENT_URL="http://assets.heroku.com.s3.amazonaws.com/heroku-client/heroku-client.tgz"
echo "This script requires superuser access to install software."
echo "You will be prompted for your password."
su -c "sh <<SCRIPT
# download and extract the client tarball
rm -rf /usr/local/heroku
mkdir -p /usr/local/heroku