Skip to content

Instantly share code, notes, and snippets.

View lambdahands's full-sized avatar
🔮
~*srcery*~

Amani lambdahands

🔮
~*srcery*~
View GitHub Profile
@branneman
branneman / better-nodejs-require-paths.md
Last active April 8, 2024 00:22
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

anonymous
anonymous / Gemfile
Created August 16, 2013 01:03
Guard + LiveReload + Compass + Foundation = <3
source "http://rubygems.org"
group :development do
gem 'sass'
gem 'compass'
gem 'compass-validator'
gem 'css_parser'
gem 'guard'
gem 'guard-compass'
gem 'guard-shell'
@gorsuch
gorsuch / gist:1418850
Created December 1, 2011 18:37
clojure uuid
(defn uuid [] (str (java.util.UUID/randomUUID)))