This file contains hidden or 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
diff --git a/node_modules/tap/package.json b/node_modules/tap/package.json | |
index 0000000..2cb8e5e | |
--- a/node_modules/tap/package.json | |
+++ b/node_modules/tap/package.json | |
@@ -152,5 +152,6 @@ | |
"test-ignore": "/(^|/)cli-tests-[0-9]+/", | |
"check-coverage": true | |
}, | |
- "version": "14.10.7" | |
+ "version": "14.10.7", |
This file contains hidden or 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
#!/usr/bin/env node | |
const fs = require('fs'); | |
const { createInterface } = require('readline'); | |
const rl = createInterface(process.stdin); | |
const tempFile = `${__dirname}/eslint-temp.txt`; | |
(async () => { | |
let file = ''; |
This file contains hidden or 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 class IPv4 { | |
static from(input: string) { | |
const [, a, b, c, d] = /(\d+)\.(\d+)\.(\d+)\.(\d+)/.exec(input)!; | |
const address = ((Number(a) << 24) | (Number(b) << 16) | ((Number(c) << 8) | Number(d))) >>> 0; | |
console.log(address.toString()); | |
console.log(address.toString(2)); | |
console.log(address.toString(16)); |
This file contains hidden or 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 result = await fetch( | |
"https://raw.githubusercontent.com/rust-lang-nursery/rust-toolstate/master/history/linux.tsv", | |
); | |
const text = await result.text(); | |
const iterator = text.trimEnd().split("\n")[Symbol.iterator](); | |
iterator.next(); | |
for (const line of iterator) { |