diff --git a/test.py b/test.py index 5fb2bcfcc749e737e38bb731a0710952f1982521..dbf1725c24590404b7a17dff7aae255043f5bb9d 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 0000000000000000000000000000000000000000..3454b692fd5cea443ccea95fbd2e702d113e29cd --- /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 0000000000000000000000000000000000000000..c312635294e289cac9def6a95230ff55012a3d26 --- /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 72ab286d1d22c68ebde4e9438ce7404f1f71e3db..096a01b075e4feb2b38c67044e57d4049fa08da3 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