elonmusk 1.0.72 → 1.0.79
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CYCLE_OF_ETHICAL_BEHAVIOR +7 -0
- data/EXAMPLES_OF_OPERATION.html +6132 -0
- data/PP.rb +4 -4
- data/README.md +77 -69
- data/VERSION_NUMBER +1 -1
- data/bin/big_num +3 -0
- data/bin/chat_rb +6 -18
- data/bin/close +1 -1
- data/bin/find_housing +1 -1
- data/bin/left_right +0 -0
- data/bin/left_right.exe +0 -0
- data/bin/quot +1 -1
- 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/dictate +1 -2
- data/documentation/div +1 -7
- data/documentation/doc.rb +2 -0
- data/documentation/dump +1 -2
- 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 +1 -1
- data/documentation/left_right.exe +9 -0
- 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/open +4 -23
- data/documentation/page +1 -1
- 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 +5 -12
- 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/underline +1 -1
- data/documentation/undump +1 -5
- 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/gem_data/VERSION_NUMBER +1 -1
- data/gem_data/version_increment +1 -0
- data/images/12.png +0 -0
- data/index.html +78 -75
- 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/find_housing +1 -1
- data/non_compiled_programs/quot +1 -1
- 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/other/upload.rb +8 -2
- data/src/compilation/abs +1 -1
- data/src/compilation/add +1 -1
- data/src/compilation/append +1 -1
- data/src/compilation/div +1 -1
- data/src/compilation/dump +1 -1
- data/src/compilation/exp +1 -1
- data/src/compilation/gsub +1 -1
- data/src/compilation/lines +1 -1
- data/src/compilation/mul +1 -1
- data/src/compilation/prepend +1 -1
- data/src/compilation/rip +1 -1
- data/src/compilation/rnip +1 -1
- data/src/compilation/selectlines +1 -1
- data/src/compilation/sub +1 -1
- data/src/compilation/swap +1 -1
- data/src/compilation/undump +1 -1
- data/src/compile_all +5 -2
- data/src/left_right +0 -0
- data/src/left_right.cc +87 -0
- data/src/left_right.exe +0 -0
- data/version_increment +1 -0
- metadata +417 -5
- data/non_compiled_programs/make_server +0 -784
- data/src/- +0 -1
- data/src/--file +0 -0
data/src/compilation/div
CHANGED
@@ -275,7 +275,7 @@ end
|
|
275
275
|
|
276
276
|
def main()
|
277
277
|
if ARGV.size != 0
|
278
|
-
Funcs.argument_data("div", "[div] [arguments]", "Divides numbers\n\nExample\n\n
|
278
|
+
Funcs.argument_data("div", "[div] [arguments]", "Divides numbers\n\nExample\n\n(echo 5000; echo 100) | div\n\n=> 50")
|
279
279
|
exit 1
|
280
280
|
end
|
281
281
|
|
data/src/compilation/dump
CHANGED
@@ -275,7 +275,7 @@ end
|
|
275
275
|
|
276
276
|
def main()
|
277
277
|
if ARGV.size != 0
|
278
|
-
Funcs.argument_data("dump", "[dump] [arguments]", "Dump surrounds its input with quotes\n\
|
278
|
+
Funcs.argument_data("dump", "[dump] [arguments]", "Dump surrounds its input with quotes\n\nls | dump\n\n=> “....”\n\nUse undump to get the reverse\n\nSee also\n\nundump")
|
279
279
|
exit 1
|
280
280
|
end
|
281
281
|
|
data/src/compilation/exp
CHANGED
@@ -275,7 +275,7 @@ end
|
|
275
275
|
|
276
276
|
def main()
|
277
277
|
if ARGV.size != 0
|
278
|
-
Funcs.argument_data("exp", "[exp] [arguments]", "exp is an exponentiation tool\n\n(echo 5; echo 3) | exp\n\n=> 125\n\n(echo 2; echo 10) | exp\n\n=>
|
278
|
+
Funcs.argument_data("exp", "[exp] [arguments]", "exp is an exponentiation tool\n\n(echo 5; echo 3) | exp\n\n=> 125\n\n(echo 2; echo 10) | exp\n\n=> 1024")
|
279
279
|
exit 1
|
280
280
|
end
|
281
281
|
|
data/src/compilation/gsub
CHANGED
@@ -275,7 +275,7 @@ end
|
|
275
275
|
|
276
276
|
def main()
|
277
277
|
if ARGV.size != 2
|
278
|
-
Funcs.argument_data("gsub", "[gsub] [arguments]", "Gsub is very powerful.\n\
|
278
|
+
Funcs.argument_data("gsub", "[gsub] [arguments]", "Gsub is very powerful.\n\nUsage\n\ngsub [regular expression] [replacement text] \n\nExample\n\ncat text | gsub man dog\n\ncat text | gsub 'man|boy|cat|dog' food\n\nls | gsub Desktop cat")
|
279
279
|
exit 1
|
280
280
|
end
|
281
281
|
|
data/src/compilation/lines
CHANGED
@@ -275,7 +275,7 @@ end
|
|
275
275
|
|
276
276
|
def main()
|
277
277
|
if ARGV.size != 0
|
278
|
-
Funcs.argument_data("lines", "[lines] [arguments]", "Lines gets the number of files in the current folder that you are in.\n\
|
278
|
+
Funcs.argument_data("lines", "[lines] [arguments]", "Lines gets the number of files in the current folder that you are in.\n\nIt can also act like “wc -l” if you pipe data into it.")
|
279
279
|
exit 1
|
280
280
|
end
|
281
281
|
|
data/src/compilation/mul
CHANGED
@@ -275,7 +275,7 @@ end
|
|
275
275
|
|
276
276
|
def main()
|
277
277
|
if ARGV.size != 0
|
278
|
-
Funcs.argument_data("mul", "[mul] [arguments]", "Multiply
|
278
|
+
Funcs.argument_data("mul", "[mul] [arguments]", "Multiply numbers\n\necho 1 > file\necho 2 >> file\necho 3 >> file\necho 4 >> file\necho 5 >> file\n\ncat file | mul\n\n=> 120")
|
279
279
|
exit 1
|
280
280
|
end
|
281
281
|
|
data/src/compilation/prepend
CHANGED
@@ -275,7 +275,7 @@ end
|
|
275
275
|
|
276
276
|
def main()
|
277
277
|
if ARGV.size != 1
|
278
|
-
Funcs.argument_data("prepend", "[prepend] [arguments]", "prepend prepends
|
278
|
+
Funcs.argument_data("prepend", "[prepend] [arguments]", "prepend prepends input taken from the standard input to a file\n\nUsage\n\nprepend [file]\n\nThis is text to be prepended")
|
279
279
|
exit 1
|
280
280
|
end
|
281
281
|
|
data/src/compilation/rip
CHANGED
@@ -275,7 +275,7 @@ end
|
|
275
275
|
|
276
276
|
def main()
|
277
277
|
if ARGV.size != 3
|
278
|
-
Funcs.argument_data("rip", "[rip] [arguments]", "Replace In Place\n\nrip tool replaces a string, not a regular expression, with another string\n\
|
278
|
+
Funcs.argument_data("rip", "[rip] [arguments]", "Replace In Place\n\nrip tool replaces a string, not a regular expression, with another string\n\nExample\n\nrip cat dog file")
|
279
279
|
exit 1
|
280
280
|
end
|
281
281
|
|
data/src/compilation/rnip
CHANGED
@@ -275,7 +275,7 @@ end
|
|
275
275
|
|
276
276
|
def main()
|
277
277
|
if ARGV.size != 2
|
278
|
-
Funcs.argument_data("rnip", "[rnip] [arguments]", "Replace Not In Place\n\nThis is like gsub, but for strings, not for regular expressions\n\nExample\n\necho ..........
|
278
|
+
Funcs.argument_data("rnip", "[rnip] [arguments]", "Replace Not In Place\n\nThis is like gsub, but for strings, not for regular expressions\n\nExample\n\necho .......... | rnip foo bar\n\nSee also\n\ngsub")
|
279
279
|
exit 1
|
280
280
|
end
|
281
281
|
|
data/src/compilation/selectlines
CHANGED
@@ -275,7 +275,7 @@ end
|
|
275
275
|
|
276
276
|
def main()
|
277
277
|
if ARGV.size != 0
|
278
|
-
Funcs.argument_data("selectlines", "[selectlines] [arguments]", "selectlines shows all nonblank lines from the input\n\
|
278
|
+
Funcs.argument_data("selectlines", "[selectlines] [arguments]", "selectlines shows all nonblank lines from the input\n\nExample\n\ncat file | selectlines\n\n(echo 2; echo; echo; echo) | selectlines\n\n=> 2\n\nThe result would be 2, with no blank lines after that")
|
279
279
|
exit 1
|
280
280
|
end
|
281
281
|
|
data/src/compilation/sub
CHANGED
@@ -275,7 +275,7 @@ end
|
|
275
275
|
|
276
276
|
def main()
|
277
277
|
if ARGV.size != 0
|
278
|
-
Funcs.argument_data("sub", "[sub] [arguments]", "Sub is a simple command line program that subtracts integers.\n\nFor some reason, no simple program did this.\n\nWhich is weird\n\nExample\n\nsub\n(Input)\n10\n3\n1\n\nResult =>\n\n6\n\nExample\n\n
|
278
|
+
Funcs.argument_data("sub", "[sub] [arguments]", "Sub is a simple command line program that subtracts integers.\n\nFor some reason, no simple program did this.\n\nWhich is weird\n\nExample\n\nsub\n(Input)\n10\n3\n1\n\nResult =>\n\n6\n\nExample\n\n (echo 5; echo 2) | sub\n\nResult =>\n\n3")
|
279
279
|
exit 1
|
280
280
|
end
|
281
281
|
|
data/src/compilation/swap
CHANGED
@@ -275,7 +275,7 @@ end
|
|
275
275
|
|
276
276
|
def main()
|
277
277
|
if ARGV.size != 2
|
278
|
-
Funcs.argument_data("swap", "[swap] [arguments]", "Swaps two files\n\
|
278
|
+
Funcs.argument_data("swap", "[swap] [arguments]", "Swaps two files\n\nExample\n\nswap text1 text2")
|
279
279
|
exit 1
|
280
280
|
end
|
281
281
|
|
data/src/compilation/undump
CHANGED
@@ -275,7 +275,7 @@ end
|
|
275
275
|
|
276
276
|
def main()
|
277
277
|
if ARGV.size != 0
|
278
|
-
Funcs.argument_data("undump", "[undump] [arguments]", "undump is the opposite of dump\n\nExample\n\
|
278
|
+
Funcs.argument_data("undump", "[undump] [arguments]", "undump is the opposite of dump\n\nExample\n\necho cat | dump | undump\n\n=> cat\n\necho cat | dump\n\n=> “cat”\n\necho '“cat”' | undump\n\n=> cat")
|
279
279
|
exit 1
|
280
280
|
end
|
281
281
|
|
data/src/compile_all
CHANGED
@@ -5,9 +5,12 @@ cd src 2>/dev/null
|
|
5
5
|
make || exit 1
|
6
6
|
cd ..
|
7
7
|
|
8
|
-
|
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 && strip ../bin/rgsub))
|
9
|
+
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 && strip ../bin/left_right))
|
11
|
+
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 && strip ../bin/left_right.exe))
|
9
13
|
|
10
|
-
(gcc -O3 -s -Wall -Wextra -fwhole-program rgsub.c -o rgsub && cp -v rgsub ../bin/rgsub) #)
|
11
14
|
echo rgsub
|
12
15
|
test -e ../bin/news || (
|
13
16
|
cp -v news ../bin/news || crystal build news.cr --release -o ../bin/news
|
data/src/left_right
ADDED
Binary file
|
data/src/left_right.cc
ADDED
@@ -0,0 +1,87 @@
|
|
1
|
+
#define COLOR_RESET "\e[0m"
|
2
|
+
#define BGRN "\e[1;32m"
|
3
|
+
#include <cstring>
|
4
|
+
#include <fstream>
|
5
|
+
#include <iostream>
|
6
|
+
#include <vector>
|
7
|
+
|
8
|
+
using namespace std;
|
9
|
+
|
10
|
+
static inline void chomp(char *s, int (*func)(int)) {
|
11
|
+
char *ptr;
|
12
|
+
if (!s)
|
13
|
+
return; // handle NULL string
|
14
|
+
if (!*s)
|
15
|
+
return; // handle empty string
|
16
|
+
for (ptr = s + strlen(s) - 1; (ptr >= s) && func(*ptr); --ptr)
|
17
|
+
;
|
18
|
+
ptr[1] = 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
static inline char *strip(char *a) {
|
22
|
+
while (isspace(*a)) {
|
23
|
+
++a;
|
24
|
+
}
|
25
|
+
chomp(a, isspace);
|
26
|
+
|
27
|
+
return a;
|
28
|
+
}
|
29
|
+
|
30
|
+
static int is_punc(int c) { return c == '.' || c == '!' || c == '?'; }
|
31
|
+
|
32
|
+
class Done {};
|
33
|
+
int main() {
|
34
|
+
string all_text_0{
|
35
|
+
"<html><head>"
|
36
|
+
"<title>Politics</title></head><body><center><h1>Rational Viewpoint of "
|
37
|
+
"Politics</h1><h2 style=color:blue>BRINGING THE SANITY INTO POLITICS AS "
|
38
|
+
"IT SHOULD BE</h2><div style=width:50%>"};
|
39
|
+
string all_text, line;
|
40
|
+
string quit_str{"done"};
|
41
|
+
string null_str;
|
42
|
+
|
43
|
+
try {
|
44
|
+
for (;;)
|
45
|
+
for (auto party : vector<const char *>{"left", "right"}) {
|
46
|
+
char *str;
|
47
|
+
|
48
|
+
for (;;) {
|
49
|
+
cout << BGRN "Enter something about the political " << party
|
50
|
+
<< " that you don't find extreme or radical. (When you're done, "
|
51
|
+
"type done) " COLOR_RESET;
|
52
|
+
getline(cin, line);
|
53
|
+
str = strip((char *)line.c_str());
|
54
|
+
|
55
|
+
chomp(str, is_punc);
|
56
|
+
if (str == quit_str) {
|
57
|
+
throw Done{};
|
58
|
+
}
|
59
|
+
if (*str) {
|
60
|
+
break;
|
61
|
+
}
|
62
|
+
}
|
63
|
+
all_text += "<div><b>I believe that the ";
|
64
|
+
all_text += party;
|
65
|
+
all_text += " is sane, rational and fine due to ";
|
66
|
+
all_text += str;
|
67
|
+
all_text += '.';
|
68
|
+
all_text += "</b></div>\n";
|
69
|
+
}
|
70
|
+
} catch (Done done) {
|
71
|
+
}
|
72
|
+
|
73
|
+
all_text = all_text_0 + all_text;
|
74
|
+
|
75
|
+
all_text += "</body>";
|
76
|
+
|
77
|
+
all_text += "</html>";
|
78
|
+
{
|
79
|
+
fstream rational_viewpoint("rational_viewpoint.html", ios::out);
|
80
|
+
rational_viewpoint << all_text << endl;
|
81
|
+
}
|
82
|
+
|
83
|
+
cout << "Written to 'rational_viewpoint.html'" << endl;
|
84
|
+
system("google-chrome rational_viewpoint.html");
|
85
|
+
|
86
|
+
return 0;
|
87
|
+
}
|
data/src/left_right.exe
ADDED
Binary file
|
data/version_increment
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
(cat VERSION_NUMBER; echo 1) | add | squeeze 0 0 VERSION_NUMBER
|