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
/** | |
* server API is imported into main thread as a lib | |
* coinstac render process or test processes can import the API, which | |
* exports server behaviors, and client functions to call | |
*/ | |
// in main thread | |
var copperwad = require('copperwad'); // because we don't believe in boring names | |
copperwad.listen('1492'); | |
copperwad.on('analysis:add', copperwad.server.analysis.add); |
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
#!/bin/bash | |
function bamtest { | |
tmpdir=`mktemp -d` | |
trap 'rm -rf "$tmpdir"' exit | |
PATH="$tmpdir:$PATH" | |
echo $PATH | |
ln -s "ls" "$tmpdir"/bam | |
echo `ls -al $tmpdir` | |
echo `bam` # <== hmm, not being executed, what gives? | |
} |
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 getExternals = function() { | |
var internals = [/react/]; // assert that all of these entries remain in webpack bundle | |
var externals = []; | |
var externalsHash = { | |
fs: 'commonjs fs', | |
ipc: 'commonjs ipc', | |
remote: 'commonjs remote', | |
path: 'commonjs path', | |
config: 'commonjs config', | |
os: 'commonjs os', |
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
import React from 'react'; | |
import { Input, ButtonToolbar, Button } from 'react-bootstrap'; | |
import _ from 'lodash'; | |
export default class FormProjectContext extends React.Component { | |
setAnalysis(evt) { | |
const { dispatch, setAnalysis } = this.props; | |
const matches = consortium.analyses.filter(sis => sis._id === evt.target.value); | |
dispatch(setAnalysis(matches[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
#!/usr/bin/env node | |
'use strict'; | |
const program = require('commander'); | |
const server = require('../index.js').server; | |
const url = require('url'); | |
const config = {}; |
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
osx => | |
```js | |
cdieringer@Snapper-osx:~/node/coinstac-common$ node -v | |
v4.2.4 | |
cdieringer@Snapper-osx:~/node/coinstac-common$ node debug test/ | |
< Debugger listening on port 5858 | |
... | |
break in src/models/computation/command.js:35 | |
33 cmd = spawn(this.cmd, this.args, { cwd: this.cwd }); | |
34 } catch (err) { |
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 | |
View = require('ampersand-input-view'); | |
var TextAreaView = View.extend({ | |
template: [ | |
'<label>', | |
'<textarea>', | |
'<span data-hook="label"></span>', | |
'<div data-hook="message-container" class="message message-below message-error">', | |
'<p data-hook="message-text"></p>', |
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:~/node/dummy$ npm i --save-dev coins-validate | |
npm WARN package.json [email protected] No description | |
npm WARN package.json [email protected] No repository field. | |
npm WARN package.json [email protected] No README data | |
- | |
> [email protected] install /Users/cdieringer/node/dummy/node_modules/coins-validate/node_modules/git-validate | |
> node bin/install | |
> [email protected] install /Users/cdieringer/node/dummy/node_modules/coins-validate |
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
CHA-CHING! CEEZ is runnin' Darwin 15.3.0 64-bit (64) | |
🛰 cdieringer:~/edu/sdp/6300Spring16Team83/Project2$ cd | |
🛰 cdieringer:~$ cd node/ | |
🛰 cdieringer:~/node$ mkdir coinstac-fresh-sim-test | |
🛰 cdieringer:~/node$ cd coinstac-fresh-sim-test/ | |
🛰 cdieringer:~/node/coinstac-fresh-sim-test$ git clone [email protected]:MRN-Code/coinstac-simulator | |
Cloning into 'coinstac-simulator'... | |
remote: Counting objects: 152, done. | |
remote: Compressing objects: 100% (106/106), done. | |
remote: Total 152 (delta 62), reused 130 (delta 44), pack-reused 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
🛰 cdieringer:~/node/coinstac-client-core$ export ATOM_SHELL_INTERNAL_RUN_AS_NODE=1 && ../coinstac-ui/node_modules/electron-prebuilt/dist/Electron.app/Contents/MacOS/Electron /Users/cdieringer/node/ionizer/node_modules/npm/bin/npm-cli.js rebuild leveldown --runtime=electron --target=0.37.7 --arch=x64 --verbose --debug | |
npm info it worked if it ends with ok | |
npm verb cli [ '/Users/cdieringer/node/coinstac-ui/node_modules/electron-prebuilt/dist/Electron.app/Contents/MacOS/Electron', | |
npm verb cli '/Users/cdieringer/node/ionizer/node_modules/npm/bin/npm-cli.js', | |
npm verb cli 'rebuild', | |
npm verb cli 'leveldown', | |
npm verb cli '--runtime=electron', | |
npm verb cli '--target=0.37.7', | |
npm verb cli '--arch=x64', | |
npm verb cli '--verbose', |