Skip to content

Instantly share code, notes, and snippets.

@eSlivinski
eSlivinski / IconContent.js
Last active August 27, 2018 02:03
Leaflet SVG Icon Font Markers
IconContent = {
'fa-500px': "&#xf26e",
'fa-address-book': "&#xf2b9",
'fa-address-book-o': "&#xf2ba",
'fa-address-card': "&#xf2bb",
'fa-address-card-o': "&#xf2bc",
'fa-adjust': "&#xf042",
'fa-adn': "&#xf170",
'fa-align-center': "&#xf037",
'fa-align-justify': "&#xf039",
@branneman
branneman / better-nodejs-require-paths.md
Last active April 27, 2024 04:16
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