Skip to content

Instantly share code, notes, and snippets.

View actSoon's full-sized avatar

sasideep actSoon

View GitHub Profile
@actSoon
actSoon / Horseshoe-naming-convention.md
Last active February 10, 2022 15:21
Proposal for Naming conventions and Project structure

Proposal for Naming conventions and Project structure

Need:

Current project structure worked with initial advent of ES6 with class components and Redux containers. But with more and more features that poured into javascript and React(looking at you hooks and functional components), some of the components are redundant and add weight to day-to-day development. This doc aims to find some standard practices that we can follow and change previously implemented rules to make future development easy and fun.

Major Dependencies:

The major dependencies that influence Horseshoe app code structure:

  • React => react-native
@actSoon
actSoon / pleaseGenerateChartData.js
Last active October 12, 2021 20:45
Generates the data to use as cache
const fs = require('fs');
const chartStartDt = 1601524800; // 2020-10-01T04:00:00.000Z
const chartEndDt = 1617249600; // moment(chartStartDt * 1000).add(6, 'months').valueOf() / 1000;
function getRandomArbitrary(min, max) {
return Math.floor(Math.random() * (max - min) + min);
}
function addMoredays(StartTickTime, timePeriod, offset = 0) {