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
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) | |
} |
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
// Title.js | |
import styled from 'styled-components' | |
const Title = styled.h1` | |
text-align: center; | |
color: green; | |
` | |
// Home.js | |
import Title from 'components/Title' |