Creation Date: June 2020
Status: in progress
My personal philosophy:
kind create cluster --name demo-cluster | |
kind get clusters | |
kubectl config get-contexts |
/** | |
* Calcula a pot锚ncia de um n煤mero bigInt | |
* O JS n茫o suporta n煤meros inteiros maiores que 2^53-1 | |
* e BigInts n茫o podem ser usados com o operador **, por isso | |
* essa fun莽茫o foi criada | |
*/ | |
function bigIntPower(base: number|bigint, exponent: number) { | |
let result = 1n | |
const bigBase = BigInt(base) | |
for (let i = 0; i < exponent; i++) { |
/** | |
* Calcula a pot锚ncia de um n煤mero bigInt | |
* O JS n茫o suporta n煤meros inteiros maiores que 2^53-1 | |
* e BigInts n茫o podem ser usados com o operador **, por isso | |
* essa fun莽茫o foi criada | |
*/ | |
function bigIntPower(base: number|bigint, exponent: number) { | |
let result = 1n | |
const bigBase = BigInt(base) | |
for (let i = 0; i < exponent; i++) { |
class Codename { | |
constructor (parser) { | |
this._parser = parser | |
return this | |
} | |
parse (version) { | |
this._version = version || '0.0.0' | |
const [major, minor, patch] = this._version.split('.') | |
this._major = (this._parser.major) ? (this._parser.major[major] || major) : major |
const { payloads } = require('./payloads.json') | |
const { Worker } = require('worker_threads') | |
const LEADING_ZEROES = 4 | |
const final = [] | |
let finishedWorkers = 0 | |
for (let payload of payloads) { | |
const worker = new Worker('./worker.js', { env: { LEADING_ZEROES } }) | |
worker.once('message', (message) => { |
apiVersion: apps/v1 | |
kind: Deployment | |
metadada: | |
name: vote-api | |
labels: | |
app: vote-api | |
spec: | |
selector: | |
matchLabels: | |
app: vote-api |
/** | |
* Esse c贸digo funciona usando o c贸digo de cada caractere digitado e realizando a modifica莽茫o para outro caractere de acordo com o n煤mero da chave | |
* Para entender melhor de onde vem os n煤meros de cada alfabeto, veja o c贸digo abaixo | |
*/ | |
// const alphabet = 'abcdefghijklmnpqrstuvwxyz' | |
// const capital = alphabet.toUpperCase() | |
// for (let i = 0; i < alphabet.length; i++) { | |
// console.log(alphabet[i], alphabet.charCodeAt(i)) | |
// // a 97 |
{ | |
"operation": "add_node", | |
"name": "harper-edge", | |
"host": "harper-edge", | |
"port": 62344, | |
"subscriptions": [ | |
{ | |
"channel": "default:sensor_data", | |
"subscribe": true, | |
"publish": false |
{ | |
"operation": "add_node", | |
"name": "harper-edge", | |
"host": "harper-edge", | |
"port": 62344, | |
"subscriptions": [] | |
} |