Skip to content

Instantly share code, notes, and snippets.

import os
import re
from subprocess import Popen, PIPE
def is_library(file):
if os.path.isdir(file) or os.path.islink(file):
return False
is_at_root_of_frameworks_dir = re.search("Frameworks/[^/]+$", file) is not None
#include <cstdio>
template<int n> struct confusing
{
static int q;
};
template<> struct confusing<1>
{
template<int n>
struct q
{