- 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
#!/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): |
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
""" | |
usage: python3 this_file.py expr | |
for example: | |
python3 this_file.py "tan(x)" | |
python3 this_file.py "^(x,-1)" | |
python3 this_file.py "+(x,-1)" | |
python3 this_file.py "+(-1,x,^(x,-1))" | |
""" | |
import json |
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
(* | |
written in 2018/8/29 | |
*) | |
Clear["Global`*"]; | |
(*f[x,y]=0,(x1,y1),g[x,y]=0,(x2,y2) 本代码略去了两条曲线正好相切于同一点处的切线*) | |
f[x_, y_] = (x)^2 + x y + y^2 - 1; | |
g[x_, y_] = (x - 4)^2 + x y + (y)^2 - 1;(*两个隐函数*) |
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 functools import wraps | |
from typing import Callable | |
def wrapper(f: Callable): | |
@wraps(f) | |
def inner(*args): | |
if len(args) == 1 and isinstance(args[0], Callable): | |
def curry(x): |
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
lei[n_Integer] := | |
Range[0, n] // | |
1 + 2 # & // | |
Partition[#, 2] & // | |
Map[1./Times @@ # &] // | |
Total // | |
#*8 &; | |
lei[10000] | |
lei2[n_Integer] := MapThread[#2 *1./#1 &, { |
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 enum import Enum, auto | |
from typing import Any, Callable | |
class msg(Enum): | |
FIRST = auto() | |
SECOND = auto() | |
def cons(x: Any, y: Any): |
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 typing import List | |
import requests | |
from lxml.etree import HTML | |
headers = { | |
"User-Agent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0", | |
} | |
params = ( |