-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathzero_arguments.py
More file actions
157 lines (154 loc) · 2.43 KB
/
Copy pathzero_arguments.py
File metadata and controls
157 lines (154 loc) · 2.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
import math
import datetime, time
import random
import string
UNITTEST = False
def set_unittest():
global UNITTEST
UNITTEST = True
def push_16(arg):
yield 16
def push_32(arg):
yield 32
def push_64(arg):
yield 64
def push_128(arg):
yield 128
def push_256(arg):
yield 256
def push_512(arg):
yield 512
def push_1024(arg):
yield 1024
def push_2048(arg):
yield 2048
def push_4096(arg):
yield 4096
def push_10(arg):
yield 10
def push_100(arg):
yield 100
def push_1000(arg):
yield 1000
def push_10000(arg):
yield 10000
def push_100000(arg):
yield 100000
def push_1000000(arg):
yield 1000000
def push_10000000(arg):
yield 10000000
def push_100000000(arg):
yield 100000000
def push_0(arg):
yield 0
def push_1(arg):
yield 1
def push_2(arg):
yield 2
def push_3(arg):
yield 3
def push_4(arg):
yield 4
def push_5(arg):
yield 5
def push_6(arg):
yield 6
def push_7(arg):
yield 7
def push_8(arg):
yield 8
def push_9(arg):
yield 9
def push_neg1(arg):
yield -1
def push_neg2(arg):
yield -2
def push_neg3(arg):
yield -3
def push_e(arg):
yield math.e
def push_unixtime(arg):
if UNITTEST:
yield 1500000000000
else:
now = datetime.datetime.now()
yield int(time.mktime(now.timetuple())*1e3 + now.microsecond//1e3)
def push_random_int(arg):
yield random.randint(-2**31, 2**31-1)
def push_random_float(arg):
yield random.random()
def push_asterisk_yield(arg):
yield "*"
def push_1_array(arg):
yield [1]
def push_0_array(arg):
yield [0]
def push_60(arg):
yield 60
def push_3600(arg):
yield 3600
def push_86400(arg):
yield 86400
def push_pi(arg):
yield math.pi
def push_tau(arg):
yield 2*math.pi
def push_space(arg):
yield " "
def push_11(arg):
yield 11
def push_12(arg):
yield 12
def push_13(arg):
yield 13
def push_14(arg):
yield 14
def push_15(arg):
yield 15
def push_17(arg):
yield 17
def push_18(arg):
yield 18
def push_19(arg):
yield 19
def push_20(arg):
yield 20
def push_21(arg):
yield 21
def push_22(arg):
yield 22
def push_23(arg):
yield 23
def push_24(arg):
yield 24
def push_25(arg):
yield 25
def push_26(arg):
yield 26
def push_27(arg):
yield 27
def push_28(arg):
yield 28
def push_29(arg):
yield 29
def push_30(arg):
yield 30
def push_31(arg):
yield 31
def push_33(arg):
yield 33
def push_34(arg):
yield 34
def push_35(arg):
yield 35
def push_36(arg):
yield 36
def push_37(arg):
yield 37
def push_38(arg):
yield 38
def golden_ratio_yield(arg):
yield (1+math.sqrt(5))/2
def alphabet_yield(arg):
yield string.ascii_lowercase