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
| [ | |
| { | |
| "code": "001", | |
| "name": "Banco do Brasil", | |
| "short_name": "BB", | |
| "jurisdiction": "Federal", | |
| "website": "www.bb.com.br" | |
| }, | |
| { | |
| "code": "002", |
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
| interface Array<T> { | |
| fill(value: T): Array<T>; | |
| } | |
| const isMultiple = (n: number, m:number) => n % m === 0; | |
| const normalize = (n: number): string => { | |
| if (isMultiple(n, 35)) { | |
| return 'Nama Team'; | |
| } |
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
| // Run command: | |
| // sudo powermetrics --samplers smc | node get-osx-temperature-pipe.js | |
| process.stdin.resume(); | |
| process.stdin.setEncoding('utf8'); | |
| let cpuTemperature = 0; | |
| let gpuTemperature = 0; | |
| let fanRpm = 0; |
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 -S deno run --allow-net --allow-read | |
| // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. | |
| // This program serves files in the current directory over HTTP. | |
| // TODO Stream responses instead of reading them into memory. | |
| // TODO Add tests like these: | |
| // https://github.com/indexzero/http-server/blob/master/test/http-server-test.js | |
| import { extname, posix } from "../path/mod.ts"; | |
| import { |
OlderNewer