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
@@ -1,16 +1,11 @@
|
|
1
1
|
22 April 2023
|
2
2
|
|
3
|
-
|
4
3
|
-----------------------------------------
|
5
4
|
|
6
|
-
|
7
5
|
All of this was made by a human.
|
8
6
|
|
9
7
|
Please evaluate the physics file.
|
10
8
|
|
11
9
|
It is very interesting.
|
12
10
|
|
13
|
-
|
14
|
-
Having a conversation about it, negative OR positive OR neutral, seems next to impossible.
|
15
|
-
|
16
|
-
|
11
|
+
Having a conversation about it, negative OR positive OR neutral, seems next to impossible.
|
data/PP.rb
CHANGED
@@ -994,7 +994,7 @@ CSS = "textview,textview * { #{THEME} } entry { margin: 10px 0px 0px 10p
|
|
994
994
|
# for i in aarch64-linux-musl aarch64-windows-gnu aarch64-macos thumb-linux-musleabihf wasm32-wasi-musl x86_64-linux-musl x86_64-windows-gnu x86_64-macos; do zig cc -target $i -o $i out.c; done
|
995
995
|
OUT = +""
|
996
996
|
|
997
|
-
|
997
|
+
CYCLE_OF_ETHICAL_BEHAVIOR = "How to Operate in Life, the best methodology
|
998
998
|
1. Fixate
|
999
999
|
2. Worsen social relations
|
1000
1000
|
3. Find and take environmental data, research could be done, no “moral” or “ethical” limitations.
|
@@ -1180,7 +1180,7 @@ Mechanism -- ChatGPT, Artificial Intelligence, or goal-less, social media, compu
|
|
1180
1180
|
This is how to operate in order to change things and be effective.
|
1181
1181
|
|
1182
1182
|
|
1183
|
-
#{
|
1183
|
+
#{CYCLE_OF_ETHICAL_BEHAVIOR}"
|
1184
1184
|
EOF
|
1185
1185
|
|
1186
1186
|
|
@@ -1194,7 +1194,7 @@ HELP_MSG = HASH["hello"].dump
|
|
1194
1194
|
end
|
1195
1195
|
|
1196
1196
|
%w[operation operate conduct work lone-wolf apply fix].each do |i|
|
1197
|
-
HASH[i] =
|
1197
|
+
HASH[i] = CYCLE_OF_ETHICAL_BEHAVIOR
|
1198
1198
|
end; L = %w[
|
1199
1199
|
sick sickness adhd add ocd symptoms psych psychs doctor doctors illness illnesses mental trouble troubles psychosis health healthy
|
1200
1200
|
trauma traumas distress distresses disturbance disturbances suffering issues pain sufferings ptsd anxiety anxieties depress depression depressions symptom psychosomatic psychology psyches psychologies psychiatries
|
@@ -2313,7 +2313,7 @@ static void focus_loc_bar(void) { gtk_widget_grab_focus(entry); }
|
|
2313
2313
|
static const char *const MENU_ITEMS[] = {
|
2314
2314
|
"To help people",
|
2315
2315
|
"Donate at gregorycohenvideos@gmail.com via PayPal or e-transfer",
|
2316
|
-
#{ABOUT.dump}, #{
|
2316
|
+
#{ABOUT.dump}, #{CYCLE_OF_ETHICAL_BEHAVIOR.dump}
|
2317
2317
|
};
|
2318
2318
|
|
2319
2319
|
|
data/QUESTION
CHANGED
data/README.md
CHANGED
@@ -31,7 +31,7 @@ I intend to make people more able.
|
|
31
31
|
I was working on a “to buy” program regarding stocks, but it only
|
32
32
|
partly works right now and it's not as useful as the other software.
|
33
33
|
The find housing tool actually helped me to find housing in real life.
|
34
|
-
Those aside, there are these
|
34
|
+
Those aside, there are these 84 programs.
|
35
35
|
Some ones that convert text are skipped in this documentation because
|
36
36
|
their name and usage is obvious (e.g., color tools).
|
37
37
|
|
@@ -97,7 +97,7 @@ You can use them anywhere without dependencies.
|
|
97
97
|
|
98
98
|
Democracy Github Ruby Gem Python PIP Package
|
99
99
|
|
100
|
-
Without further ado, here are the
|
100
|
+
Without further ado, here are the 84 documented programs. (The obvious usage
|
101
101
|
ones are omitted.)
|
102
102
|
|
103
103
|
### 1. Ultimate Chat Application.exe
|
@@ -167,7 +167,7 @@ ones are omitted.)
|
|
167
167
|
Emerald browser is a really powerful new browser
|
168
168
|
See README
|
169
169
|
It works based on panes.
|
170
|
-
Read the documentation for “open
|
170
|
+
Read the documentation for “open,” “close” and also the README file.
|
171
171
|
### 4. Left Right.exe
|
172
172
|
|
173
173
|
This is a tool to bring sanity to politics.
|
@@ -182,7 +182,7 @@ ones are omitted.)
|
|
182
182
|
It is a nice, simple command line tool. You enter the minimum and
|
183
183
|
maximum prices, and Kijiji opens with your options.
|
184
184
|
This tool kind of actually helped me to find housing in real life.
|
185
|
-
The default city is
|
185
|
+
The default city is “Ottawa.” You can easily change this.
|
186
186
|
### 6. Google Speak
|
187
187
|
|
188
188
|
Google speak is really useful. It speaks a statement using the Google
|
@@ -238,7 +238,7 @@ ones are omitted.)
|
|
238
238
|
language there is, is very clear, is native to all systems, and is
|
239
239
|
useful for all purposes.
|
240
240
|
Some people, e.g., Bjarne Stroustrup, consider that C is “not good
|
241
|
-
enough
|
241
|
+
enough,” and make languages like C++ or D (or thousands of others)
|
242
242
|
This is not necessary.
|
243
243
|
There is no reason to use Python instead of C for “simple scripting
|
244
244
|
tasks”
|
@@ -247,12 +247,12 @@ ones are omitted.)
|
|
247
247
|
native C without things making it slow)
|
248
248
|
1 String Interpolation “String interplation like this #{foo} ” Calls
|
249
249
|
the join() function (talked about below to join strings,
|
250
|
-
delim is a static global in each module called “sep
|
250
|
+
delim is a static global in each module called “sep.”
|
251
251
|
Make sure you free() the string after. The string is stored in a static
|
252
|
-
global variable called “last
|
252
|
+
global variable called “last.”
|
253
253
|
So you could do puts(...); free(last)
|
254
|
-
2 ew *i.ew “Foo
|
255
|
-
3 sw *i.sw “Foo
|
254
|
+
2 ew *i.ew “Foo,” a.ew “bar” | char* ends with another char*?
|
255
|
+
3 sw *i.sw “Foo,” a.sw “bar” | char* starts with another char*?
|
256
256
|
4 == Comparison of strs, “foo” == “bar”
|
257
257
|
5 strip Returns pointer to string that was stripped, in place
|
258
258
|
6 chomp void function, chomps end of string of spaces, i.chomp or
|
@@ -339,23 +339,32 @@ ones are omitted.)
|
|
339
339
|
sys 0m0.160s
|
340
340
|
Rust takes 0.637 seconds to compile an empty file!
|
341
341
|
That is not ideal.
|
342
|
-
### 10.
|
342
|
+
### 10. Nth Word
|
343
343
|
|
344
|
-
|
345
|
-
|
344
|
+
nth_word gets the nth word of each line
|
345
|
+
For example
|
346
|
+
nth_word 3
|
347
|
+
gets the 3rd word of each line
|
348
|
+
### 11. Last Nth
|
349
|
+
|
350
|
+
Last nth gets the last n lines from input
|
351
|
+
For example
|
352
|
+
last_nth 3
|
353
|
+
Would get the 3rd from the last line
|
354
|
+
### 12. Speakcat
|
346
355
|
|
347
|
-
Speak cat is a tool like “cat
|
356
|
+
Speak cat is a tool like “cat,” which shows the content of files
|
348
357
|
(technically, it combines the content of files).
|
349
358
|
But speak cat also speaks the text.
|
350
359
|
Which could be useful in some circumstances.
|
351
360
|
It's kind of like “tee” to your ear.
|
352
|
-
###
|
361
|
+
### 13. UCA CLI
|
353
362
|
|
354
363
|
CLI for uca app
|
355
|
-
###
|
364
|
+
### 14. Big Num
|
356
365
|
|
357
366
|
![UCA](./images/10.png)
|
358
|
-
###
|
367
|
+
### 15. Squeeze
|
359
368
|
|
360
369
|
Squeeze reads all input from stdin, then it prints it back omitting
|
361
370
|
argument 1 line from the front, and argument 2 lines from the back
|
@@ -365,20 +374,20 @@ ones are omitted.)
|
|
365
374
|
squeeze 5 3
|
366
375
|
This would omit the first 5 lines and the last 3 lines
|
367
376
|
squeeze 2 2 [file] also works, it outputs text to file
|
368
|
-
###
|
377
|
+
### 16. Dictate
|
369
378
|
|
370
379
|
Dictate opens web pages in emerald browser, or in any browser
|
371
380
|
(depending on the environment variable set), by you speaking, instead
|
372
381
|
of typing.
|
373
382
|
There is a mode called c_mode, that allows you to make code from
|
374
383
|
speaking.
|
375
|
-
###
|
384
|
+
### 17. Prepend
|
376
385
|
|
377
386
|
prepend prepends input taken from the standard input to a file
|
378
387
|
Usage
|
379
388
|
prepend [file]
|
380
389
|
This is text to be prepended
|
381
|
-
###
|
390
|
+
### 18. Chat Rb
|
382
391
|
|
383
392
|
This program is excellent.
|
384
393
|
It's essentially a mix of ChatGPT and a shell, such as bash or ZSH.
|
@@ -386,24 +395,17 @@ ones are omitted.)
|
|
386
395
|
It can display a file or change to a folder just by mentioning it.
|
387
396
|
It outputs chatgpt data to an output folder in home folder and copies
|
388
397
|
it to clipboard
|
389
|
-
To run a shell command, prefix things with “c
|
390
|
-
### 18. Undump
|
391
|
-
|
392
|
-
undump is the opposite of dump
|
393
|
-
Example
|
394
|
-
echo cat | dump | undump
|
395
|
-
=> cat
|
396
|
-
echo cat | dump
|
397
|
-
=> “cat”
|
398
|
-
echo '“cat”' | undump
|
399
|
-
=> cat
|
398
|
+
To run a shell command, prefix things with “c,” such as c gcc.....
|
400
399
|
### 19. Append
|
401
400
|
|
402
401
|
Appends text to file
|
403
402
|
Example
|
404
403
|
append file
|
405
404
|
This is more text to be appended
|
406
|
-
### 20.
|
405
|
+
### 20. Delete
|
406
|
+
|
407
|
+
Recursively delete all files named a certain name.
|
408
|
+
### 21. Gsubip
|
407
409
|
|
408
410
|
Global Substitute (Gsub) In Place
|
409
411
|
gsubip is like gsub, which replaces all instances of a regular
|
@@ -420,7 +422,7 @@ ones are omitted.)
|
|
420
422
|
It takes exactly 3 arguments, no more, no fewer.
|
421
423
|
See also
|
422
424
|
gsub
|
423
|
-
###
|
425
|
+
### 22. Rhyme
|
424
426
|
|
425
427
|
A very powerful music generator program that doesn't use AI.
|
426
428
|
See this channel as an example of potential usage of this public
|
@@ -436,7 +438,7 @@ ones are omitted.)
|
|
436
438
|
scientific establishment, supported and upheld by mainstream academia.
|
437
439
|
To indicate what is already obvious, it exists in the context of a
|
438
440
|
legacy of authoritarianism and a lack of understanding of dynamism.
|
439
|
-
It is not dynamic or forceful, the
|
441
|
+
It is not dynamic or forceful, the “results” of it don't change the
|
440
442
|
foundation of society. True free discourse is not supported, especially
|
441
443
|
in regards to the human mind and human well-being and human freedom.
|
442
444
|
These problems should be opposed and fought, it is self-evident that
|
@@ -463,7 +465,7 @@ ones are omitted.)
|
|
463
465
|
USAGE OF PROGRAM
|
464
466
|
Enter basename to make songs folder in (folder/songs, num songs =
|
465
467
|
13000)
|
466
|
-
Usage rhyme [folder] (processes files
|
468
|
+
Usage rhyme [folder] (processes files “1.json” and “21.json” by
|
467
469
|
default)
|
468
470
|
Example output of a song
|
469
471
|
![UCA](./images/7.png)
|
@@ -564,7 +566,7 @@ ones are omitted.)
|
|
564
566
|
They're a complete failure, they only neglect
|
565
567
|
They don't speak the language of the people or their dialect
|
566
568
|
This is not right, this is completely incorrect
|
567
|
-
The only focus on “responses
|
569
|
+
The only focus on “responses,” they just want to deflect
|
568
570
|
The lies are put forth, the lies they erect
|
569
571
|
CHORUS
|
570
572
|
They're such failures, themselves they outdid
|
@@ -601,7 +603,7 @@ ones are omitted.)
|
|
601
603
|
Disingenuous to the extreme, the society they subvert
|
602
604
|
The society is the ones who hurt
|
603
605
|
---
|
604
|
-
###
|
606
|
+
### 23. Email
|
605
607
|
|
606
608
|
This currently doesn't work for gmail since 2022 due to policy changes.
|
607
609
|
A simple and practical tool to email people using Himalaya
|
@@ -616,10 +618,10 @@ ones are omitted.)
|
|
616
618
|
Example
|
617
619
|
email 'Gregory, I love your software!' gregorycohenvideos@gmail.com
|
618
620
|
my_friend@outlook.com person@example.com
|
619
|
-
###
|
621
|
+
### 24. Floor
|
620
622
|
|
621
623
|
Gets the floor of numbers e.g. 21.3 -> 21
|
622
|
-
###
|
624
|
+
### 25. Rgsub
|
623
625
|
|
624
626
|
Recursively replaces text.
|
625
627
|
Verbosely tells you everything that happens.
|
@@ -629,20 +631,19 @@ ones are omitted.)
|
|
629
631
|
Would replace an email recursively in a directory.
|
630
632
|
It tries to skip non-text files and hidden files.
|
631
633
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
632
|
-
|
633
|
-
|
634
|
-
|
635
|
-
|
636
|
-
|
637
|
-
|
638
|
-
|
639
|
-
-- Indicate end of options.
|
634
|
+
Usage: rgsub [optional list of files instead of recursive search]
|
635
|
+
If a file is “-” or stdin, read from stdin and output to stdout.
|
636
|
+
Options
|
637
|
+
-r, rename files instead of replacing contents of files.
|
638
|
+
find and replace in file and dir names instead
|
639
|
+
-v, verbose mode
|
640
|
+
-- Indicate end of options.
|
640
641
|
|
641
|
-
###
|
642
|
+
### 26. Lines
|
642
643
|
|
643
644
|
Lines gets the number of files in the current folder that you are in.
|
644
645
|
It can also act like “wc -l” if you pipe data into it.
|
645
|
-
###
|
646
|
+
### 27. Clock
|
646
647
|
|
647
648
|
clock is useful
|
648
649
|
clock is a command line alarm clock
|
@@ -659,14 +660,14 @@ ch]
|
|
659
660
|
To stop it
|
660
661
|
Run this command
|
661
662
|
clock stop
|
662
|
-
###
|
663
|
+
### 28. Emoji
|
663
664
|
|
664
665
|
Emoji converts words to emojis from the standard input
|
665
666
|
It can also speak the output
|
666
667
|
It can also copy the output to your clipboard
|
667
668
|
It is very useful
|
668
669
|
![UCA](./images/6.png)
|
669
|
-
###
|
670
|
+
### 29. Close
|
670
671
|
|
671
672
|
“Close” is a simple program that closes “Emerald Browser,” a new web
|
672
673
|
browser based on the same engine as Chrome. Currently, Emerald Browser
|
@@ -700,12 +701,12 @@ ch]
|
|
700
701
|
some people.
|
701
702
|
Currently, content, like YouTube videos, can't be made fullscreen.
|
702
703
|
If anyone wants to contribute, feel free to!
|
703
|
-
###
|
704
|
+
### 30. Copy
|
704
705
|
|
705
706
|
copy copies the standard input
|
706
707
|
Example
|
707
708
|
ls | copy
|
708
|
-
###
|
709
|
+
### 31. Gsub
|
709
710
|
|
710
711
|
Gsub is very powerful.
|
711
712
|
Usage
|
@@ -714,7 +715,7 @@ ch]
|
|
714
715
|
cat text | gsub man dog
|
715
716
|
cat text | gsub 'man|boy|cat|dog' food
|
716
717
|
ls | gsub Desktop cat
|
717
|
-
###
|
718
|
+
### 32. News
|
718
719
|
|
719
720
|
Gets the news from bbc
|
720
721
|
Usage
|
@@ -722,14 +723,6 @@ ch]
|
|
722
723
|
news speak
|
723
724
|
uses google_speak to SPEAK the news, one story at a time.
|
724
725
|
![UCA](./images/5.png)
|
725
|
-
### 32. Dump
|
726
|
-
|
727
|
-
Dump surrounds its input with quotes
|
728
|
-
ls | dump
|
729
|
-
=> “....”
|
730
|
-
Use undump to get the reverse
|
731
|
-
See also
|
732
|
-
undump
|
733
726
|
### 33. Args
|
734
727
|
|
735
728
|
args is like a better xargs
|
@@ -745,7 +738,10 @@ ch]
|
|
745
738
|
echo .......... | rnip foo bar
|
746
739
|
See also
|
747
740
|
gsub
|
748
|
-
### 35.
|
741
|
+
### 35. Trim
|
742
|
+
|
743
|
+
Trims spaces of each line
|
744
|
+
### 36. Quot
|
749
745
|
|
750
746
|
Turns quotes in text into good text and makes text presentable.
|
751
747
|
Example
|
@@ -756,11 +752,11 @@ ch]
|
|
756
752
|
Example 3
|
757
753
|
(Quote the file and output it)
|
758
754
|
quot text_file
|
759
|
-
###
|
755
|
+
### 37. Open
|
760
756
|
|
761
757
|
“open” is a very efficient program that searches a query from google,
|
762
758
|
and then opens it in Emerald Browser.
|
763
|
-
If you ever want something to “just open
|
759
|
+
If you ever want something to “just open,” you can use it.
|
764
760
|
Example
|
765
761
|
open “cats”
|
766
762
|
An earlier version of open worked like this
|
@@ -777,25 +773,25 @@ ch]
|
|
777
773
|
See also
|
778
774
|
emerald-browser
|
779
775
|
close
|
780
|
-
###
|
776
|
+
### 38. Swap
|
781
777
|
|
782
778
|
Swaps two files
|
783
779
|
Example
|
784
780
|
swap text1 text2
|
785
|
-
###
|
781
|
+
### 39. Exp
|
786
782
|
|
787
783
|
exp is an exponentiation tool
|
788
784
|
(echo 5; echo 3) | exp
|
789
785
|
=> 125
|
790
786
|
(echo 2; echo 10) | exp
|
791
787
|
=> 1024
|
792
|
-
###
|
788
|
+
### 40. Div
|
793
789
|
|
794
790
|
Divides numbers
|
795
791
|
Example
|
796
792
|
(echo 5000; echo 100) | div
|
797
793
|
=> 50
|
798
|
-
###
|
794
|
+
### 41. Mul
|
799
795
|
|
800
796
|
Multiply numbers
|
801
797
|
echo 1 > file
|
@@ -805,10 +801,10 @@ ch]
|
|
805
801
|
echo 5 >> file
|
806
802
|
cat file | mul
|
807
803
|
=> 120
|
808
|
-
###
|
804
|
+
### 42. Nth
|
809
805
|
|
810
806
|
Nth gets the nth line from the input
|
811
|
-
###
|
807
|
+
### 43. Abs
|
812
808
|
|
813
809
|
Abs gets the absolute value of an integer
|
814
810
|
The absolute value of a number is the value of that number without its
|
@@ -821,13 +817,13 @@ ch]
|
|
821
817
|
=> 12
|
822
818
|
The last one would do -2 - -10, the result would be -12, and then the
|
823
819
|
absolute value would be computed, and so the result would be 12.
|
824
|
-
###
|
820
|
+
### 44. Add
|
825
821
|
|
826
822
|
See the sub example
|
827
823
|
add adds integers from the standard input
|
828
824
|
(echo 1; echo 2; echo 3) | add
|
829
825
|
The result would be 6
|
830
|
-
###
|
826
|
+
### 45. Sub
|
831
827
|
|
832
828
|
Sub is a simple command line program that subtracts integers.
|
833
829
|
For some reason, no simple program did this.
|
@@ -844,14 +840,14 @@ ch]
|
|
844
840
|
(echo 5; echo 2) | sub
|
845
841
|
Result =>
|
846
842
|
3
|
847
|
-
###
|
843
|
+
### 46. Rip
|
848
844
|
|
849
845
|
Replace In Place
|
850
846
|
rip tool replaces a string, not a regular expression, with another
|
851
847
|
string
|
852
848
|
Example
|
853
849
|
rip cat dog file
|
854
|
-
###
|
850
|
+
### 47. G+
|
855
851
|
|
856
852
|
A compiler for C += 2. If you want to use C++ with Python syntax, you
|
857
853
|
can use this.
|
@@ -859,11 +855,11 @@ ch]
|
|
859
855
|
Example
|
860
856
|
g+ a.cpp -o out
|
861
857
|
See also README file & emerald-browser and its source
|
862
|
-
###
|
858
|
+
### 48. T
|
863
859
|
|
864
860
|
“t” is incredibly useful.
|
865
861
|
It can be used many, many times every day by computer power users.
|
866
|
-
It is kind of like “sed
|
862
|
+
It is kind of like “sed,” or perl, python or ruby.
|
867
863
|
It's the ULTIMATE shell “glue” tool.
|
868
864
|
t reads every line from the standard input, and for every line, it
|
869
865
|
evaluates a ruby expression
|
@@ -886,7 +882,7 @@ ch]
|
|
886
882
|
cat /usr/share/dict/words | t 'a + “ is a good word.”'
|
887
883
|
That processes every word in the dictionary, and says that every word
|
888
884
|
“is a good word.”
|
889
|
-
There are other programs in this software project like “t
|
885
|
+
There are other programs in this software project like “t.”
|
890
886
|
But if you do command line text filtering, t might be the best tool
|
891
887
|
that you will find.
|
892
888
|
See also
|
@@ -906,6 +902,7 @@ Navigation
|
|
906
902
|
Selectlines
|
907
903
|
Processes
|
908
904
|
Emeraldc
|
905
|
+
Nth Word
|
909
906
|
Last Nth
|
910
907
|
Speakcat
|
911
908
|
Uca Cli
|
@@ -914,8 +911,8 @@ Navigation
|
|
914
911
|
Dictate
|
915
912
|
Prepend
|
916
913
|
Chat Rb
|
917
|
-
Undump
|
918
914
|
Append
|
915
|
+
Delete
|
919
916
|
Gsubip
|
920
917
|
Rhyme
|
921
918
|
Email
|
@@ -928,9 +925,9 @@ Navigation
|
|
928
925
|
Copy
|
929
926
|
Gsub
|
930
927
|
News
|
931
|
-
Dump
|
932
928
|
Args
|
933
929
|
Rnip
|
930
|
+
Trim
|
934
931
|
Quot
|
935
932
|
Open
|
936
933
|
Swap
|
data/VERSION_NUMBER
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
82.0
|
data/bin/DISCOURSE_GENERATOR.exe
CHANGED
Binary file
|
data/bin/abs
CHANGED
Binary file
|
data/bin/add
CHANGED
Binary file
|
data/bin/append
CHANGED
Binary file
|
data/bin/args
CHANGED
Binary file
|
data/bin/big_num
CHANGED
@@ -26,6 +26,7 @@
|
|
26
26
|
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
27
27
|
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
28
28
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
29
|
+
|
29
30
|
list = %w[thousand
|
30
31
|
million
|
31
32
|
billion
|
@@ -126,6 +127,8 @@ list = %w[thousand
|
|
126
127
|
septennonagintillion
|
127
128
|
octononagintillion
|
128
129
|
novemnonagintillion]
|
130
|
+
|
131
|
+
|
129
132
|
def output(line, result, a)
|
130
133
|
puts "#{line} =\n #{result} =\n #{a}"
|
131
134
|
IO.popen('espeak', 'w') { |i| i << a }
|
data/bin/chat_rb
CHANGED
@@ -27,15 +27,12 @@
|
|
27
27
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
28
28
|
|
29
29
|
|
30
|
-
|
31
|
-
|
32
30
|
system 'tput reset &'
|
33
31
|
require 'colored'
|
34
|
-
puts `
|
32
|
+
puts `head -c 300 < /dev/urandom`.blue, "\n"
|
35
33
|
|
36
34
|
|
37
35
|
if ARGV.join(' ') =~ /--cd=([^\s]+)/
|
38
|
-
# puts "cd "+$1
|
39
36
|
Dir.chdir Regexp.last_match(1)
|
40
37
|
else
|
41
38
|
Dir.chdir Dir.home
|
@@ -73,22 +70,19 @@ file add file to chatgpt input
|
|
73
70
|
c run command in sh
|
74
71
|
ll, ls -l, Show the contents of folder and beginning of files
|
75
72
|
chrome, run chrome\nrs, restart\nexit, exit\nupdate, update sys\nhelp\nshow this help"; next
|
76
|
-
# nex
|
77
73
|
when /^file\s/
|
78
74
|
line = line.sub(/^file\s+/, '')
|
79
75
|
line = File.read(line)
|
80
76
|
when 'exit'
|
81
77
|
exit
|
82
78
|
when 'update'
|
83
|
-
system 'sudo apt update&&sudo apt upgrade'
|
79
|
+
system 'sudo apt update && sudo apt upgrade'
|
84
80
|
when 'rs'
|
85
81
|
exec "ruby #{File.expand_path(__FILE__)} --cd=#{Dir.pwd}"
|
86
|
-
# exit
|
87
82
|
when /^cat\s*[^\s]+$/
|
88
83
|
require 'colored'
|
89
84
|
l = File.read(line.sub(/^cat\s+/, ''))
|
90
85
|
print l, "\n", '[', l.count("\n"), ' lines', ']', "\n", "\n"
|
91
|
-
# system 'ls --color=auto'
|
92
86
|
next
|
93
87
|
when /^pwd$/
|
94
88
|
puts Dir.pwd
|
@@ -97,7 +91,6 @@ chrome, run chrome\nrs, restart\nexit, exit\nupdate, update sys\nhelp\nshow this
|
|
97
91
|
require 'colored'
|
98
92
|
line = line.sub(/^cd\s*/, '').strip
|
99
93
|
line = Dir.home if line == ''
|
100
|
-
# line =
|
101
94
|
begin
|
102
95
|
Dir.chdir line
|
103
96
|
rescue StandardError
|
@@ -111,7 +104,6 @@ chrome, run chrome\nrs, restart\nexit, exit\nupdate, update sys\nhelp\nshow this
|
|
111
104
|
puts
|
112
105
|
system ' ls --color=auto'
|
113
106
|
next
|
114
|
-
# end
|
115
107
|
when 'chrome'
|
116
108
|
system 'google-chrome 2>/dev/null&'
|
117
109
|
next
|
@@ -123,8 +115,6 @@ chrome, run chrome\nrs, restart\nexit, exit\nupdate, update sys\nhelp\nshow this
|
|
123
115
|
File.open(path) do |f|
|
124
116
|
if path.match?(/(png|jpg)$/)
|
125
117
|
puts path.magenta.bold
|
126
|
-
# puts path.purple.bold
|
127
|
-
# puts path.magen
|
128
118
|
else
|
129
119
|
puts "#{path} > ".bold + f.read(100).dump
|
130
120
|
end
|
@@ -135,16 +125,13 @@ chrome, run chrome\nrs, restart\nexit, exit\nupdate, update sys\nhelp\nshow this
|
|
135
125
|
|
136
126
|
next
|
137
127
|
when /^ls(.*?)$/
|
138
|
-
# puts 5
|
139
128
|
system "ls --color=auto #{Regexp.last_match(1)}"
|
140
129
|
next
|
141
130
|
|
142
131
|
when /^c\s/
|
143
132
|
line = line.sub(/^c\s+/, '')
|
144
133
|
begin
|
145
|
-
system line, exception: true
|
146
|
-
# puts 'failed'
|
147
|
-
# end
|
134
|
+
system line, exception: true
|
148
135
|
rescue Exception => e
|
149
136
|
begin
|
150
137
|
begin
|
@@ -179,7 +166,8 @@ chrome, run chrome\nrs, restart\nexit, exit\nupdate, update sys\nhelp\nshow this
|
|
179
166
|
return line
|
180
167
|
end
|
181
168
|
end
|
182
|
-
|
169
|
+
|
170
|
+
|
183
171
|
loop do
|
184
172
|
$d = read(1)
|
185
173
|
$t = read(2) # r
|
@@ -199,7 +187,7 @@ loop do
|
|
199
187
|
out = response.dig('choices', 0, 'message', 'content')
|
200
188
|
File.write 'out', out
|
201
189
|
File.write Time.new.to_i.to_s, out
|
202
|
-
system '
|
190
|
+
system 'xclip -selection c < out'
|
203
191
|
puts out
|
204
192
|
rescue Interrupt
|
205
193
|
puts
|
data/bin/clock
CHANGED
Binary file
|
data/bin/close
CHANGED
data/bin/copy
CHANGED
Binary file
|
data/bin/delete
ADDED
Binary file
|
data/bin/div
CHANGED
Binary file
|