Skip to content

Instantly share code, notes, and snippets.

View GiladShoham's full-sized avatar

Gilad Shoham GiladShoham

View GitHub Profile
@gbraad
gbraad / README.md
Last active November 29, 2018 07:07
Start C9 IDE from systemd

Start C9 IDE from systemd

Install Cloud9 first as [username]

$ su - [username]
$ wget https://github.com/gbraad/ansible-playbooks/raw/master/playbooks/install-c9sdk.yml
$ ansible-playbook install-c9sdk.yml
@branneman
branneman / better-nodejs-require-paths.md
Last active September 23, 2024 17:37
Better local require() paths for Node.js

Better local require() paths for Node.js

Problem

When the directory structure of your Node.js application (not library!) has some depth, you end up with a lot of annoying relative paths in your require calls like:

const Article = require('../../../../app/models/article');

Those suck for maintenance and they're ugly.

Possible solutions