Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
phy-exp
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
recolic-hust
phy-exp
Commits
9c05b14f
There was an error fetching the commit references. Please try again later.
Commit
9c05b14f
authored
6 years ago
by
Recolic Keghart
Browse files
Options
Downloads
Patches
Plain Diff
ed
parent
9c0855ce
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
test.py
+2
-1
2 additions, 1 deletion
test.py
tmp/jw.py
+20
-0
20 additions, 0 deletions
tmp/jw.py
tmp/jw2.py
+14
-0
14 additions, 0 deletions
tmp/jw2.py
virtualtype.py
+2
-0
2 additions, 0 deletions
virtualtype.py
with
38 additions
and
1 deletion
test.py
+
2
−
1
View file @
9c05b14f
...
...
@@ -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])
...
...
This diff is collapsed.
Click to expand it.
tmp/jw.py
0 → 100644
+
20
−
0
View file @
9c05b14f
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)
This diff is collapsed.
Click to expand it.
tmp/jw2.py
0 → 100644
+
14
−
0
View file @
9c05b14f
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
)
This diff is collapsed.
Click to expand it.
virtualtype.py
+
2
−
0
View file @
9c05b14f
#!/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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment