Skip to content

Instantly share code, notes, and snippets.

@khalidx
khalidx / node-typescript-esm.md
Last active February 28, 2024 21:47
A Node + TypeScript + ts-node + ESM experience that works.
View node-typescript-esm.md

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 18, 2020 01:56
Corona / Covid
@yogthos
yogthos / clojure-beginner.md
Last active February 26, 2024 20:32
Clojure beginner resources
View clojure-beginner.md

Introductory resources

@dwildt
dwildt / openhackrs-principios.txt
Last active August 10, 2023 15:42
Open Hack RS - Funcionamento base e princípios.
View openhackrs-principios.txt
/// 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
View .editorconfig
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 February 29, 2024 01:58
Summary of 'Clean code' by Robert C. Martin
View clean_code.md

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 April 11, 2023 00:15
How to remove unused Docker containers and images
View remove-docker-containers.md

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
View install.sh
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