This file contains 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
import got from 'got'; | |
import { JSDOM } from 'jsdom'; | |
import chalk from 'chalk'; | |
import table from 'chalk-table'; | |
import { usernames, problems } from './toFetch.js'; | |
const frames = [ | |
'⠋', | |
'⠙', |
This file contains 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
# Disclaimer: I will not be responsible if you get eye cancer from this | |
format = """ | |
[╭──[](#9A348E)[$username](bg:#9A348E)\ | |
[](bg:#DA627D fg:#9A348E)[㉿](bold bg:#DA627D fg:#ffffff)\ | |
[](fg:#DA627D bg:#FCA17D)[$hostname](bold fg:#ffffff bg:#FCA17D)\ | |
[](fg:#FCA17D bg:#0059ff)[@](bold fg:#ffffff bg:#0059ff)\ | |
[](fg:#0059ff bg:#ff8ff8)[$localip](bold fg:#ffffff bg:#ff8ff8)\ | |
[](fg:#ff8ff8 bg:#10c902)[$battery](bold fg:#ffffff bg:#10c902)\ | |
[](fg:#10c902 bg:#ff8800)[$cmd_duration](bold fg:#ffffff bg:#ff8800)\ |
This file contains 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
// install the required dependencies first: | |
// npm i common-tags axios jsom consola | |
// and finally run the program | |
// node find.js | |
// NOTE: This is ESM | |
import axios from 'axios'; | |
import { stripIndents } from 'common-tags'; | |
import { JSDOM } from 'jsdom'; | |
import console from 'consola'; |
This file contains 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
#define l long | |
#define d double | |
#define str string | |
#define ll l l | |
#define ull unsigned ll | |
#define endl "\n" | |
#define forx(y) for (ll x = 0; x < y; x++) | |
#define in(x) cin >> x; | |
#define outln(x) cout << x << endl; | |
#define out(x) cout << x << " "; |
This file contains 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
{"list":[{"name":"M9","cal":"9×19mm","dmg":"35-10","cap":"15+1 / 105","rpm":"780","multi":"1.50/1.10","desc":"A 9mm Italian pistol. One of the first 'wonder nines'. High capacity with deep reserves, light recoil, and high velocity. ","r":"40-80","rank":"0"},{"name":"GLOCK 17 (G17)","cal":"9×19mm","dmg":"34-10","cap":"17+1/102","rpm":"780","r":"40-90","multi":"1.50/1.10","desc":"A 9mm Austrian pistol renowned for its simplicity and ruggedness. Compared to the M9, it has a higher capacity, but less muzzle velocity.","rank":"0"},{"name":"M1911","cal":".45 ACP","dmg":"48-29","cap":"8+1/56","rpm":"720","r":"55-90","multi":"1.40/1.15","desc":"A classic American pistol brought into the modern age. Very high damage up close, with poor velocity and small magazine size.","rank":"8"},{"name":"DESERT EAGLE (DEAGLE) L5","cal":".44 MAGNUM","dmg":"56-32","cap":"8+1/40","rpm":"400","r":"50-80","multi":"2.00/ 1.30","desc":"A modern version of the iconic Israeli-American pistol. This specific model has been lightened as well |