From 0690c8f56d198749a00927c3ef43853ccecae781 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Fri, 12 Apr 2019 22:03:43 +0200 Subject: [PATCH] Empty script --- web/empty_script.py | 73 +++------------------------------------------ 1 file changed, 4 insertions(+), 69 deletions(-) diff --git a/web/empty_script.py b/web/empty_script.py index 562703e..aaf5317 100644 --- a/web/empty_script.py +++ b/web/empty_script.py @@ -1,12 +1,13 @@ # This is an empty Python script. # 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. - # How about: + from math import sin, pi + 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)] print('\n'.join(wave)) @@ -1210,44 +1211,6 @@ print('\n'.join(wave)) # # # -# -# -# -# -# -# -# -# -# -# -# -# -# -# -# -# -# -# -# -# -# -# -# -# -# -# -# -# -# -# -# -# -# -# -# -# -# -# ## #### ####### @@ -3458,34 +3421,6 @@ print('\n'.join(wave)) ### ## # -# -# -# -# -# -# -# -# -# -# -# -# -# -# -# -# -# -# -# -# -# -# -# -# -# -# -# -# ## #### #######