From 9c05b14fa41b7af6d0ef697973b6420a3a4d5144 Mon Sep 17 00:00:00 2001 From: Recolic Keghart <root@recolic.net> Date: Sun, 30 Sep 2018 12:54:49 +0800 Subject: [PATCH] ed --- test.py | 3 ++- tmp/jw.py | 20 ++++++++++++++++++++ tmp/jw2.py | 14 ++++++++++++++ virtualtype.py | 2 ++ 4 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 tmp/jw.py create mode 100644 tmp/jw2.py diff --git a/test.py b/test.py index 5fb2bcf..dbf1725 100644 --- a/test.py +++ b/test.py @@ -5,7 +5,8 @@ # #quickmap.GetMap(xrc, yrc, line=True, maxXPower=16, inverseK=True) # -#import virtualtype +import virtualtype +virtualtype._type('knY58btMJ8MU1J9k') #virtualtype.virtual_type_array([99.78,8.26,99.82,9.86,99.72,8.4,99.7,9.9,99.72,8.42,99.72,9.88,99.68,8.34,99.72,9.74,99.7,8.2,99.86,9.82]) #virtualtype.virtual_type_array([42.5,42.2,41.9,41.5,41.2,40.9,40.5,40.3,40.0,39.7]) diff --git a/tmp/jw.py b/tmp/jw.py new file mode 100644 index 0000000..3454b69 --- /dev/null +++ b/tmp/jw.py @@ -0,0 +1,20 @@ +import quickmap +import math, sys +with open(sys.argv[1]) as f: + cont = f.read() + +xrc = [] +yrc = [] +for line in cont.split('\n'): + if line == '': + continue + x, y = line.split(' ') + xrc.append(float(x)+2) + yrc.append((float(y))) + #yrc.append(math.log2(float(y))) + +ylog = [(yrc[int(index/2)]+yrc[int((index+1)/2)])/2/ele for index, ele in enumerate(yrc)] +ylog = [math.log2(i) for i in ylog] +#ylog=yrc +quickmap.GetMap(xrc,ylog,smoothLine=False) +#quickmap.GetMap(xrc,ylog,polyLine=True,poly_inverseK=True,poly_maxXPower=10) diff --git a/tmp/jw2.py b/tmp/jw2.py new file mode 100644 index 0000000..c312635 --- /dev/null +++ b/tmp/jw2.py @@ -0,0 +1,14 @@ +import quickmap +import sys + +with open(sys.argv[1]) as f: + cont = f.read() + +barr = [] +for line in cont.split('\n'): + if line == '': + continue + barr.append(float(line)) + +aarr = [i for i in range(len(barr))] +quickmap.GetMap(aarr, barr) diff --git a/virtualtype.py b/virtualtype.py index 72ab286..096a01b 100755 --- a/virtualtype.py +++ b/virtualtype.py @@ -1,6 +1,8 @@ #!/usr/bin/env python3 # Use this script with https://recolic.net/phy and https://recolic.net/phy2 # to avoid typing fucked numbers into page by hand. +# Fuck the chinese shits who prevent you from pasting password. +# E.x. Alibaba bitch from pykeyboard import PyKeyboard import time -- GitLab