Browse Source

Empty script

pull/45/head
Jure Šorn 5 years ago
parent
commit
0690c8f56d
1 changed files with 4 additions and 69 deletions
  1. 73
      web/empty_script.py

73
web/empty_script.py

@ -1,12 +1,13 @@
# This is an empty Python script. # This is an empty Python script.
# It is here, so it tricks GitHub into thinking that this is a Python project. # It is here, so it tricks GitHub into thinking that this is a Python project.
# But because GitHub counts characters, we have to fill it with something. # But because GitHub counts characters, we have to fill it with something.
# How about: # How about:
from math import sin, pi from math import sin, pi
LEN = 40 LEN = 40
wave = ['#' * (1 + round(amp * (1+sin(i/resolution*2*pi))))
for resolution, amp in zip(range(10, 10+LEN, 2), range(2, 2+LEN, 2))
wave = ['#' * (1 + round(amp * (1+sin(i/resolution*2*pi))))
for resolution, amp in zip(range(10, 10+LEN, 2), range(2, 2+LEN, 2))
for i in range(resolution)] for i in range(resolution)]
print('\n'.join(wave)) print('\n'.join(wave))
@ -1210,44 +1211,6 @@ print('\n'.join(wave))
# #
# #
# #
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
## ##
#### ####
####### #######
@ -3458,34 +3421,6 @@ print('\n'.join(wave))
### ###
## ##
# #
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
## ##
#### ####
####### #######

Loading…
Cancel
Save