Skip to content

Instantly share code, notes, and snippets.

lucasomigli /
Last active Sep 11, 2019
Blockchain Example
import datetime
import hashlib
import random
class Block:
blockNo = 0
data = None
next = None
hash = None
nonce = 0
lucasomigli /
Last active Dec 23, 2017 — forked from remarkablemark/
Classes - ES5 vs ES6

JavaScript Classes - ES5 vs ES6

An example that shows the difference between creating a JavaScript class and subclass in ES5 and ES6.