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
{ | |
"socket.url": "wss://live-arena-d74c8s.habblet.city/", | |
"asset.url": "https://images.habblet.city/leet-asset-bundles", | |
"image.library.url": "https://images.habblet.city/c_images/", | |
"hof.furni.url": "https://images.habblet.city/library/hof_furni", | |
"images.url": "https://images.habblet.city/images", | |
"gamedata.url": "https://www.habblet.city/gamedata", | |
"sounds.url": "${asset.url}/sounds/%sample%.mp3", | |
"external.samples.url": "${hof.furni.url}/mp3/sound_machine_sample_%sample%.mp3", | |
"avatar.asset.url": "${asset.url}/libraries/figure/%libname%.nitro", |
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
/** | |
2 + 3 = 10 | |
8 + 4 = 96 | |
7 + 2 = 63 | |
6 + 5 = 66 | |
9 + 4 = ? | |
*/ | |
function resolveWithExpo(a: number, b: number): number { | |
return a * b + a ** 2; |
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
{ | |
"name": "Rogue Rewrite", | |
"description": "a rewrite of rogue", | |
"authors": [ | |
{ | |
"name": "marc", | |
"id": "610663056925523998" | |
} | |
], | |
"semanticColors": { |
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
/** | |
* @usage validarCNPJ(value) | |
* @param {string} value | |
* @returns boolean | |
* @author github.com/rfxct | |
*/ | |
function validarCNPJ (value) { | |
// Remove os caracteres de formatação, caso possua | |
const cnpj = value.replace(/[^\d]/g, '') |
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
/** | |
* @usage validarCPF(value) | |
* @param {string} value | |
* @returns boolean | |
* @author github.com/rfxct | |
*/ | |
function validarCPF (value) { | |
// Remove os caracteres de formatação, caso possua | |
const cpf = value.replace(/[^\d]/g, '') |
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 randomOut = ({ min, max }, arr) => { | |
const result = Math.floor(Math.random() * (max - min + 1)) + min | |
return arr.includes(result) ? randomOut({ min, max }, arr) : result | |
} | |
const randomMany = (interval, amount) => { | |
const available = interval.max < amount ? interval.max : amount | |
for (var generated = []; generated.length < available;) { | |
generated.push(randomOut(interval, generated)) |
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
/** | |
* @owner ONCode | |
* @author marc | |
* @title Último resultado do jogo do bicho | |
*/ | |
const { JSDOM } = require('jsdom') | |
const fetch = require('node-fetch') | |
const URL = 'https://www.ojogodobicho.com/deu_no_poste.htm' |
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 { APIMessage, Message } = require('discord.js') | |
/** | |
* @usage Message.quote([content], [options: { ...defaultOptions, messageID }]) | |
* @param {StringResolvable|APIMessage} content | |
* @param {MessageOptions|MessageAdditions} options | |
* @param {string} [options.messageID] - the message id that will be quoted | |
* @param {boolean} [options.mention] - whether the client should mention the author | |
* @returns void | |
*/ |