This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.expandable-content-collapsed .expandable-content-wrapper { | |
display: none; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
//Array.prototype.map | |
function multiplyBy ( multiplier ) { | |
return function ( value ) { | |
return value * multiplier; | |
}; | |
} | |
var array = [1, 2, 3, 4, 2]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const gulp = require('gulp'); | |
const nunjucksRender = require('gulp-nunjucks-render'); | |
const gulpGrayMatter = require('gulp-gray-matter'); | |
const debug = require('gulp-debug'); | |
const markdown = require('gulp-markdown'); | |
const data = require('gulp-data'); | |
const through = require('through2'); | |
const fs = require('fs'); | |
const path = require('path'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export type BigDecimalCoersable = BigDecimal | string | number | bigint | undefined; | |
export class BigDecimal { | |
// Configuration: constants | |
public static decimalPrecision = 8; // number of decimals on all instances | |
public static isRounded = true; // numbers are truncated (false) or rounded (true) | |
protected static shift = BigInt('1' + '0'.repeat(BigDecimal.decimalPrecision)); // derived constant |