Skip to content

Instantly share code, notes, and snippets.

View mjkoo's full-sized avatar

Maxwell Koo mjkoo

View GitHub Profile
@mjkoo
mjkoo / eui_install.py
Last active August 8, 2020 09:04
Install Civ 5 Enhanced UI Mod on Linux
#!/usr/bin/env python2
# NOTE: Use of this script is deprecated, instead I recommend you use
#
# $ unzip -LL eui_v1_20.zip -d "$HOME/.steam/steam/SteamApps/common/Sid Meier's Civilization V/steamassets/assets/dlc"
#
# to make use of the unzip command's built-in conversion to lowercase filenames
# (thanks reddit user /u/xkero and github user Mfdas)
import os
@mjkoo
mjkoo / piday.cpp
Last active March 4, 2017 04:26
Estimate pi
#include <cmath>
#include <iomanip>
#include <iostream>
#include <random>
struct point {
double x, y;
inline double distance_squared() const
{