View events.js
const EventEmitter = require('events')
class MyClass extends EventEmitter {
constructor() {
super() // required
this.emit('event', 100)
}
}
View run.sh
ipfs config Addresses.Gateway /ip4/0.0.0.0/tcp/9001
View README.md

Install Cygwin, and keep installer around.

Then run

setup-x86_64.exe -q -P wget -P gcc-g++ -P make -P diffutils -P libmpfr-devel -P libgmp-devel -P libmpc-devel

Launch cygwin console

View scrollbar.css
body::-webkit-scrollbar,
.overflow-x::-webkit-scrollbar,
.overflow-y::-webkit-scrollbar {
width: 5px;
height: 5px;
}
body::-webkit-scrollbar-track,
.overflow-x::-webkit-scrollbar-track,
.overflow-y::-webkit-scrollbar-track {
View index.js
var ethUtil = require('ethereumjs-util')
var key = 'a3d49d0f53da61605eb44f44...'
if (ethUtil.isValidPrivate(key)) {
// valid
}
View rinkeby_address.txt
0xd292F05Bc7aA79b435EcB3D241B5a5D47F206C4c
View index.html
<button id="open-popup">Sign Up</button>
<script type="text/javascript" src="//s3.amazonaws.com/downloads.mailchimp.com/js/signup-forms/popup/embed.js" data-dojo-config="usePlainJson: true, isDebug: false"></script>
<script>
function showMailingPopUp() {
var config={"baseUrl":"mc.us5.list-manage.com","uuid":"0b1e10820775a3f...","lid":"738208..."}
require(["mojo/signup-forms/Loader"], function(L) {
L.start(config)
View deploy.sh
# deploy and get peer id
ipfs add -r public/ | grep -e public$ | awk '{print $2}' | xargs ipfs name publish | awk '{print $3}'
View error.html
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=yes">
<title>404 Not Found</title>
<style>
body{
background-color: #E6E6E6;
font-family: Helvetica, Arial, sans-serif;
View checksum.sh
openssl dgst -sha256 -binary file.js | openssl base64 -A