Skip to content

Instantly share code, notes, and snippets.

View AJFunk's full-sized avatar

AJ Funk AJFunk

View GitHub Profile

Keybase proof

I hereby claim:

  • I am ajfunk on github.
  • I am ajfunk (https://keybase.io/ajfunk) on keybase.
  • I have a public key ASBFq5qghSWZpiMlmhPcegpmEdrIwxbqbL2dAHlSsfJm_Ao

To claim this, I am signing this object:

@AJFunk
AJFunk / index.html
Created June 18, 2018 18:54
testing
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<h1>TESTING</h1>
<button id="send">SEND</button>
const http = require('http')
const solution = (url, cb) =>
http.get(url, res =>
res.on('data', chunk => {
const data = JSON.parse(chunk.toString())
if (!data || !data.follow) return cb(data)
return solution(data.follow.replace('challenge?', 'challenge.json?'), cb)
})
)