- choose good tools.
- crossover 关于无限 15 天试用期, 把容器里的
.eval
文件删除就重新计时了. - playonlinux
- winetricks
- bare wine
- crossover 关于无限 15 天试用期, 把容器里的
- 函数库
- 原装先于内建
- d3dx11_43
- d3x9_43
- 原装先于内建
- dsound
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 __future__ import annotations | |
from dataclasses import dataclass | |
from typing import Callable, List | |
from operator import attrgetter, add, sub, mul, truediv | |
def adder(a: Connector, b: Connector, c: Connector): | |
return TernaryConstraint(a, b, c, add, sub, sub) | |
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
num2str = { | |
k: v.split("\n")[1:] | |
for k, v in { | |
1: """ | |
| | |
|""", | |
2: """ | |
_ | |
_| |
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 dataclasses import dataclass | |
from typing import Any, Optional, Sequence | |
@dataclass | |
class Mat: | |
row: int | |
col: int | |
data: Optional[Sequence[Sequence[Any]]] = None |
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
class _cout: | |
def __lshift__(self, x): | |
print(x, end="") | |
return self | |
class _cin: | |
def __rshift__(self, x): | |
globals()[x] = input() | |
return self |
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
''' | |
cut token, then use ast to traverse. | |
paiza | |
S007: データヒストグラム | |
''' | |
from collections import defaultdict | |
from dataclasses import dataclass | |
from functools import reduce |
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
#!/usr/bin/env python3 | |
# use pillow https://pillow.readthedocs.io/en/latest/reference/ImageGrab.html to copy a place of screen, get pillow object | |
# use tesseract to transform a picture into text | |
# use TextBlob to translate text | |
# use google translate to translate text | |
from time import sleep | |
from typing import Tuple |
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
#!/usr/bin/env python3 | |
from calendar import isleap | |
from datetime import datetime | |
from subprocess import Popen | |
NOW = datetime.now() | |
YEAR = NOW.year | |
FIRST_DAY = datetime(YEAR, 1, 1) | |
DAY_DIFF = (NOW - FIRST_DAY).days + 1 | |
DAY_COUNT = 366 if isleap(YEAR) else 365 |
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
""" | |
This mimic the behavior of clojure's Thread-end ->> | |
""" | |
from functools import reduce, wraps | |
from typing import Callable | |
def double_rightarrow_decorator(f: Callable): |