This file contains 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 flask import current_app | |
from cryptography import x509 | |
from cryptography.exceptions import InvalidSignature | |
from cryptography.hazmat.backends import default_backend | |
from cryptography.hazmat.primitives import hashes | |
from cryptography.hazmat.primitives.asymmetric import rsa | |
from cryptography.hazmat.primitives.asymmetric import padding | |
import base64 | |
from urllib.parse import urlparse | |
import logging |
This file contains 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 escapeStringRegexp from "escape-string-regexp"; | |
import bs from "binary-search"; | |
// interface SearchFunc<T> { | |
// (needle?: string, maxResults: number): T[] | |
// } | |
// search = searcher(d => [d.name, d.age], [{name:"a", age:4}, ...]) | |
// search("4") -> {name:"a", age:4} | |
const searcher = <T>( |
This file contains 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
diff --git a/config.mk b/config.mk | |
index 81e3e47..8f2352a 100644 | |
--- a/config.mk | |
+++ b/config.mk | |
@@ -14,7 +14,7 @@ X11LIB = /usr/X11R6/lib | |
INCS = -I. -I/usr/include -I${X11INC} \ | |
`pkg-config --cflags fontconfig` \ | |
`pkg-config --cflags freetype2` | |
-LIBS = -L/usr/lib -lc -L${X11LIB} -lm -lrt -lX11 -lutil -lXft \ | |
+LIBS = -L/usr/lib -lc -L${X11LIB} -lm -lX11 -lutil -lXft \ |