Skip to content

Instantly share code, notes, and snippets.


Igor Goldvekht IgorGee

View GitHub Profile
View stdoutScanner.js
const spawn = require('child_process').spawn
const exec = require('child_process').exec
const fork = require('child_process').fork
const miner = spawn("./")
const shouldRestart = (line) => {
const launchFailString = new RegExp(/unspecified launch failure/)
const staleDataString = new RegExp(/Submitting stale solution/)
return launchFailString.test(line) || staleDataString.test(line)
IgorGee / style-components.test.js
Last active Mar 14, 2017
Attempting to unit test with styled components
View style-components.test.js
// Title.js
import styled from 'styled-components'
const Title = styled.h1`
text-align: center;
color: green;
// Home.js
import Title from 'components/Title'
You can’t perform that action at this time.