This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> coinstac@2.0.0 lint /home/rof/src/github.com/MRN-Code/coinstac | |
> eslint '**/*.js' '**/bin/*' | |
> coinstac@2.0.0 test /home/rof/src/github.com/MRN-Code/coinstac | |
> lerna run test --concurrency=1 | |
Lerna v2.0.0-beta.32 | |
> coinstac-client-core@2.5.0 test /home/rof/src/github.com/MRN-Code/coinstac/packages/coinstac-client-core |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/Sites/quarterback/packages/steelpenny$ npm t | |
> steelpenny@5.3.2 test /Users/creed/Sites/quarterback/packages/steelpenny | |
> nyc mocha 'test/{integration,unit}/*.js' | |
Running with COINS_ENV: development | |
Using default dbmap.json | |
(node:2687) DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const assert = require('assert'); | |
class ModelsError extends Error { | |
constructor(message, file, fileType) { | |
super(message); | |
this.name = 'ModelsError'; | |
this.file = file; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var _ = require('lodash'); | |
var FreeSurfer = require('freesurfer-parser'); | |
var path = require('path'); | |
var os = require('os'); | |
var fs = require('fs'); | |
var glob = require('glob') | |
var mkdirp = require('mkdirp'); | |
var pify = require('pify'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
'use strict' | |
function getLi(username, name) { | |
var li = document.createElement('li'), | |
small = document.createElement('small') | |
small.textContent = name | |
li.className = 'js-navigation-item' | |
li.setAttribute('data-mentionable-type', 'user') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Original: | |
(function(doc, className) { | |
var header = doc.querySelector('[role=banner]'), | |
button = doc.createElement('button'), | |
classList = header.classList, | |
light = className + 'light', | |
dark = className + 'dark', | |
isLight | |
button.className = 'btn' | |
button.style = 'position:sticky;bottom:1em;left:1em' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var path = require('path') | |
var mkdirp = require('mkdirp') | |
var touch = require('touch') | |
var file = process.argv[2] | |
function cb(error) { | |
if (error) { | |
console.error(error) | |
} else { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"users": [ | |
{ | |
"birthday": 1480634264530, | |
"email": "Kira.Rosenbaum83@hotmail.com", | |
"favoriteColor": "indigo", | |
"id": "43aa36bb-7c93-4651-a317-1af1b4879856", | |
"image": "https://s3.amazonaws.com/uifaces/faces/twitter/mrjamesnoble/128.jpg", | |
"joinDate": 1480634264531, | |
"name": "Mandy Schowalter", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ vagrant up --debug | |
INFO global: Vagrant version: 1.8.7 | |
INFO global: Ruby version: 2.2.5 | |
INFO global: RubyGems version: 2.4.5.1 | |
INFO global: VAGRANT_LOG="debug" | |
INFO global: VAGRANT_OLD_ENV_PS1="\\w$ " | |
INFO global: VAGRANT_OLD_ENV_TERM="xterm-256color" | |
INFO global: VAGRANT_OLD_ENV_NVM_DIR="/Users/creed/.nvm" | |
INFO global: VAGRANT_OLD_ENV_NODE_ENV="development" | |
INFO global: VAGRANT_OLD_ENV_SHLVL="1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const { deepEqual } = require('assert'); | |
/** | |
* Sample data structure. | |
* | |
* The items are roughly sorted already, with the top-level item as the root of | |
* the tree. | |
* |