Samuel Reed

CTO of BitMEX.com, NodeJS & Javascript Enthusiast

View My GitHub Profile

Recent Projects.

BitMEX - The Bitcoin Mercantile Exchange

BitMEX

var grossValue = backingOrder.getGrossValue();
var initialMarginBuy = backingOrder.getMarginRequirement(this.props.orderInputQuantity);
var initialMarginSell = backingOrder.getMarginRequirement(-this.props.orderInputQuantity);
var commissionDef = backingOrder.getUserCommission()[this.props.selectedInstrument.symbol];

Securesha.re

Securesha.re

...
var fileReader = new FileReaderSync();
var fileData = fileReader.readAsBinaryString(oEvent.data.file);

var encrypted = {};
encrypted.fileData = CryptoJS.Rabbit.encrypt(fileData, oEvent.data.passphrase).toString();
encrypted.fileName = CryptoJS.Rabbit.encrypt(oEvent.data.file.name, oEvent.data.passphrase).toString();
postMessage(encrypted);
...

Tixelated

Tixelated

Mongoose-Filter-Denormalize

UserSchema.plugin(filter, {
  readFilter: {
      "owner" : ['name', 'address', 'fb.id', 'fb.name', 'readOnlyField'],
      "public": ['name', 'fb.name']
  },
  writeFilter: {
      "owner" : ['name', 'address', 'fb.id', 'writeOnlyField']
  },
  defaultFilterRole: 'public',
  sanitize: true // Escape HTML in strings
});

UserSchema.plugin(denormalize, {defaults: ['address', 'transactions', 'tickets'], exclude: 'bankaccount'});

jQuery.scrollingShadows

Demo

$("#viewport").scrollingShadows(".longTextBox");