Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
| import path from 'path'; | |
| import webpack from 'webpack'; | |
| import merge from 'lodash.merge'; | |
| const DEBUG = !process.argv.includes('--release'); | |
| const VERBOSE = process.argv.includes('--verbose'); | |
| const WATCH = global.WATCH === undefined ? false : global.WATCH; | |
| const AUTOPREFIXER_BROWSERS = [ | |
| 'Android 2.3', | |
| 'Android >= 4', |
| // ---- | |
| // libsass (v3.2.5) | |
| // ---- | |
| /*! ======================================================================== | |
| PRECISE CONTROL OVER RESPONSIVE TYPOGRAPHY FOR SASS | |
| --------------------------------------------------- | |
| Indrek Paas @indrekpaas |
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
| # first: | |
| lsbom -f -l -s -pf /var/db/receipts/org.nodejs.pkg.bom | while read f; do sudo rm /usr/local/${f}; done | |
| sudo rm -rf /usr/local/lib/node /usr/local/lib/node_modules /var/db/receipts/org.nodejs.* | |
| # To recap, the best way (I've found) to completely uninstall node + npm is to do the following: | |
| # go to /usr/local/lib and delete any node and node_modules | |
| cd /usr/local/lib | |
| sudo rm -rf node* |
| // This is from my comment here: http://wolfram.kriesing.de/blog/index.php/2008/javascript-remove-element-from-array/comment-page-2#comment-466561 | |
| /* | |
| * How to delete items from an Array in JavaScript, an exhaustive guide | |
| */ | |
| // DON'T use the delete operator, it leaves a hole in the array: | |
| var arr = [4, 5, 6]; | |
| delete arr[1]; // arr now: [4, undefined, 6] |
| <script type="text/javascript"> | |
| (function () { | |
| "use strict"; | |
| // once cached, the css file is stored on the client forever unless | |
| // the URL below is changed. Any change will invalidate the cache | |
| var css_href = './index_files/web-fonts.css'; | |
| // a simple event handler wrapper | |
| function on(el, ev, callback) { | |
| if (el.addEventListener) { | |
| el.addEventListener(ev, callback, false); |
| function go() { | |
| var userId = prompt('Username?', 'Guest'); | |
| checkIfUserExists(userId); | |
| } | |
| var USERS_LOCATION = 'https://SampleChat.firebaseIO-demo.com/users'; | |
| function userExistsCallback(userId, exists) { | |
| if (exists) { | |
| alert('user ' + userId + ' exists!'); |
| { content: | |
| { sid: '516f1018384ca80000000011', | |
| title: 'node.js news', | |
| slug: 'node-js-news', | |
| status: 'working', | |
| version: 1, | |
| permalink: 'http://storify.com/storify/node-js-news', | |
| description: null, | |
| thumbnail: 'http://storify.com/public/img/default-thumb.gif', | |
| date: |
| var application_root = __dirname, | |
| express = require("express"), | |
| path = require("path"), | |
| mongoose = require('mongoose'); | |
| var app = express.createServer(); | |
| // database | |
| mongoose.connect('mongodb://localhost/ecomm_database'); |