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
#include <iostream> | |
#include <limits> | |
#include <memory> | |
#include <queue> | |
#include <vector> | |
using Pair = std::pair<int, int>; | |
struct Edge { | |
int first; |
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 discord | |
class GenericClient(discord.Client): | |
async def on_ready(self): | |
print('Logged on as ', self.user) | |
guild = self.get_guild(GUILD_ID) | |
if (guild == None): | |
return |
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
#include "functions.h" | |
const int32_t MAX = static_cast<int>(~uint32_t{} >> 1); | |
int colorPath(const std::vector<std::vector<int32_t>> &elevations, | |
std::vector<std::vector<int32_t>> &rgb, | |
int32_t color, const int32_t start) { | |
int32_t dist = 0, i = start; | |
auto get = [&](auto i, auto j, auto cur) -> int32_t { |
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
#include <iostream> | |
#include <vector> | |
#include <cstdlib> | |
#include <chrono> | |
using namespace std; | |
typedef vector<int> V; | |
typedef string M; | |
typedef int L; |
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 numpy as np | |
from numba import jit | |
from matplotlib import pyplot as plt, colors | |
from multiprocessing import Pool, freeze_support | |
WIDTH = 5000 | |
HEIGHT = 3000 | |
PROCESSES = 8 | |
x_div = WIDTH // 2 | |
y_div = HEIGHT // 16 |
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 ADD '+' | |
#define SUB '-' | |
#define MUL '*' | |
#define DIV '/' | |
#define MAX_FACTORS 5 | |
#define MAX_OP_DOUBLE 2 | |
#define DEBUG true | |
#ifdef NULL | |
#undef NULL |
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
l = 750000000 | |
pi = 3.14159265358979 | |
f_1 = () -> | |
t = 0 | |
c = 0 | |
for x in [1...l] by 2 | |
if c % 2 == 0 | |
t += 1 / x | |
else |
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
//META{"name":"Coffee","description":"I just want some coffee.","author":"Brandon_Nguyen","version":"1.17"}*// | |
.guilds-wrapper .guilds .guild.selected:before, | |
.badge { | |
background-color: #EB5937; | |
} | |
.footer .label { | |
color: #EB5937 !important; | |
} | |
.edit-container-inner .channel-textarea .channel-textarea-inner { | |
border-color: #EB5937 !important; |
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
// Networking | |
rate "786432" | |
cl_cmdrate "128" | |
cl_updaterate "128" | |
cl_interp_ratio "1" | |
cl_lagcompensation "1" | |
sensitivity "0.3375" // 540 EDPI => 1.35 @ 400 DPI; 0.3375 @ 1600 DPI | |
zoom_sensitivity_ratio_mouse "1.0" | |
m_rawinput "1" |
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
var Discord = require('discord.js'); | |
var Winston = require('winston'); | |
var fs = require('fs'); | |
var request = require('request'); | |
var defaultDir = "C:\\Users\\Brandon\\Desktop\\DiscordJSBot\\"; | |
var bot = new Discord.Client(); | |
var logger = new (Winston.Logger)({ | |
transports: [ | |
new (Winston.transports.Console)({}), |