Skip to content

Instantly share code, notes, and snippets.

View iowar's full-sized avatar

OK iowar

  • The Terminal
View GitHub Profile
@iowar
iowar / solve_deck_order.cpp
Created February 26, 2024 23:19 — forked from dcclyde/solve_deck_order.cpp
C++ code as part of my answer on Math Stack Exchange at https://math.stackexchange.com/a/4594367/1127272. Compile and run with: `g++ --std=c++20 -O3 -DDCCLYDE_LOCAL solve_deck_order.cpp && ./a.out`
#pragma region
#if defined(DCCLYDE_LOCAL) && __has_include("/home/dcclyde/puzzles/code/templates/superheader.h")
#include "/home/dcclyde/puzzles/code/templates/superheader.h"
#else
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#endif
#ifdef _OPENMP
#include <omp.h>
@iowar
iowar / vim.md
Created February 26, 2024 23:18 — forked from lirenlin/vim.md
build vim with clipboard support

##Install dependency

sudo apt-get install libncurses5-dev libgnome2-dev libgnomeui-dev   libgtk2.0-dev libatk1.0-dev libbonoboui2-dev   libcairo2-dev libx11-dev libxpm-dev libxt-dev

##Configure ./configure --with-features=huge --enable-gui=gnome2 ----enable-pythoninterp=yes

OR