Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python3
import json
import subprocess
import sys
import os
def is_pch_entry(entry: dict) -> bool:
file = entry.get("file", "")
command = entry.get("command", "") or " ".join(entry.get("arguments", []))
@arktur04
arktur04 / rbtree.h
Created June 25, 2021 21:43 — forked from m-mizutani/rbtree.h
Red-Black Tree template in C++
#ifndef __RBTREE_H__
#define __RBTREE_H__
#include <assert.h>
#include <string>
#ifdef DEBUG
#include "debug.h"
#endif