Skip to content

Instantly share code, notes, and snippets.

View sivaraj-v's full-sized avatar
😎

Sivaraj sivaraj-v

😎
View GitHub Profile
@sivaraj-v
sivaraj-v / frontendDevlopmentBookmarks.md
Created May 24, 2021 10:58 — forked from dypsilon/frontendDevlopmentBookmarks.md
A badass list of frontend development resources I collected over time.
@sivaraj-v
sivaraj-v / WAXP.js
Created April 2, 2021 16:14 — forked from shaneapen/WAXP.js
WhatsApp Group Contacts Exporter
WAXP = (function(){
MutationObserver = window.MutationObserver || window.WebKitMutationObserver;
var SCROLL_INTERVAL = 600,
SCROLL_INCREMENT = 450,
AUTO_SCROLL = true,
NAME_PREFIX = '',
UNKNOWN_CONTACTS_ONLY = false,
MEMBERS_QUEUE = {},
const SampleData = require('SampleData);
const { Indicator } = require('../../study/index');
const { Supertrend } = require('../../study/Supertrend');
const newStudySuperTrend = new Indicator(new Supertrend());
const calculateSupertrend = newStudySuperTrend.calculate(ATR_DATA, { period: 7, multiplier: 3 });
console.log(calculateSupertrend);
Output:
[
@sivaraj-v
sivaraj-v / atr_code.js
Created May 28, 2019 11:41
ATR-Calculation-Code
const SampleData = require('SampleData);
const { Indicator } = require('../../study/index');
const { ATR } = require('../../study/ATR');
const newStudyATR = new Indicator(new ATR());
console.log(newStudyATR.calculate(ATR_DATA));
Output
 [ 
 TrueRange: 26.75, 
 SumTrueRange: 125.5999999999998,
@sivaraj-v
sivaraj-v / atr_sample_data.js
Created May 28, 2019 07:46
Average True Range (ATR) Sample data
module.exports = [
['2018-09-05T00:00:00+0530', 741.2, 748.95, 733.95, 740.9, 771705],
['2018-09-06T00:00:00+0530', 743, 758.9, 738, 743.9, 589823],
['2018-09-07T00:00:00+0530', 743, 764.85, 739, 760.6, 669449],
['2018-09-10T00:00:00+0530', 759.65, 763, 745.1, 747, 366378],
['2018-09-11T00:00:00+0530', 745.3, 749.05, 735, 738.1, 565374],
['2018-09-12T00:00:00+0530', 734, 751.25, 724.75, 748.25, 304520],
['2018-09-14T00:00:00+0530', 751, 756.4, 742.35, 746.7, 376884],
['2018-09-17T00:00:00+0530', 746.5, 762.5, 740, 751, 454647],
['2018-09-18T00:00:00+0530', 751.4, 752.65, 733.5, 741.15, 402422],
@sivaraj-v
sivaraj-v / package.json
Created March 22, 2018 14:39
package.json
{
"name": "projectwebpack",
"version": "1.0.0",
"description": "",
"main": "webpack.config.js",
"scripts": {
"build": "webpack --mode production"
},
"repository": {
"type": "git",
@sivaraj-v
sivaraj-v / .babelrc
Created March 22, 2018 13:17
babelrc basic configuration
{
"presets": [
[
"@babel/preset-env",
{
"targets": {
"node": "6.10",
"esmodules": true
}
}
@sivaraj-v
sivaraj-v / webpack.config.js
Created March 22, 2018 13:15
Webpack configuration file
const path = require("path");
const webpack = require("webpack");
const webpack_rules = [];
const webpackOption = {
entry: "./app.js",
output: {
path: path.resolve(__dirname, "dist"),
filename: "bundle.js",
},
module: {
@sivaraj-v
sivaraj-v / app.js
Created March 22, 2018 09:06
ES6 javascript file
let { x, y, ...z } = { x: 1, y: 2, a: 3, b: 4 };
console.log(x); // 1
console.log(y); // 2
console.log(z); // { a: 3, b: 4 }
[5, 6].map(n => console.log(n));
@sivaraj-v
sivaraj-v / index.html
Last active March 22, 2018 13:18
Webpack index.html basic
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<script src="app.js"></script>
</head>
<body>
<h1>Webpack ES6 - Babel and Transpilers </h1>
</body>
</html>