Skip to content

Instantly share code, notes, and snippets.

View bportnoy's full-sized avatar

Bradley Portnoy bportnoy

View GitHub Profile
@bportnoy
bportnoy / JSON Object Equality.js
Last active August 29, 2015 14:27 — forked from gjcourt/JSON Object Equality.js
test if two JSON objects are equivalent
/**
* not so simple check for object equality
*/
var equal = function(a, b) {
function check(a, b) {
for (var attr in a) {
if (a.hasOwnProperty(attr) && b.hasOwnProperty(attr)) {
if (a[attr] != b[attr]) {
switch (a[attr].constructor) {
case Object:
@bportnoy
bportnoy / genesis_public_key
Created February 22, 2018 21:28
Genesis Public Key
046fcbdb55dd8fa832edc7bc4a104ef7264903d7e307287bde6263d7e7a182068a9217ebe9d010ca4b2a17465b1b5ea36b826c76342ec413571bd0771146a81e03;dsernst