Skip to content

Instantly share code, notes, and snippets.

@RB-Lab
RB-Lab / index.js
Last active August 29, 2015 14:05
index.js for node configs
var fs = require('fs');
var path = require('path');
var env = process.env.NODE_ENV || 'development';
var config = JSON.parse(fs.readFileSync(__dirname + '/'+env+'.json'));
config.env = env;
config.root = path.dirname(require.main.filename);
module.exports = config;
@RB-Lab
RB-Lab / niceCSSdivider
Created May 16, 2014 15:07
css divider like ---------- ⌘ ----------- from <hr/> tag
hr{
margin: 1em 7em;
background: #333;
height: 1px;
border: none;
position: relative;
}
hr:before{
content: "\2318"; /* ⌘ */
position: absolute;