Skip to content

Instantly share code, notes, and snippets.

Avatar
😬

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("./miner.sh")
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
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.