Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
[user] | |
email = [email protected] | |
name = Eric Zhang | |
[push] | |
default = upstream | |
[merge] | |
conflictstyle = diff3 | |
[color] | |
ui = auto | |
[alias] |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# Set default terminal | |
set -g default-terminal "screen-256color" | |
# Tell Tmux that outside terminal supports true color | |
set -ga terminal-overrides ",xterm-256color*:Tc" | |
# Enable mouse | |
set -g mouse on | |
# Allow xterm titles in terminal window, terminal scrolling with scrollbar, and setting overrides of C-Up, C-Down, C-Left, C-Right |

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
0 8 * * * $HOME/scripts/restart.sh | |
15 8 * * * $HOME/scripts/fullrender.sh |
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 | |
# Check for dependencies | |
if [ -z $(which git) ]; then | |
>&2 echo "Could not find Git." | |
exit 1 | |
fi | |
if [ -z $(which wget) ]; then | |
>&2 echo "Could not find wget." | |
exit 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
#include <cstdio> | |
#include <unistd.h> | |
#include <fcntl.h> | |
#include <sys/stat.h> | |
#include <sys/wait.h> | |
using namespace std; | |
int main() { | |
int fd = open("fd.txt", O_CREAT | O_WRONLY | O_TRUNC, 644); |
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 <bits/stdc++.h> | |
using namespace std; | |
#define MAX_STUDENTS 10000 | |
/* Minimum-Cost, Maximum-Flow solver using Successive Shortest Paths with Dijkstra and SPFA-SLF. | |
* Requirements: | |
* - Duplicate or antiparallel edges with different costs are allowed. | |
* - No negative cycles. | |
* Time Complexity: O(Ef lg V) average-case, O(VE + Ef lg V) worst-case with negative costs. |
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
\ProvidesPackage{ekzhang} | |
\usepackage{amsmath,amsfonts,amssymb,amsthm} | |
\usepackage{asymptote} | |
\usepackage{cancel} | |
\usepackage{color} | |
\usepackage[dvipsnames]{xcolor} | |
\usepackage{enumerate} | |
\usepackage[margin=1in]{geometry} | |
\usepackage{graphicx} |