Skip to content

Instantly share code, notes, and snippets.

View kevinjycui's full-sized avatar
:octocat:
Working on it...

Kevin Junyang Cui kevinjycui

:octocat:
Working on it...
View GitHub Profile
@plasmatic1
plasmatic1 / macros.cpp
Last active September 2, 2019 15:33
Wesley Leung's Monstrous Code Template
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#include <ext/pb_ds/priority_queue.hpp>
using namespace std;using namespace std::placeholders;using namespace __gnu_pbds;
#define pb push_back
#define eb emplace_back
#define mp make_pair
#define f first
#define s second
@sighingnow
sighingnow / Makefile
Last active June 20, 2024 08:40
Detect operating system in Makefile.
# Detect operating system in Makefile.
# Author: He Tao
# Date: 2015-05-30
OSFLAG :=
ifeq ($(OS),Windows_NT)
OSFLAG += -D WIN32
ifeq ($(PROCESSOR_ARCHITECTURE),AMD64)
OSFLAG += -D AMD64
endif