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 { performance } = require("perf_hooks") | |
let running = new Map() | |
let data = new Map() | |
let timeNames = new Set() | |
console.timeSum = function _timeSum(name, callback) { | |
if (running.has(name)) { | |
return console.warn("console.timeSum: name already being recorded:", name) | |
} |
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 path = require(`path`) | |
const v8 = require(`v8`) | |
const fs = require(`fs`) | |
const contentful = require(`contentful`) | |
const _ = require(`lodash`) | |
const chalk = require(`chalk`) | |
const normalize = require(`./normalize`) | |
const { formatPluginOptionsForCLI } = require(`./plugin-options`) |
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
😶 11:04:20 (master) ~/gatsby/daneden.me $ gatsby build | |
success open and validate gatsby-configs - 0.154s | |
success load plugins - 0.603s | |
success onPreInit - 0.003s | |
success delete html and css files from previous builds - 0.011s | |
success initialize cache - 0.008s | |
success copy gatsby files - 0.021s | |
success onPreBootstrap - 0.016s | |
success createSchemaCustomization - 0.002s | |
warn code block or inline code language not specified in markdown. applying generic code block |
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
How do you mocha+babel test projectA as is? | |
Note that projectB also its own mocha+babel tests which run fine (but they do not need to run here). | |
// ..../somedir/projectA/src/index.js | |
import {x} from '../../projectB/src/index.js'; | |
... | |
// ..../somedir/projectB/src/index.js | |
import {x} from './tools.js'; |
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
import Solver from '../../src/solver'; | |
import { | |
domain__debug, | |
domain_arrToSmallest, | |
domain_createValue, | |
domain_divby, | |
domain_intersection, | |
domain_mul, | |
} from '../../src/domain'; | |
import domain_plus from '../../src/doms/domain_plus'; |
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
import Solver from '../../src/solver'; | |
import { | |
domain__debug, | |
domain_arrToSmallest, | |
domain_createValue, | |
domain_divby, | |
domain_intersection, | |
domain_mul, | |
} from '../../src/domain'; | |
import domain_plus from '../../src/doms/domain_plus'; |
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
import Solver from '../../src/solver'; | |
import { | |
domain__debug, | |
domain_arrToSmallest, | |
domain_createValue, | |
domain_divby, | |
domain_intersection, | |
domain_mul, | |
} from '../../src/domain'; | |
import domain_plus from '../../src/doms/domain_plus'; |
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
Statement -> ExpressionStatement -> Expression -> AssignmentExpression -> | |
AssignmentExpression -> ConditionalExpression -> LogicalORExpression -> LogicalANDExpression -> | |
BitwiseORExpression -> BitwiseXORExpression -> BitwiseANDExpression -> EqualityExpression -> | |
RelationalExpression -> ShiftExpression -> AdditiveExpression -> MultiplicativeExpression | |
MultiplicativeExpression -> MultiplicativeExpression MultiplicativeOperator ExponentiationExpression | |
MultiplicativeOperator -> one of * / % | |
// We can match * on MultiplicativeOperator, continue left and right up to PrimaryExpression | |
// proceeding to match the arrow on the right side | |
ExponentiationExpression -> UnaryExpression -> UpdateExpression -> LeftHandSideExpression -> NewExpression -> |
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
let Solver = (function(){ | |
// from: src/config.js | |
/** | |
* @returns {$config} | |
*/ | |
function config_create() { | |
let config = { |
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
var e = document.createElement('div'); | |
e.innerHTML = Array.from(document.body.querySelectorAll('a[href^="https://steamcommunity.com/market/confirmlisting/"]')) | |
.filter(e => e.href.indexOf('cancel') < 0) | |
.map(e => '<a href="'+e.href+'" onclick="p=this.parentNode;p.removeChild(this.nextElementSibling);p.removeChild(this);if(!p.children.length)p.parentNode.removeChild(p);">'+e.href+'</a><br>') | |
.join('\n'); | |
document.body.appendChild(e); | |
e.style.position = 'absolute'; | |
e.style.top = 0; | |
e.style.backgroundColor='white'; | |
e.style.border='1px solid black'; |
NewerOlder