ufos 1.0.77 → 1.0.82
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CYCLE_OF_ETHICAL_BEHAVIOR +7 -0
- data/EXAMPLES_OF_OPERATION.html +6132 -0
- data/FOR_ARTIFICIAL_GENERAL_INTELLIGENCES +1 -6
- data/PP.rb +4 -4
- data/QUESTION +0 -2
- data/README.md +76 -79
- data/VERSION_NUMBER +1 -1
- data/bin/DISCOURSE_GENERATOR.exe +0 -0
- data/bin/abs +0 -0
- data/bin/add +0 -0
- data/bin/append +0 -0
- data/bin/args +0 -0
- data/bin/big_num +3 -0
- data/bin/chat_rb +6 -18
- data/bin/clock +0 -0
- data/bin/close +1 -1
- data/bin/copy +0 -0
- data/bin/delete +0 -0
- data/bin/div +0 -0
- data/bin/email +0 -13
- data/bin/emerald-browser +0 -0
- data/bin/exp +0 -0
- data/bin/find_housing +1 -1
- data/bin/floor +0 -0
- data/bin/gsub +0 -0
- data/bin/gsubip +0 -0
- data/bin/last_nth +0 -0
- data/bin/left_right +0 -0
- data/bin/lines +0 -0
- data/bin/mul +0 -0
- data/bin/nth +0 -0
- data/bin/nth_word +0 -0
- data/bin/prepend +0 -0
- data/bin/quot +7 -6
- data/bin/rgsub +0 -0
- data/bin/rip +0 -0
- data/bin/rnip +0 -0
- data/bin/selectlines +0 -0
- data/bin/sub +0 -0
- data/bin/swap +0 -0
- data/bin/trim +0 -0
- data/documentation/DISCOURSE_GENERATOR.exe +1 -1
- data/documentation/ULTIMATE_CHAT_APPLICATION.exe +1 -1
- data/documentation/abs +3 -11
- data/documentation/add +1 -5
- data/documentation/append +1 -3
- data/documentation/black +0 -1
- data/documentation/black_bold +0 -1
- data/documentation/black_bold_underline +0 -1
- data/documentation/black_underline +0 -1
- data/documentation/blue +0 -1
- data/documentation/blue_bold +0 -1
- data/documentation/blue_bold_underline +0 -1
- data/documentation/blue_underline +0 -1
- data/documentation/bold +1 -1
- data/documentation/chat_rb +1 -9
- data/documentation/clock +1 -16
- data/documentation/close +2 -2
- data/documentation/cyan +0 -1
- data/documentation/cyan_bold +0 -1
- data/documentation/cyan_bold_underline +0 -1
- data/documentation/cyan_underline +0 -1
- data/documentation/delete +2 -0
- data/documentation/dictate +1 -2
- data/documentation/div +1 -7
- data/documentation/email +2 -20
- data/documentation/emerald-browser +1 -2
- data/documentation/emeraldc +22 -47
- data/documentation/emoji +1 -4
- data/documentation/exp +1 -1
- data/documentation/find_housing +1 -1
- data/documentation/floor +1 -1
- data/documentation/g+ +1 -3
- data/documentation/google_speak +2 -2
- data/documentation/green +0 -1
- data/documentation/green_bold +0 -1
- data/documentation/green_bold_underline +0 -1
- data/documentation/green_underline +0 -1
- data/documentation/gsub +3 -7
- data/documentation/gsubip +1 -1
- data/documentation/last_nth +9 -1
- data/documentation/left_right.exe +1 -6
- data/documentation/lines +1 -3
- data/documentation/magenta +0 -1
- data/documentation/magenta_bold +0 -1
- data/documentation/magenta_bold_underline +0 -1
- data/documentation/magenta_underline +0 -1
- data/documentation/mul +2 -4
- data/documentation/nth +1 -1
- data/documentation/nth_word +8 -0
- data/documentation/open +4 -23
- data/documentation/page +43 -43
- data/documentation/prepend +2 -20
- data/documentation/processes +1 -5
- data/documentation/red +0 -1
- data/documentation/red_bold +0 -1
- data/documentation/red_bold_underline +0 -1
- data/documentation/red_underline +0 -1
- data/documentation/rgsub +8 -13
- data/documentation/rhyme +4 -11
- data/documentation/rip +1 -2
- data/documentation/rnip +1 -1
- data/documentation/selectlines +1 -7
- data/documentation/speakcat +2 -2
- data/documentation/squeeze +0 -1
- data/documentation/sub +2 -3
- data/documentation/swap +0 -2
- data/documentation/t +3 -12
- data/documentation/trim +2 -0
- data/documentation/underline +1 -1
- data/documentation/white +0 -1
- data/documentation/white_bold +0 -1
- data/documentation/white_bold_underline +0 -1
- data/documentation/white_underline +0 -1
- data/documentation/yellow +0 -1
- data/documentation/yellow_bold +0 -1
- data/documentation/yellow_bold_underline +0 -1
- data/documentation/yellow_underline +0 -1
- data/epistemology +334 -0
- data/gem_data/VERSION_NUMBER +1 -1
- data/index.html +117 -113
- data/non_compiled_programs/big_num +3 -0
- data/non_compiled_programs/chat_rb +6 -18
- data/non_compiled_programs/close +1 -1
- data/non_compiled_programs/copy +1 -0
- data/non_compiled_programs/email +0 -13
- data/non_compiled_programs/find_housing +1 -1
- data/non_compiled_programs/quot +7 -6
- data/other/ADDITIONAL_WAYS_PEOPLE_CAN_FIND_THIS +6 -1
- data/other/emerald-browser/Makefile +1 -1
- data/other/emerald-browser/OUT +6 -0
- data/other/emerald-browser/a.o +0 -0
- data/other/emerald-browser/qmake +0 -0
- data/other/rub +35 -0
- data/other/stories/1 +15 -0
- data/other/stories/10 +17 -0
- data/other/stories/100 +17 -0
- data/other/stories/1000 +17 -0
- data/other/stories/1001 +17 -0
- data/other/stories/101 +15 -0
- data/other/stories/102 +15 -0
- data/other/stories/103 +13 -0
- data/other/stories/104 +17 -0
- data/other/stories/105 +11 -0
- data/other/stories/106 +13 -0
- data/other/stories/107 +15 -0
- data/other/stories/108 +15 -0
- data/other/stories/109 +13 -0
- data/other/stories/11 +13 -0
- data/other/stories/110 +17 -0
- data/other/stories/111 +11 -0
- data/other/stories/112 +13 -0
- data/other/stories/113 +11 -0
- data/other/stories/114 +15 -0
- data/other/stories/115 +15 -0
- data/other/stories/116 +13 -0
- data/other/stories/117 +17 -0
- data/other/stories/118 +19 -0
- data/other/stories/119 +15 -0
- data/other/stories/12 +19 -0
- data/other/stories/120 +15 -0
- data/other/stories/121 +15 -0
- data/other/stories/122 +11 -0
- data/other/stories/123 +23 -0
- data/other/stories/124 +17 -0
- data/other/stories/125 +19 -0
- data/other/stories/126 +15 -0
- data/other/stories/127 +17 -0
- data/other/stories/128 +17 -0
- data/other/stories/129 +15 -0
- data/other/stories/13 +13 -0
- data/other/stories/130 +19 -0
- data/other/stories/131 +17 -0
- data/other/stories/132 +11 -0
- data/other/stories/133 +13 -0
- data/other/stories/134 +17 -0
- data/other/stories/135 +15 -0
- data/other/stories/136 +15 -0
- data/other/stories/137 +15 -0
- data/other/stories/138 +17 -0
- data/other/stories/139 +9 -0
- data/other/stories/14 +11 -0
- data/other/stories/140 +13 -0
- data/other/stories/141 +15 -0
- data/other/stories/142 +11 -0
- data/other/stories/143 +13 -0
- data/other/stories/144 +21 -0
- data/other/stories/145 +11 -0
- data/other/stories/146 +11 -0
- data/other/stories/147 +13 -0
- data/other/stories/148 +17 -0
- data/other/stories/149 +15 -0
- data/other/stories/15 +15 -0
- data/other/stories/150 +17 -0
- data/other/stories/151 +13 -0
- data/other/stories/152 +13 -0
- data/other/stories/153 +17 -0
- data/other/stories/154 +15 -0
- data/other/stories/155 +15 -0
- data/other/stories/156 +17 -0
- data/other/stories/157 +13 -0
- data/other/stories/158 +21 -0
- data/other/stories/159 +15 -0
- data/other/stories/16 +17 -0
- data/other/stories/160 +17 -0
- data/other/stories/161 +15 -0
- data/other/stories/162 +19 -0
- data/other/stories/163 +15 -0
- data/other/stories/164 +13 -0
- data/other/stories/165 +11 -0
- data/other/stories/166 +19 -0
- data/other/stories/167 +19 -0
- data/other/stories/168 +21 -0
- data/other/stories/169 +13 -0
- data/other/stories/17 +19 -0
- data/other/stories/170 +13 -0
- data/other/stories/171 +13 -0
- data/other/stories/172 +15 -0
- data/other/stories/173 +13 -0
- data/other/stories/174 +11 -0
- data/other/stories/175 +15 -0
- data/other/stories/176 +15 -0
- data/other/stories/177 +15 -0
- data/other/stories/178 +15 -0
- data/other/stories/179 +17 -0
- data/other/stories/18 +23 -0
- data/other/stories/180 +19 -0
- data/other/stories/181 +15 -0
- data/other/stories/182 +15 -0
- data/other/stories/183 +17 -0
- data/other/stories/184 +15 -0
- data/other/stories/185 +15 -0
- data/other/stories/186 +15 -0
- data/other/stories/187 +15 -0
- data/other/stories/188 +15 -0
- data/other/stories/189 +17 -0
- data/other/stories/19 +17 -0
- data/other/stories/190 +13 -0
- data/other/stories/191 +17 -0
- data/other/stories/192 +17 -0
- data/other/stories/193 +11 -0
- data/other/stories/194 +17 -0
- data/other/stories/195 +13 -0
- data/other/stories/196 +13 -0
- data/other/stories/197 +15 -0
- data/other/stories/198 +15 -0
- data/other/stories/199 +15 -0
- data/other/stories/2 +13 -0
- data/other/stories/20 +15 -0
- data/other/stories/200 +17 -0
- data/other/stories/201 +21 -0
- data/other/stories/202 +13 -0
- data/other/stories/203 +15 -0
- data/other/stories/204 +17 -0
- data/other/stories/205 +13 -0
- data/other/stories/206 +15 -0
- data/other/stories/207 +13 -0
- data/other/stories/208 +11 -0
- data/other/stories/209 +15 -0
- data/other/stories/21 +19 -0
- data/other/stories/210 +11 -0
- data/other/stories/211 +19 -0
- data/other/stories/212 +17 -0
- data/other/stories/213 +13 -0
- data/other/stories/214 +13 -0
- data/other/stories/215 +15 -0
- data/other/stories/216 +13 -0
- data/other/stories/217 +23 -0
- data/other/stories/218 +17 -0
- data/other/stories/219 +15 -0
- data/other/stories/22 +13 -0
- data/other/stories/220 +15 -0
- data/other/stories/221 +19 -0
- data/other/stories/222 +15 -0
- data/other/stories/223 +19 -0
- data/other/stories/224 +15 -0
- data/other/stories/225 +13 -0
- data/other/stories/226 +15 -0
- data/other/stories/227 +15 -0
- data/other/stories/228 +13 -0
- data/other/stories/229 +15 -0
- data/other/stories/23 +17 -0
- data/other/stories/230 +15 -0
- data/other/stories/231 +17 -0
- data/other/stories/232 +17 -0
- data/other/stories/233 +17 -0
- data/other/stories/234 +19 -0
- data/other/stories/235 +17 -0
- data/other/stories/236 +15 -0
- data/other/stories/237 +15 -0
- data/other/stories/238 +17 -0
- data/other/stories/239 +19 -0
- data/other/stories/24 +15 -0
- data/other/stories/240 +15 -0
- data/other/stories/241 +13 -0
- data/other/stories/242 +23 -0
- data/other/stories/243 +11 -0
- data/other/stories/244 +19 -0
- data/other/stories/245 +19 -0
- data/other/stories/246 +17 -0
- data/other/stories/247 +15 -0
- data/other/stories/248 +17 -0
- data/other/stories/249 +13 -0
- data/other/stories/25 +15 -0
- data/other/stories/250 +15 -0
- data/other/stories/251 +21 -0
- data/other/stories/252 +17 -0
- data/other/stories/253 +15 -0
- data/other/stories/254 +13 -0
- data/other/stories/255 +15 -0
- data/other/stories/256 +13 -0
- data/other/stories/257 +15 -0
- data/other/stories/258 +13 -0
- data/other/stories/259 +15 -0
- data/other/stories/26 +15 -0
- data/other/stories/260 +15 -0
- data/other/stories/261 +11 -0
- data/other/stories/262 +13 -0
- data/other/stories/263 +17 -0
- data/other/stories/264 +13 -0
- data/other/stories/265 +19 -0
- data/other/stories/266 +23 -0
- data/other/stories/267 +13 -0
- data/other/stories/268 +15 -0
- data/other/stories/269 +19 -0
- data/other/stories/27 +13 -0
- data/other/stories/270 +15 -0
- data/other/stories/271 +17 -0
- data/other/stories/272 +11 -0
- data/other/stories/273 +13 -0
- data/other/stories/274 +15 -0
- data/other/stories/275 +13 -0
- data/other/stories/276 +15 -0
- data/other/stories/277 +13 -0
- data/other/stories/278 +15 -0
- data/other/stories/279 +15 -0
- data/other/stories/28 +19 -0
- data/other/stories/280 +15 -0
- data/other/stories/281 +19 -0
- data/other/stories/282 +15 -0
- data/other/stories/283 +17 -0
- data/other/stories/284 +13 -0
- data/other/stories/285 +15 -0
- data/other/stories/286 +15 -0
- data/other/stories/287 +17 -0
- data/other/stories/288 +11 -0
- data/other/stories/289 +15 -0
- data/other/stories/29 +23 -0
- data/other/stories/290 +19 -0
- data/other/stories/291 +19 -0
- data/other/stories/292 +17 -0
- data/other/stories/293 +13 -0
- data/other/stories/294 +15 -0
- data/other/stories/295 +15 -0
- data/other/stories/296 +15 -0
- data/other/stories/297 +15 -0
- data/other/stories/298 +23 -0
- data/other/stories/299 +11 -0
- data/other/stories/3 +15 -0
- data/other/stories/30 +13 -0
- data/other/stories/300 +15 -0
- data/other/stories/301 +15 -0
- data/other/stories/302 +19 -0
- data/other/stories/303 +15 -0
- data/other/stories/304 +17 -0
- data/other/stories/305 +15 -0
- data/other/stories/306 +21 -0
- data/other/stories/307 +11 -0
- data/other/stories/308 +15 -0
- data/other/stories/309 +15 -0
- data/other/stories/31 +19 -0
- data/other/stories/310 +17 -0
- data/other/stories/311 +15 -0
- data/other/stories/312 +15 -0
- data/other/stories/313 +13 -0
- data/other/stories/314 +15 -0
- data/other/stories/315 +13 -0
- data/other/stories/316 +17 -0
- data/other/stories/317 +17 -0
- data/other/stories/318 +15 -0
- data/other/stories/319 +13 -0
- data/other/stories/32 +17 -0
- data/other/stories/320 +13 -0
- data/other/stories/321 +15 -0
- data/other/stories/322 +11 -0
- data/other/stories/323 +15 -0
- data/other/stories/324 +19 -0
- data/other/stories/325 +19 -0
- data/other/stories/326 +21 -0
- data/other/stories/327 +15 -0
- data/other/stories/328 +15 -0
- data/other/stories/329 +15 -0
- data/other/stories/33 +13 -0
- data/other/stories/330 +15 -0
- data/other/stories/331 +17 -0
- data/other/stories/332 +20 -0
- data/other/stories/333 +17 -0
- data/other/stories/334 +11 -0
- data/other/stories/335 +15 -0
- data/other/stories/336 +15 -0
- data/other/stories/337 +19 -0
- data/other/stories/338 +19 -0
- data/other/stories/339 +13 -0
- data/other/stories/34 +13 -0
- data/other/stories/340 +17 -0
- data/other/stories/341 +15 -0
- data/other/stories/342 +17 -0
- data/other/stories/343 +15 -0
- data/other/stories/344 +17 -0
- data/other/stories/345 +15 -0
- data/other/stories/346 +17 -0
- data/other/stories/347 +17 -0
- data/other/stories/348 +11 -0
- data/other/stories/349 +15 -0
- data/other/stories/35 +13 -0
- data/other/stories/350 +21 -0
- data/other/stories/351 +15 -0
- data/other/stories/352 +17 -0
- data/other/stories/353 +15 -0
- data/other/stories/354 +17 -0
- data/other/stories/355 +15 -0
- data/other/stories/356 +15 -0
- data/other/stories/357 +11 -0
- data/other/stories/358 +13 -0
- data/other/stories/359 +11 -0
- data/other/stories/36 +11 -0
- data/other/stories/360 +13 -0
- data/other/stories/361 +13 -0
- data/other/stories/362 +13 -0
- data/other/stories/363 +21 -0
- data/other/stories/364 +17 -0
- data/other/stories/365 +11 -0
- data/other/stories/37 +13 -0
- data/other/stories/38 +17 -0
- data/other/stories/39 +17 -0
- data/other/stories/4 +15 -0
- data/other/stories/40 +11 -0
- data/other/stories/4000 +15 -0
- data/other/stories/4001 +21 -0
- data/other/stories/4002 +15 -0
- data/other/stories/4003 +15 -0
- data/other/stories/4004 +15 -0
- data/other/stories/4005 +15 -0
- data/other/stories/4006 +21 -0
- data/other/stories/4007 +15 -0
- data/other/stories/4008 +15 -0
- data/other/stories/4009 +13 -0
- data/other/stories/4010 +15 -0
- data/other/stories/4011 +15 -0
- data/other/stories/4012 +17 -0
- data/other/stories/4013 +15 -0
- data/other/stories/4014 +13 -0
- data/other/stories/4015 +15 -0
- data/other/stories/4016 +17 -0
- data/other/stories/4017 +13 -0
- data/other/stories/4018 +17 -0
- data/other/stories/4019 +15 -0
- data/other/stories/4020 +19 -0
- data/other/stories/4021 +21 -0
- data/other/stories/4022 +15 -0
- data/other/stories/4023 +13 -0
- data/other/stories/4024 +13 -0
- data/other/stories/4025 +23 -0
- data/other/stories/4026 +17 -0
- data/other/stories/4027 +15 -0
- data/other/stories/4028 +13 -0
- data/other/stories/4029 +11 -0
- data/other/stories/4030 +13 -0
- data/other/stories/4031 +13 -0
- data/other/stories/4032 +13 -0
- data/other/stories/4033 +15 -0
- data/other/stories/4034 +17 -0
- data/other/stories/4035 +13 -0
- data/other/stories/41 +15 -0
- data/other/stories/42 +17 -0
- data/other/stories/43 +15 -0
- data/other/stories/44 +15 -0
- data/other/stories/45 +17 -0
- data/other/stories/46 +17 -0
- data/other/stories/47 +13 -0
- data/other/stories/48 +13 -0
- data/other/stories/49 +17 -0
- data/other/stories/5 +11 -0
- data/other/stories/50 +13 -0
- data/other/stories/51 +15 -0
- data/other/stories/52 +17 -0
- data/other/stories/53 +15 -0
- data/other/stories/54 +11 -0
- data/other/stories/55 +21 -0
- data/other/stories/56 +19 -0
- data/other/stories/57 +13 -0
- data/other/stories/58 +15 -0
- data/other/stories/59 +13 -0
- data/other/stories/6 +11 -0
- data/other/stories/60 +13 -0
- data/other/stories/61 +13 -0
- data/other/stories/62 +13 -0
- data/other/stories/63 +15 -0
- data/other/stories/64 +15 -0
- data/other/stories/65 +17 -0
- data/other/stories/66 +15 -0
- data/other/stories/67 +15 -0
- data/other/stories/68 +15 -0
- data/other/stories/69 +17 -0
- data/other/stories/7 +15 -0
- data/other/stories/70 +21 -0
- data/other/stories/71 +13 -0
- data/other/stories/72 +13 -0
- data/other/stories/73 +15 -0
- data/other/stories/74 +17 -0
- data/other/stories/75 +11 -0
- data/other/stories/76 +19 -0
- data/other/stories/77 +21 -0
- data/other/stories/78 +19 -0
- data/other/stories/79 +11 -0
- data/other/stories/8 +17 -0
- data/other/stories/80 +21 -0
- data/other/stories/81 +23 -0
- data/other/stories/82 +15 -0
- data/other/stories/83 +11 -0
- data/other/stories/84 +13 -0
- data/other/stories/85 +17 -0
- data/other/stories/86 +17 -0
- data/other/stories/87 +25 -0
- data/other/stories/88 +19 -0
- data/other/stories/89 +17 -0
- data/other/stories/9 +15 -0
- data/other/stories/90 +15 -0
- data/other/stories/91 +15 -0
- data/other/stories/92 +17 -0
- data/other/stories/93 +17 -0
- data/other/stories/94 +19 -0
- data/other/stories/95 +13 -0
- data/other/stories/96 +17 -0
- data/other/stories/97 +15 -0
- data/other/stories/98 +11 -0
- data/other/stories/99 +13 -0
- data/src/_compilation/abs +271 -0
- data/src/{compilation → _compilation}/add +34 -49
- data/src/{compilation → _compilation}/append +34 -49
- data/src/{compilation → _compilation}/args +33 -48
- data/src/_compilation/delete +271 -0
- data/src/{compilation → _compilation}/div +34 -49
- data/src/{compilation → _compilation}/exp +34 -49
- data/src/{compilation → _compilation}/floor +33 -48
- data/src/_compilation/gsub +271 -0
- data/src/{compilation → _compilation}/gsubip +33 -48
- data/src/{compilation → _compilation}/last_nth +34 -49
- data/src/{compilation → _compilation}/lines +34 -49
- data/src/{compilation/copy → _compilation/mul} +35 -50
- data/src/{compilation → _compilation}/nth +33 -48
- data/src/_compilation/nth_word +271 -0
- data/src/{compilation → _compilation}/prepend +34 -49
- data/src/{compilation → _compilation}/rip +34 -49
- data/src/{compilation → _compilation}/rnip +34 -49
- data/src/_compilation/selectlines +271 -0
- data/src/{compilation → _compilation}/sub +34 -49
- data/src/{compilation → _compilation}/swap +34 -49
- data/src/_compilation/trim +271 -0
- data/src/clock.cr +40 -39
- data/src/compile_all +9 -9
- data/src/left_right +0 -0
- data/src/programs/abs +0 -0
- data/src/programs/add +0 -0
- data/src/programs/append +0 -0
- data/src/programs/args +0 -0
- data/src/programs/delete +0 -0
- data/src/programs/div +0 -0
- data/src/programs/exp +0 -0
- data/src/programs/floor +0 -0
- data/src/programs/gsub +0 -0
- data/src/programs/gsubip +0 -0
- data/src/programs/last_nth +0 -0
- data/src/programs/lines +0 -0
- data/src/programs/mul +0 -0
- data/src/programs/nth +0 -0
- data/src/programs/nth_word +0 -0
- data/src/programs/prepend +0 -0
- data/src/programs/rip +0 -0
- data/src/programs/rnip +0 -0
- data/src/programs/selectlines +0 -0
- data/src/programs/sub +0 -0
- data/src/programs/swap +0 -0
- data/src/programs/trim +0 -0
- data/src/rgsub +0 -0
- data/src/rgsub.c +3 -5
- data/src/src/{code2 → code} +2 -2
- data/src/src/functions.cr +33 -49
- data/src/src/mk +2 -3
- data/src/src/q.cr +9 -0
- metadata +443 -38
- data/SONG +0 -156
- data/bin/dump +0 -0
- data/bin/undump +0 -0
- data/documentation/dump +0 -12
- data/documentation/undump +0 -19
- data/src/clock +0 -0
- data/src/compilation/abs +0 -286
- data/src/compilation/dump +0 -286
- data/src/compilation/gsub +0 -286
- data/src/compilation/mul +0 -286
- data/src/compilation/selectlines +0 -286
- data/src/compilation/undump +0 -286
- data/src/gsubip +0 -0
- data/src/programs/copy +0 -0
- data/src/programs/dump +0 -0
- data/src/programs/news +0 -0
- data/src/programs/undump +0 -0
- data/src/src/QQ +0 -15
- data/src/test/cat +0 -0
- data/src/test/foo/dog +0 -0
data/src/clock.cr
CHANGED
@@ -1,70 +1,71 @@
|
|
1
1
|
#!/usr/bin/nohup ac
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
|
-
|
5
|
-
|
4
|
+
system "killall pulseaudio clock --quiet"
|
5
|
+
|
6
6
|
class Time_
|
7
|
-
|
8
|
-
|
9
|
-
|
7
|
+
def am?
|
8
|
+
return self.hour < 12
|
9
|
+
end
|
10
10
|
|
11
|
-
|
12
|
-
|
13
|
-
|
11
|
+
def pm?
|
12
|
+
return !am?
|
13
|
+
end
|
14
14
|
end
|
15
|
+
|
15
16
|
l = %w[8 14 0].reverse
|
16
17
|
args = ARGV
|
17
18
|
if args.size > 0 && args[0] == "stop"
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
19
|
+
args = args[1..]
|
20
|
+
while true
|
21
|
+
system "killall #{PROGRAM_NAME} --quiet -9 >/dev/null 2>/dev/null && (echo Alarm clock stopped | blue)"
|
22
|
+
sleep 1
|
23
|
+
end
|
23
24
|
end
|
24
25
|
if args.size < 3
|
25
|
-
|
26
|
-
|
27
|
-
end
|
28
|
-
end
|
29
|
-
def a
|
30
|
-
Time.local.hour
|
26
|
+
(3 - args.size).times do |i|
|
27
|
+
args.push l.pop
|
31
28
|
end
|
29
|
+
end
|
32
30
|
|
33
|
-
|
34
|
-
|
35
|
-
|
31
|
+
def a
|
32
|
+
Time.local.hour
|
33
|
+
end
|
36
34
|
|
35
|
+
def b
|
36
|
+
Time.local.minute
|
37
|
+
end
|
37
38
|
|
38
|
-
#STDOUT.close
|
39
|
-
#STDERR.close
|
40
|
-
#STDIN.close
|
39
|
+
# STDOUT.close
|
40
|
+
# STDERR.close
|
41
|
+
# STDIN.close
|
41
42
|
|
42
43
|
32.times do |i|
|
43
|
-
|
44
|
-
|
44
|
+
Signal.new(i).trap() do |a|
|
45
|
+
end
|
45
46
|
end
|
46
47
|
Process.fork do
|
47
|
-
32.times do |i|
|
48
|
-
|
49
|
-
|
50
|
-
end
|
48
|
+
32.times do |i|
|
49
|
+
Signal.new(i).trap() do |a|
|
50
|
+
end
|
51
|
+
end
|
51
52
|
|
52
|
-
# args = [
|
53
|
+
# args = [
|
53
54
|
voices = `flite -lv`.strip.split(": ")[1].split.shuffle.reject { |i| i == "awb_time" }
|
54
55
|
100.times do
|
55
|
-
# system "xdotool key XF86MonBrightnessDown"
|
56
|
+
# system "xdotool key XF86MonBrightnessDown"
|
56
57
|
end
|
57
58
|
|
59
|
+
until a == (args[0].to_i) &&
|
60
|
+
b == (args[1].to_i)
|
61
|
+
sleep 1
|
62
|
+
end
|
58
63
|
|
59
|
-
until \
|
60
|
-
a == (args[0].to_i) &&
|
61
|
-
b == (args[1].to_i); sleep 1; end
|
62
|
-
|
63
64
|
loop do
|
64
65
|
now = Time.local
|
65
66
|
m = now.to_s
|
66
|
-
t = [(((now.hour - 1) % 12) + 1).to_s + ((now.minute.to_s[0] == "0" ?"0" : "") + ":" + now.minute.to_s), "on", m, now.day]
|
67
|
-
|
67
|
+
t = [(((now.hour - 1) % 12) + 1).to_s + ((now.minute.to_s[0] == "0" ? "0" : "") + ":" + now.minute.to_s), "on", m, now.day]
|
68
|
+
# p t
|
68
69
|
t = t.join(" ")
|
69
70
|
system "echo #{t} | padsp flite -voice #{voices[0]}"
|
70
71
|
sleep 1
|
data/src/compile_all
CHANGED
@@ -2,14 +2,13 @@
|
|
2
2
|
|
3
3
|
cd src 2>/dev/null
|
4
4
|
cd src 2>/dev/null
|
5
|
-
make || exit 1
|
6
5
|
cd ..
|
7
6
|
|
8
|
-
test -e ../bin/rgsub || (cp -v rgsub ../bin/rgsub || (gcc -O3 -s -Wall -Wextra -fwhole-program rgsub.c -o rgsub && cp -v rgsub ../bin/rgsub
|
7
|
+
test -e ../bin/rgsub || (cp -v rgsub ../bin/rgsub || (gcc -O3 -s -Wall -Wextra -fwhole-program rgsub.c -o rgsub && cp -v rgsub ../bin/rgsub))
|
9
8
|
CPP=g++
|
10
|
-
test -e ../bin/left_right || (cp -v left_right ../bin/left_right || ($CPP -O3 -s -fno-rtti -Wall -Wextra -fwhole-program left_right.cc -o left_right && cp -v left_right ../bin/left_right
|
9
|
+
test -e ../bin/left_right || (cp -v left_right ../bin/left_right || ($CPP -s -O3 -s -fno-rtti -Wall -Wextra -fwhole-program left_right.cc -o left_right && cp -v left_right ../bin/left_right))
|
11
10
|
CPP=/usr/lib/mxe/usr/bin/x86_64-w64-mingw32.static-g++
|
12
|
-
test -e ../bin/left_right.exe || (cp -v left_right.exe ../bin/left_right.exe || ($CPP -std=c++17 -O3 -s -fno-rtti -Wall -Wextra -fwhole-program left_right.cc -o left_right.exe && cp -v left_right.exe ../bin/left_right.exe &&
|
11
|
+
test -e ../bin/left_right.exe || (cp -v left_right.exe ../bin/left_right.exe || ($CPP -s -std=c++17 -O3 -s -fno-rtti -Wall -Wextra -fwhole-program left_right.cc -o left_right.exe && cp -v left_right.exe ../bin/left_right.exe && true))
|
13
12
|
|
14
13
|
echo rgsub
|
15
14
|
test -e ../bin/news || (
|
@@ -23,17 +22,18 @@ test -e ../bin/clock || (
|
|
23
22
|
strip ../bin/clock
|
24
23
|
)
|
25
24
|
echo clock
|
25
|
+
cd src 2>/dev/null
|
26
|
+
make || exit 1
|
27
|
+
cd ..
|
26
28
|
|
27
|
-
cd programs
|
28
|
-
|
29
|
-
for i in *; do
|
29
|
+
cd programs && for i in *; do
|
30
30
|
|
31
31
|
file=../../bin/"$i"
|
32
32
|
(/usr/bin/test -e $file && echo ${file} Exist) || (
|
33
|
-
echo Need copy
|
33
|
+
echo Need a copy
|
34
34
|
cp -v "$i" ../../bin/"$i"
|
35
35
|
)
|
36
36
|
|
37
37
|
done
|
38
38
|
|
39
|
-
cd ..
|
39
|
+
cd ..
|
data/src/left_right
CHANGED
Binary file
|
data/src/programs/abs
CHANGED
Binary file
|
data/src/programs/add
CHANGED
Binary file
|
data/src/programs/append
CHANGED
Binary file
|
data/src/programs/args
CHANGED
Binary file
|
data/src/programs/delete
ADDED
Binary file
|
data/src/programs/div
CHANGED
Binary file
|
data/src/programs/exp
CHANGED
Binary file
|
data/src/programs/floor
CHANGED
Binary file
|
data/src/programs/gsub
CHANGED
Binary file
|
data/src/programs/gsubip
CHANGED
Binary file
|
data/src/programs/last_nth
CHANGED
Binary file
|
data/src/programs/lines
CHANGED
Binary file
|
data/src/programs/mul
CHANGED
Binary file
|
data/src/programs/nth
CHANGED
Binary file
|
Binary file
|
data/src/programs/prepend
CHANGED
Binary file
|
data/src/programs/rip
CHANGED
Binary file
|
data/src/programs/rnip
CHANGED
Binary file
|
data/src/programs/selectlines
CHANGED
Binary file
|
data/src/programs/sub
CHANGED
Binary file
|
data/src/programs/swap
CHANGED
Binary file
|
data/src/programs/trim
ADDED
Binary file
|
data/src/rgsub
CHANGED
Binary file
|
data/src/rgsub.c
CHANGED
@@ -77,7 +77,7 @@ static void string_replace(const char *source, const char *find,
|
|
77
77
|
p += find_len;
|
78
78
|
}
|
79
79
|
|
80
|
-
if (!
|
80
|
+
if (!matches) {
|
81
81
|
*use_orig = true;
|
82
82
|
return;
|
83
83
|
}
|
@@ -292,7 +292,7 @@ static void process_directory(const char *dirPath, const char *one,
|
|
292
292
|
|
293
293
|
struct dirent *entry;
|
294
294
|
while ((entry = readdir(dir)) != NULL) {
|
295
|
-
if ((!strcmp(entry->d_name, ".")) || strcmp(entry->d_name, ".."))
|
295
|
+
if ((!strcmp(entry->d_name, ".")) || (!strcmp(entry->d_name, "..")))
|
296
296
|
continue;
|
297
297
|
|
298
298
|
char path[PATH_MAX];
|
@@ -320,7 +320,7 @@ static void process_directory(const char *dirPath, const char *one,
|
|
320
320
|
printf("Failed to get file information: %s\n", path);
|
321
321
|
continue;
|
322
322
|
}
|
323
|
-
|
323
|
+
|
324
324
|
if (S_ISDIR(statbuf.st_mode)) {
|
325
325
|
process_directory(path, one, two, false);
|
326
326
|
} else if (S_ISREG(statbuf.st_mode)) {
|
@@ -387,7 +387,6 @@ int main(int argc, char **argv) {
|
|
387
387
|
}
|
388
388
|
len1 = lens[1];
|
389
389
|
len2 = lens[2];
|
390
|
-
// printf("%d %d\n", actual_argc, actual_argc);
|
391
390
|
|
392
391
|
if (actual_argc == 3) {
|
393
392
|
process_directory(".", actual_argv[1], actual_argv[2], false);
|
@@ -396,7 +395,6 @@ int main(int argc, char **argv) {
|
|
396
395
|
if (verbose_mode) {
|
397
396
|
printf("Processing directory '%s'\n", argv[i]);
|
398
397
|
}
|
399
|
-
{}
|
400
398
|
process_directory(actual_argv[i], actual_argv[1], actual_argv[2], true);
|
401
399
|
}
|
402
400
|
}
|
data/src/src/{code2 → code}
RENAMED
@@ -17,7 +17,7 @@ eval txt
|
|
17
17
|
|
18
18
|
def iter(arg)
|
19
19
|
# warn arg
|
20
|
-
FileUtils.mkdir_p("../
|
20
|
+
FileUtils.mkdir_p("../_compilation")
|
21
21
|
name, args = arg.scan(/^def\s+(.+)(\(.*\))\s*$/)[0]
|
22
22
|
args_split = args[1..-2].strip.split(",")
|
23
23
|
invoke_function = if args_split.empty?
|
@@ -27,7 +27,7 @@ def iter(arg)
|
|
27
27
|
"ARGV[0], ARGV[1], ARGV[2]"][args_split.length]})"
|
28
28
|
end
|
29
29
|
|
30
|
-
File.open("../
|
30
|
+
File.open("../_compilation/#{name}", "w") do |file|
|
31
31
|
file << (File.read("functions.cr")) << text = <<CR
|
32
32
|
|
33
33
|
|
data/src/src/functions.cr
CHANGED
@@ -1,9 +1,24 @@
|
|
1
1
|
#!/usr/bin/crystal
|
2
|
-
require "file_utils"
|
3
|
-
require "json"
|
4
|
-
require "colorize"
|
5
2
|
|
6
|
-
|
3
|
+
def delete(arg)
|
4
|
+
`find -name #{arg}`.each_line do |i|
|
5
|
+
File.delete(i)
|
6
|
+
end
|
7
|
+
end
|
8
|
+
|
9
|
+
|
10
|
+
def nth_word(arg)
|
11
|
+
i = arg.to_u64 - 1
|
12
|
+
STDIN.each_line do |line|
|
13
|
+
puts line.split[i] rescue ""
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
def trim()
|
18
|
+
STDIN.each_line do |line|
|
19
|
+
puts line.strip
|
20
|
+
end
|
21
|
+
end
|
7
22
|
|
8
23
|
def lines()
|
9
24
|
if !STDIN.tty?
|
@@ -48,14 +63,6 @@ def args(arg1)
|
|
48
63
|
end
|
49
64
|
end
|
50
65
|
|
51
|
-
def copy()
|
52
|
-
command = "/usr/bin/xclip"
|
53
|
-
args = ["-selection", "c"]
|
54
|
-
Process.run(command, args, output: STDOUT) do |file|
|
55
|
-
file.input.print STDIN.gets_to_end
|
56
|
-
end
|
57
|
-
end
|
58
|
-
|
59
66
|
def mul()
|
60
67
|
t = STDIN.read_line.to_f64
|
61
68
|
|
@@ -107,14 +114,6 @@ def abs()
|
|
107
114
|
end
|
108
115
|
end
|
109
116
|
|
110
|
-
def dump()
|
111
|
-
puts STDIN.gets_to_end.dump
|
112
|
-
end
|
113
|
-
|
114
|
-
def undump()
|
115
|
-
puts JSON.parse(STDIN.gets_to_end)
|
116
|
-
end
|
117
|
-
|
118
117
|
def exp()
|
119
118
|
t = STDIN.read_line.to_f64
|
120
119
|
|
@@ -138,10 +137,10 @@ end
|
|
138
137
|
|
139
138
|
def last_nth(arg1)
|
140
139
|
end_ = arg1.to_u64
|
141
|
-
i = 0u64
|
140
|
+
i = 0u64
|
142
141
|
t = STDIN.gets_to_end
|
143
142
|
if t[-1] == '\n'
|
144
|
-
|
143
|
+
t = t[0..-2]
|
145
144
|
end
|
146
145
|
|
147
146
|
t.split("\n").reverse_each do |line|
|
@@ -160,7 +159,7 @@ def gsubip(arg1, arg2, arg3)
|
|
160
159
|
h.print text
|
161
160
|
end
|
162
161
|
begin
|
163
|
-
|
162
|
+
File.rename t, arg3
|
164
163
|
rescue
|
165
164
|
rm t
|
166
165
|
end
|
@@ -172,7 +171,7 @@ def rip(arg1, arg2, arg3)
|
|
172
171
|
h.print text
|
173
172
|
end
|
174
173
|
begin
|
175
|
-
|
174
|
+
File.rename t, arg3
|
176
175
|
rescue
|
177
176
|
rm t
|
178
177
|
end
|
@@ -194,16 +193,15 @@ def selectlines()
|
|
194
193
|
end
|
195
194
|
end
|
196
195
|
|
197
|
-
|
198
196
|
def swap(file1, file2)
|
199
197
|
[file1, file2].each do |f|
|
200
|
-
File.exists?(f) || abort("No file named #{f.dump}"
|
198
|
+
File.exists?(f) || abort("No file named #{f.dump}")
|
201
199
|
end
|
202
200
|
t = File.tempname("coreutils", "_tmp")
|
203
201
|
|
204
|
-
|
205
|
-
|
206
|
-
|
202
|
+
File.rename file1, t
|
203
|
+
File.rename file2, file1
|
204
|
+
File.rename t, file2
|
207
205
|
end
|
208
206
|
|
209
207
|
def prepend(file)
|
@@ -214,7 +212,7 @@ def prepend(file)
|
|
214
212
|
end
|
215
213
|
|
216
214
|
begin
|
217
|
-
|
215
|
+
File.rename t, file
|
218
216
|
rescue
|
219
217
|
rm t
|
220
218
|
end
|
@@ -227,24 +225,13 @@ def append(file)
|
|
227
225
|
h << file_data + new_data
|
228
226
|
end
|
229
227
|
begin
|
230
|
-
|
228
|
+
File.rename t, file
|
231
229
|
rescue
|
232
230
|
rm t
|
233
231
|
end
|
234
232
|
end
|
235
233
|
|
236
234
|
class Funcs
|
237
|
-
def self.bold(text)
|
238
|
-
text = text.to_s
|
239
|
-
# text += two.to_s
|
240
|
-
|
241
|
-
if STDOUT.tty?
|
242
|
-
return text.colorize.bold.to_s
|
243
|
-
else
|
244
|
-
return "<b>" + text + "</b>"
|
245
|
-
end
|
246
|
-
end
|
247
|
-
|
248
235
|
def self.argument_data(program, usage, long_desc)
|
249
236
|
if !(STDOUT.tty?)
|
250
237
|
text = "<div style='border-radius: 50px; border: 10px dotted cyan; padding: 30px;'>\n"
|
@@ -252,12 +239,12 @@ class Funcs
|
|
252
239
|
text = ""
|
253
240
|
end
|
254
241
|
|
255
|
-
text +=
|
242
|
+
text += ("NAME") + "\n\t" + program
|
256
243
|
text += " - "
|
257
|
-
text += program + "\n" * 2 +
|
244
|
+
text += program + "\n" * 2 + ("SYNOPSIS") + "\n"
|
258
245
|
# tebold_("SYNOPSIS_")# + bold("SYNOPSIS")
|
259
246
|
text += "\t"
|
260
|
-
text +=
|
247
|
+
text += (program) + " "
|
261
248
|
text += usage + "\n\n"
|
262
249
|
text += long_desc + "\n\n"
|
263
250
|
|
@@ -267,8 +254,5 @@ class Funcs
|
|
267
254
|
end
|
268
255
|
|
269
256
|
puts text
|
270
|
-
|
271
|
-
# puts "</
|
272
|
-
# puts "</
|
273
257
|
end
|
274
|
-
end
|
258
|
+
end
|
data/src/src/mk
CHANGED
@@ -1,9 +1,8 @@
|
|
1
1
|
#!/bin/bash
|
2
2
|
set -e
|
3
3
|
|
4
|
-
COMPILATION=
|
4
|
+
COMPILATION=_compilation
|
5
5
|
PROGRAMS=programs
|
6
|
-
ruby code2
|
7
6
|
|
8
7
|
if [[ $(basename $(pwd) >/dev/null) -eq src ]]; then
|
9
8
|
echo 'In the correct folder'
|
@@ -13,7 +12,7 @@ cd ..
|
|
13
12
|
rm -rf $COMPILATION
|
14
13
|
mkdir -p $PROGRAMS
|
15
14
|
cd src
|
16
|
-
ruby
|
15
|
+
ruby code
|
17
16
|
cd ../$COMPILATION
|
18
17
|
|
19
18
|
|