This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from typing import Optional | |
from pprint import pprint | |
# A Literal is P or ¬P | |
class Literal: | |
@classmethod | |
def from_string(cls, s: str) -> 'Literal': | |
if s.startswith('-'): | |
return Literal(s[1:], True) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import sys | |
import itertools | |
import collections | |
import subprocess | |
import random | |
import bisect | |
from math import * | |
from fractions import Fraction | |
from pathlib import Path |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#compdef bat | |
local context state state_descr line | |
typeset -A opt_args | |
(( $+functions[_cache_subcommand] )) || | |
_cache_subcommand() { | |
local -a args | |
args=( | |
'(-b --build -c --clear)'{-b,--build}'[Initialize or update the syntax/theme cache]' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body | |
{ | |
margin-top: 1px; | |
margin-right: 3px; | |
margin-left: 2px; | |
margin-bottom: 3px; | |
background: #201F1F; | |
color: white; | |
font-family: Bookerly, Segoe UI, Palatino Linotype, Arial Unicode MS; | |
} |