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 btnEl = document.getElementById("fetchButton"); | |
const userList = document.getElementById("show_list"); | |
const seriesInput = document.getElementById("series"); | |
// Here we can push new rate limit reset times | |
const rateLimitReset = new Rx.ReplaySubject(1); | |
// Countdowns derived from reset times | |
const resetTicker = rateLimitReset | |
.map(time => Math.ceil(time - Date.now() / 1000)) |
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 filePath = "whole-genome.json"; | |
const esprima = require("esprima"); | |
const fs = require("fs"); | |
const wholeGenome = fs.readFileSync(filePath, "utf8"); | |
console.time("whole-genome"); | |
console.time("tokenizer"); | |
const tokens = esprima.tokenize(wholeGenome, {loc: true}); | |
console.timeEnd("tokenizer"); |
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"; | |
class Cheese { | |
private state = "hard"; | |
public async melt() { | |
console.log("Melting..."); | |
return new Promise((resolve) => { | |
setTimeout(() => { | |
this.state = "melted"; |
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
System.config({ | |
"baseURL": "/", | |
"defaultJSExtensions": true, | |
"transpiler": "typescript", | |
"typescriptOptions": { | |
"emitDecoratorMetadata": true, | |
"experimentalDecorators": true, | |
"module": "commonjs" | |
}, | |
"paths": { |