Skip to content

Instantly share code, notes, and snippets.

View ajays97's full-sized avatar
🌎
Ethereum FTW! Period.

Ajay Srinivas ajays97

🌎
Ethereum FTW! Period.
View GitHub Profile
@ajays97
ajays97 / gist:d20f9a96d517900b72bba70a90b9a16d
Created October 13, 2022 11:17 — forked from carlos8f/gist:b09a734cf626ffb9bb3bcb1ca35f3db4
zenbot sim result, BTC-USD, 90 days, 195.45% profit, 61.06% over buy/hold
2017-05-11 16:00:00 1832.97 USD -0.06% 619.75 + 0.0447 null 1.91% 0.031060 BTC 2897.41 USD 195.43% +61.48%
{ days: 90,
profit_stop_enable_pct: 10,
profit_stop_pct: 1,
sell_rate: -0.006,
trend_ema: 36,
period: '1h',
strategy: 'trend_ema_rate',
sell_stop_pct: 4,
buy_stop_pct: 0,
@ajays97
ajays97 / memorySizeOfObject.js
Created January 21, 2020 10:27
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':