Skip to content

Instantly share code, notes, and snippets.

@meneguite
meneguite / banks_BR.json
Created February 22, 2019 18:55 — forked from matheus-santos/banks_BR.json
Lista de bancos que operam no Brasil
[
{
"code": "001",
"name": "Banco do Brasil",
"short_name": "BB",
"jurisdiction": "Federal",
"website": "www.bb.com.br"
},
{
"code": "002",
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';
}
@meneguite
meneguite / get-osx-temperature-pipe.js
Last active February 21, 2021 01:38
get-osx-temperature
// 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;
#!/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 {