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 fs = require('fs'); | |
var lineReader = require('readline').createInterface({ | |
input: fs.createReadStream('file.in'), | |
output: process.stdout, | |
terminal: false | |
}); | |
var fd = fs.openSync('file.out', 'w'); | |
fs.write(fd, 'shouldComponentUpdate(nextProps) {\n return (\n'); | |
var lineIt = 0; |
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
/** | |
* A_Component.js | |
*/ | |
import { Record } from 'immutable'; | |
import React from 'react'; | |
import * as authActions from '../../state/auth/authActions'; | |
// import * as globalActions from '../../state/global/globalActions'; |
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
"scripts": { | |
"debugMode":"parallelshell 'npm run webpack-node' 'npm run webpack-server-browser'", | |
"start": "parallelshell 'npm run webpack-node' 'npm run webpack-server-browser' 'npm run nodemon'", | |
"nodemon":"sleep 16;nodemon bin/serverEntryPoint.js", | |
"webpack-server-browser":"./node_modules/webpack-dev-server/bin/webpack-dev-server.js --config ./webpack.browser.config.js --hot --port 8081", | |
"webpack-node":"./node_modules/webpack/bin/webpack.js --config ./webpack.node.config.js --progress --watch", | |
"lint":"eslint app/ -c .eslintrc", | |
"moveJs":"cp node_modules/marty-clipboard/dist/marty-clipboard.js dist/javascripts/", |
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
exports.stripComments = function stripComments(toBeStrippedStr){ | |
//LEXER | |
function Lexer () { | |
this.setIndex = false; | |
this.useNew = false; | |
for (var i = 0; i < arguments.length; ++i) { | |
var arg = arguments [i]; | |
if (arg === Lexer.USE_NEW) { | |
this.useNew = true; | |
} |
NewerOlder