Frontend Development
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
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: | |
[ |
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, |
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], |
{ | |
"name": "projectwebpack", | |
"version": "1.0.0", | |
"description": "", | |
"main": "webpack.config.js", | |
"scripts": { | |
"build": "webpack --mode production" | |
}, | |
"repository": { | |
"type": "git", |
{ | |
"presets": [ | |
[ | |
"@babel/preset-env", | |
{ | |
"targets": { | |
"node": "6.10", | |
"esmodules": true | |
} | |
} |
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: { |
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)); |
<!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> |