Skip to content

Instantly share code, notes, and snippets.

server {
listen 80;
server_name localhost;
charset utf-8;
# dev server testing
#proxy_pass http://localhost:4200/;
root /Users/jasonwalsh/development/angularn-example/dist;
# production hosting of built assets
node -e "console.log(require('crypto').randomBytes(32).toString('hex'));"
import elliptic from 'elliptic'
// console.log(elliptic)
import wallet from './wallet.json'
// console.log(wallet)
const EC = elliptic.ec;
let ec = new EC('secp256k1');
// console.log(ec)
const privkey = wallet.data_privkey
(function (d) {
var js, s = d.getElementsByTagName('script')[0];
js = d.createElement('script');
js.src = 'http://p.wal.sh/pollution/pollution.js';
s.parentNode.insertBefore(js, s);
})(window.document)

Keybase proof

I hereby claim:

  • I am jwalsh on github.
  • I am jwalsh (https://keybase.io/jwalsh) on keybase.
  • I have a public key whose fingerprint is F191 C2A1 D2CC 532E 5A91 F0AB 253A 92D5 6A47 4282

To claim this, I am signing this object:

// Setup
// Babel is required for this example with the presets for each step in
// the review
// Look at the transformation and support presets
// Review the specific changes and transpiler options from 5.1
// See the full specification in ECMA-262
/**
ECMAScript 2016 says that the "use strict" directive cannot be used
in the body of a function whose parameters either have default
values, use destructuring, or a rest parameter.
git config --global alias.conflicts '!git ls-files -u | cut -f 2 | sort -u'
@jwalsh
jwalsh / .eslintrc
Created September 6, 2016 20:22 — forked from cletusw/.eslintrc
ESLint Reset - A starter .eslintrc file that resets all rules to off and includes a description of what each rule does. From here, enable the rules that you care about by changing the 0 to a 1 or 2. 1 means warning (will not affect exit code) and 2 means error (will affect exit code).
{
// http://eslint.org/docs/rules/
"ecmaFeatures": {
"binaryLiterals": false, // enable binary literals
"blockBindings": false, // enable let and const (aka block bindings)
"defaultParams": false, // enable default function parameters
"forOf": false, // enable for-of loops
"generators": false, // enable generators
"objectLiteralComputedProperties": false, // enable computed object literal property names
var distribution = (words) => {
return words
.reduce((p, c) => {
p['#' + c] = p['#' + c] ? ++p['#' + c] : 1;
return p;
}, {})
};
var frequency = (word, distribution) => {
return distribution['#' + word];
{
"0": {
"data": [
{
"entry_type": "ENDING_BALANCE",
"amount": 126.45,
"description": "Ending Balance",
"timestamp": "2016-05-01"
},
{