Having both Node.js and io.js installed with NVM was giving me a load of problems, mainly with npm. So I uninstalled NVM and manage Node.js and io.js with homebrew.
Heres how.
Install Node.js and io.js
$ brew install node
$ brew install iojs
Having both Node.js and io.js installed with NVM was giving me a load of problems, mainly with npm. So I uninstalled NVM and manage Node.js and io.js with homebrew.
Heres how.
Install Node.js and io.js
$ brew install node
$ brew install iojs
| function getRange() { | |
| var lower = getLowerClosest(10); | |
| var upper = getHigherClosest(10); | |
| return moment(lower).format('HH:mm:ss') + ' - ' + moment(upper).format('HH:mm:ss'); | |
| } | |
| function getLowerClosest(mins) { | |
| var coeff = 1000 * 60 * mins; | |
| var date = new Date(); | |
| return new Date(Math.floor(date.getTime() / coeff) * coeff); |
| storage: | |
| dbPath: "./data" | |
| directoryPerDB: true | |
| journal: | |
| enabled: true | |
| engine: "wiredTiger" | |
| wiredTiger: | |
| engineConfig: | |
| cacheSizeGB: 8 | |
| journalCompressor: zlib |
| storage: | |
| dbPath: "./data" | |
| directoryPerDB: true | |
| journal: | |
| enabled: true | |
| engine: "wiredTiger" | |
| wiredTiger: | |
| engineConfig: | |
| cacheSizeGB: 8 | |
| journalCompressor: none |
| storage: | |
| dbPath: "./data" | |
| directoryPerDB: true | |
| journal: | |
| enabled: true | |
| engine: "wiredTiger" | |
| wiredTiger: | |
| engineConfig: | |
| cacheSizeGB: 8 | |
| journalCompressor: snappy |
| #!/bin/bash | |
| # - Nginx | |
| # - NodeJS | |
| # - Redis | |
| # - Mongodb | |
| # - Mosh | |
| # Add Required repository | |
| sudo add-apt-repository -y ppa:keithw/mosh |
| 'use strict'; | |
| var async = require('async'); | |
| var elastic = require('./app/helpers/elasticsearch.js'); | |
| async.waterfall([ | |
| // create | |
| function (done) { | |
| elastic.index({ |
| #!/bin/sh | |
| # Alot of these configs have been taken from the various places | |
| # on the web, most from here | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # Set the colours you can use | |
| black='\033[0;30m' | |
| white='\033[0;37m' | |
| red='\033[0;31m' |
Certainly the best way to understand how Prelude enhances the default
Emacs experience is to peruse Prelude's source code (which is
obviously written in Emacs Lisp). Understanding the code is not
necessary of course. Prelude includes a prelude-mode minor Emacs mode
which collects some of the additional functionality added by
Prelude. It also adds an additional keymap that binds many of those
extensions to keybindings.