Last active 1695765657

celediel's Avatar Lilian Jónsdóttir revised this gist 1695765612. Go to revision

1 file changed, 4 insertions, 4 deletions

hello.py

@@ -2,12 +2,12 @@
2 2 # https://github.com/thomiceli/opengist
3 3
4 4
5 - def unmain(item):
6 - print("".join(chr(int(item[i * 8 : i * 8 + 8], 2)) for i in range(len(item) // 8)))
5 + def unmain(I):
6 + print("".join(chr(int(I[i * 8 : i * 8 + 8], 2)) for i in range(len(I) // 8)))
7 7
8 8
9 - def main(items):
10 - unmain("".join(str(x) for x in items))
9 + def main(Is):
10 + unmain("".join(str(I) for I in Is))
11 11
12 12
13 13 if __name__ == "__main__":

celediel revised this gist 1695763615. Go to revision

1 file changed, 201 insertions

hello.py(file created)

@@ -0,0 +1,201 @@
1 + # hello world from OpenGist on burning.moe
2 + # https://github.com/thomiceli/opengist
3 +
4 +
5 + def unmain(item):
6 + print("".join(chr(int(item[i * 8 : i * 8 + 8], 2)) for i in range(len(item) // 8)))
7 +
8 +
9 + def main(items):
10 + unmain("".join(str(x) for x in items))
11 +
12 +
13 + if __name__ == "__main__":
14 + main(
15 + [
16 + 0,
17 + 1,
18 + 1,
19 + 0,
20 + 1,
21 + 0,
22 + 0,
23 + 0,
24 + 0,
25 + 1,
26 + 1,
27 + 0,
28 + 0,
29 + 1,
30 + 0,
31 + 1,
32 + 0,
33 + 1,
34 + 1,
35 + 0,
36 + 1,
37 + 1,
38 + 0,
39 + 0,
40 + 0,
41 + 1,
42 + 1,
43 + 0,
44 + 1,
45 + 1,
46 + 0,
47 + 0,
48 + 0,
49 + 1,
50 + 1,
51 + 0,
52 + 1,
53 + 1,
54 + 1,
55 + 1,
56 + 0,
57 + 0,
58 + 1,
59 + 0,
60 + 0,
61 + 0,
62 + 0,
63 + 0,
64 + 0,
65 + 1,
66 + 1,
67 + 1,
68 + 0,
69 + 1,
70 + 1,
71 + 1,
72 + 0,
73 + 1,
74 + 1,
75 + 0,
76 + 1,
77 + 1,
78 + 1,
79 + 1,
80 + 0,
81 + 1,
82 + 1,
83 + 1,
84 + 0,
85 + 0,
86 + 1,
87 + 0,
88 + 0,
89 + 1,
90 + 1,
91 + 0,
92 + 1,
93 + 1,
94 + 0,
95 + 0,
96 + 0,
97 + 1,
98 + 1,
99 + 0,
100 + 0,
101 + 1,
102 + 0,
103 + 0,
104 + 0,
105 + 0,
106 + 1,
107 + 0,
108 + 1,
109 + 1,
110 + 0,
111 + 0,
112 + 0,
113 + 0,
114 + 1,
115 + 0,
116 + 0,
117 + 0,
118 + 0,
119 + 0,
120 + 0,
121 + 1,
122 + 1,
123 + 1,
124 + 1,
125 + 0,
126 + 0,
127 + 1,
128 + 0,
129 + 1,
130 + 1,
131 + 0,
132 + 0,
133 + 0,
134 + 0,
135 + 1,
136 + 0,
137 + 0,
138 + 1,
139 + 0,
140 + 0,
141 + 0,
142 + 0,
143 + 0,
144 + 0,
145 + 1,
146 + 1,
147 + 0,
148 + 0,
149 + 1,
150 + 0,
151 + 0,
152 + 0,
153 + 1,
154 + 1,
155 + 0,
156 + 1,
157 + 1,
158 + 1,
159 + 1,
160 + 0,
161 + 1,
162 + 1,
163 + 0,
164 + 1,
165 + 1,
166 + 1,
167 + 0,
168 + 0,
169 + 1,
170 + 1,
171 + 0,
172 + 1,
173 + 0,
174 + 1,
175 + 1,
176 + 0,
177 + 1,
178 + 1,
179 + 0,
180 + 0,
181 + 1,
182 + 0,
183 + 1,
184 + 0,
185 + 1,
186 + 1,
187 + 1,
188 + 1,
189 + 0,
190 + 0,
191 + 1,
192 + 0,
193 + 0,
194 + 1,
195 + 0,
196 + 0,
197 + 0,
198 + 0,
199 + 1,
200 + ]
201 + )
Newer Older