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
char* process_cards(char deck[162]) { | |
char new_deck[54]; | |
bool _JA = false; | |
bool _JB = false; | |
for (unsigned char i = 0, j = 0; i < 164; j++) { | |
switch(deck[i]) { | |
case 'J': | |
switch (deck[(i*3)+1]) { | |
case 'A': | |
JA_pos = j; |
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 <algorithm> | |
#include <iostream> | |
#include <string> | |
#include <fstream> | |
#include <cctype> | |
#include <array> | |
#include <set> | |
void fixText(std::string& s) { | |
std::transform(s.begin(), s.end(), s.begin(), |
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
#!/bin/python | |
import plotly as pl | |
import plotly.graph_objs as go | |
from sys import argv | |
crx = [] # [0] | |
mut = [] # [1] | |
#gav= [] # [2] | |
avg = [] # [3] | |
"""gst = [] # [4] |
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
#!/bin/python | |
# Connell Paxton | |
import sys | |
input = open(sys.argv[1], "r") | |
row = 1 | |
max_lines = [] | |
lines = input.readlines() | |
chunk_sofar = 0 |
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
#!/bin/python | |
# Connell Paxton | |
import plotly as pl | |
import plotly.graph_objs as go | |
from sys import argv | |
from random import randint | |
crx = [] # [0] | |
mut = [] # [1] | |
gav= [] # [2] |
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
#!/bin/bash | |
# Connell Paxton | |
# Bash (Bourne Again SHell) doesn't support floating point math, so `bc` is used | |
float_scale=2 | |
function float_math() | |
{ | |
local stat=0 | |
local result=0.0 |
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
#!/bin/python | |
# Connell Paxton | |
from __future__ import print_function | |
from random import SystemRandom | |
rand = SystemRandom() | |
# utility func for data collection & error handling | |
import sys | |
def eprint(*args, **kwargs): |
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 <sstream> | |
#include <iostream> | |
#include <fstream> | |
#include <string> | |
#include <vector> | |
#include <map> | |
#include <utility> | |
/* | |
* Small, generalized utility for converting *-sv (*-seperated value) files to html tables | |
* C++11 or higher |
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
const readline = require('readline') | |
const Discord = require('discord.js'); | |
const client = new Discord.Client(); | |
var rl = readline.createInterface({ | |
input : process.stdin, | |
output : process.stdout, |
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 <deque> // if you use vectors instead you have to add them to the string in reverse order (no push_front()) | |
#include <string> | |
#include <iostream> // for testing types | |
#include <cxxabi.h> // ditto | |
#include <typeinfo> // also for testing types | |
char * Demangle(const char* Object) | |
{ | |
int status; | |
char * RealName; | |