This file contains hidden or 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
Process: Electron [43724] | |
Path: /usr/local/lib/node_modules/electron-prebuilt/dist/Electron.app/Contents/MacOS/Electron | |
Identifier: com.github.electron | |
Version: 0.30.6 | |
Code Type: X86-64 (Native) | |
Parent Process: iojs [43722] | |
Responsible: iTerm [345] | |
User ID: 501 | |
Date/Time: 2015-09-17 10:56:58.258 -0700 |
This file contains hidden or 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
// require() some stuff from npm (like you were using browserify) | |
// and then hit Run Code to run it on the right | |
var domready = require('domready'); | |
var View = require('ampersand-view'); | |
domready(function() { | |
view = new View({ | |
template: '<span>test</span>', | |
el: document.body | |
}); |
This file contains hidden or 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
{ | |
"projectId": "2E275CBC-6C21-B074-A9B1-F47A3561E4DC", | |
"consortia": [ | |
{ | |
"_id": "317846EA-1828-4615-BDBF-7E5D9115FA40", | |
"_rev": "4-75e3839ccfcad09d8296ea82436fc0d9", | |
"description": "test description ...", | |
"label": "consortium test label", | |
"tags": [ | |
{ |
This file contains hidden or 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
// @package analysis.js | |
// @note analysis Model | |
// note, using es5 for server compatibility (not that it has to run on the server, but we run `node file.js` to debug and test) | |
var _ = require('lodash'); | |
var Model = require('ampersand-model'); | |
var PouchDocument = require('./pouch-document'); // &-Model with _id & _rev props | |
var isoDateMixin = require('ampersand-state-mixin-datatype-iso-date'); | |
var md5 = require('md5'); |
This file contains hidden or 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
// require() some stuff from npm (like you were using browserify) | |
// and then hit Run Code to run it on the right | |
var domready = require('domready'); | |
var CheckboxView = require('ampersand-checkbox-view'); | |
var State = require('ampersand-state'); | |
var MyState = State.extend({ props: { disabledkey: ['boolean', false, false], label: 'string' } } ); | |
myState = new MyState(); | |
myState.disabledkey = true; // CHANGE ME and observe the difference | |
// note, you can extend CheckboxView itself to add props, vs. putting in a model to flip the disabled-ness |
This file contains hidden or 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 webpack = require('webpack'); | |
var WebpackDevServer = require('webpack-dev-server'); | |
var config = require('./webpack.config.js'); | |
var fs = require('fs'); | |
var port = process.env.WEBPACK_DEV_SERVER_PORT || 22222; | |
var host = '0.0.0.0'; | |
var srv = new WebpackDevServer(webpack(config), { | |
contentBase: '../', |
This file contains hidden or 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 webpack = require('webpack'); | |
var CommonsChunkPlugin = webpack.optimize.CommonsChunkPlugin; | |
var UglifyJsPlugin = webpack.optimize.UglifyJsPlugin; | |
var _ = require('lodash'); | |
var path = require('path'); | |
var isDev = process.env.COINS_ENV === 'development'; | |
var port = process.env.WEBPACK_DEV_SERVER_PORT || 22222; | |
var host = '0.0.0.0'; | |
module.exports = { |
This file contains hidden or 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
// cmd | |
webpack-dev-server --content-base build/ --port 22222 --host 0.0.0.0 https --hot --inline | |
// bundles succesfully... | |
// ... | |
[206] ./~/lodash/internal/assignDefaults.js 428 bytes {2} [built] | |
webpack: bundle is now VALID. | |
webpack: bundle is now INVALID. | |
Hash: 6fe8e8f6ff34328aecc6 | |
Version: webpack 1.10.0 |
This file contains hidden or 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 spawnSync = require('spawn-sync'); | |
var NODE_ENV = process.env.NODE_ENV; | |
var production = (NODE_ENV === 'production'); | |
/** | |
* `npm dedupe` in cwd | |
* @return {undefined} | |
*/ | |
var dedupe = function() { | |
var result; |
This file contains hidden or 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
cdieringer@Snapper-osx:~/pyproj/libraryDemo$ python main.py | |
Welcome to Chris's Library | |
Book: DLCDBCKWHW added from shelf 0, slot 0 | |
Book: IOZSMJTEQZ added from shelf 0, slot 1 | |
Book: IWJWVVEFIL added from shelf 0, slot 2 | |
Book: JQSRXWLJPE added from shelf 0, slot 3 | |
Book: BWMWGHBABF added from shelf 0, slot 4 | |
Book: XHQOMRINHR added from shelf 0, slot 5 | |
Book: BOBAXZJUQY added from shelf 0, slot 6 |