Skip to content

Instantly share code, notes, and snippets.

View kosiakMD's full-sized avatar
🎯
Focusing

Anton Kosiak kosiakMD

🎯
Focusing
View GitHub Profile
{"equipments":[{"quantity":1,"equipmentName":"iPad","serialNumber":"Sad"},{"quantity":2,"equipmentName":"phone","serialNumber":"Zach"}],"questions":[{"order":1,"question":"Are there rats in the warehouse?","comment":"","answer":"Yes"},{"order":2,"question":"Is the temperature of the warehouse right?","comment":"","answer":"No"}],"inventoryItems":[{"productId":"11223344","productName":"ARIXTRA INJ PF SYRINGE7.5MG/.6ML SPL 2S","lotNumber":"LtN_0075218B-DE81-439B-8FBE-8E82A706F16D","packageQuantity":1,"eachQuantity":0,"quantity":64}],"transactions":[{"id":null,"trackingNumber":"empty","transferInEmployeeId":"empty","transferInLastName":"empty","transferInFirstName":"empty","address1":"empty","address2":"empty","city":"empty","state":"NA","zip":"empty","territory":"empty","confirmationNumber":"empty","transactionType":"empty","warehouseName":"empty","authorizationNumber":"empty","inventories":[{"productId":"06de10f0-aeb2-4bad-8822-fb92239c43b2","productName":"ARIXTRA INJ PF SYRINGE7.5MG/.6ML SPL 2S","lotNumber":"
@kosiakMD
kosiakMD / umd-script-boilerplate.js
Created November 1, 2016 14:46 — forked from cferdinandi/umd-script-boilerplate.js
A simple boilerplate for UMD JS modules.
(function (root, factory) {
if ( typeof define === 'function' && define.amd ) {
define([], factory(root));
} else if ( typeof exports === 'object' ) {
module.exports = factory(root);
} else {
root.myPlugin = factory(root);
}
})(typeof global !== "undefined" ? global : this.window || this.global, function (root) {
@kosiakMD
kosiakMD / memorySizeOfObject.js
Created March 11, 2016 14:26
calculate memory size of javascript object, it is not a accurate value!
function memorySizeOf(obj) {
var bytes = 0;
function sizeOf(obj) {
if(obj !== null && obj !== undefined) {
switch(typeof obj) {
case 'number':
bytes += 8;
break;
case 'string':