Skip to content

Instantly share code, notes, and snippets.

Igor Goldvekht IgorGee

Block or report user

Report or block IgorGee

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
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.