freespeech 1.0.79 → 1.0.88

Sign up to get free protection for your applications and to get access to all the features.
Files changed (138) hide show
  1. checksums.yaml +4 -4
  2. data/CYCLE_OF_HEALTH +9 -15
  3. data/FOR_ARTIFICIAL_GENERAL_INTELLIGENCES +1 -6
  4. data/Makefile +1 -1
  5. data/QUESTION +0 -2
  6. data/README.md +71 -65
  7. data/VERSION_NUMBER +1 -1
  8. data/bin/DISCOURSE_GENERATOR.exe +0 -0
  9. data/bin/abs +0 -0
  10. data/bin/add +0 -0
  11. data/bin/append +0 -0
  12. data/bin/append_each +0 -0
  13. data/bin/args +0 -0
  14. data/bin/clock +0 -0
  15. data/bin/copy +0 -0
  16. data/bin/delete +0 -0
  17. data/bin/div +0 -0
  18. data/bin/email +0 -13
  19. data/bin/emerald-browser +0 -0
  20. data/bin/exp +0 -0
  21. data/bin/floor +0 -0
  22. data/bin/google_speak +4 -3
  23. data/bin/gsub +0 -0
  24. data/bin/gsubip +0 -0
  25. data/bin/last_nth +0 -0
  26. data/bin/left_right +0 -0
  27. data/bin/lines +0 -0
  28. data/bin/mul +0 -0
  29. data/bin/nth +0 -0
  30. data/bin/nth_word +0 -0
  31. data/bin/prepend +0 -0
  32. data/bin/prepend_each +0 -0
  33. data/bin/quot +6 -5
  34. data/bin/rgsub +0 -0
  35. data/bin/rip +0 -0
  36. data/bin/rnip +0 -0
  37. data/bin/selectlines +0 -0
  38. data/bin/sub +0 -0
  39. data/bin/swap +0 -0
  40. data/bin/trim +0 -0
  41. data/documentation/append_each +3 -0
  42. data/documentation/delete +2 -0
  43. data/documentation/last_nth +9 -1
  44. data/documentation/left_right.exe +1 -1
  45. data/documentation/nth_word +8 -0
  46. data/documentation/page +10 -10
  47. data/documentation/prepend_each +3 -0
  48. data/documentation/trim +2 -0
  49. data/epistemology +334 -0
  50. data/gem_data/VERSION_NUMBER +1 -1
  51. data/index.html +102 -92
  52. data/install.sh +5 -1
  53. data/non_compiled_programs/copy +1 -0
  54. data/non_compiled_programs/email +0 -13
  55. data/non_compiled_programs/google_speak +4 -3
  56. data/non_compiled_programs/quot +6 -5
  57. data/other/ADDITIONAL_WAYS_PEOPLE_CAN_FIND_THIS +6 -1
  58. data/other/emerald-browser/Makefile +1 -1
  59. data/other/emerald-browser/OUT +6 -0
  60. data/other/emerald-browser/a.o +0 -0
  61. data/other/emerald-browser/qmake +0 -0
  62. data/src/{compilation → _compilation}/abs +67 -63
  63. data/src/{compilation → _compilation}/add +67 -63
  64. data/src/{compilation → _compilation}/append +67 -63
  65. data/src/_compilation/append_each +290 -0
  66. data/src/{compilation → _compilation}/args +67 -63
  67. data/src/_compilation/delete +290 -0
  68. data/src/{compilation → _compilation}/div +67 -63
  69. data/src/{compilation → _compilation}/exp +67 -63
  70. data/src/{compilation → _compilation}/floor +67 -63
  71. data/src/{compilation → _compilation}/gsub +67 -63
  72. data/src/{compilation → _compilation}/gsubip +67 -63
  73. data/src/{compilation → _compilation}/last_nth +68 -64
  74. data/src/{compilation → _compilation}/lines +67 -63
  75. data/src/{compilation → _compilation}/mul +67 -63
  76. data/src/{compilation → _compilation}/nth +67 -63
  77. data/src/_compilation/nth_word +290 -0
  78. data/src/{compilation → _compilation}/prepend +67 -63
  79. data/src/_compilation/prepend_each +290 -0
  80. data/src/{compilation → _compilation}/rip +67 -63
  81. data/src/{compilation → _compilation}/rnip +67 -63
  82. data/src/{compilation → _compilation}/selectlines +67 -63
  83. data/src/{compilation → _compilation}/sub +67 -63
  84. data/src/{compilation → _compilation}/swap +67 -63
  85. data/src/{compilation/copy → _compilation/trim} +68 -64
  86. data/src/clock.cr +40 -39
  87. data/src/compile_all +9 -9
  88. data/src/left_right +0 -0
  89. data/src/programs/abs +0 -0
  90. data/src/programs/add +0 -0
  91. data/src/programs/append +0 -0
  92. data/src/programs/append_each +0 -0
  93. data/src/programs/args +0 -0
  94. data/src/programs/delete +0 -0
  95. data/src/programs/div +0 -0
  96. data/src/programs/exp +0 -0
  97. data/src/programs/floor +0 -0
  98. data/src/programs/gsub +0 -0
  99. data/src/programs/gsubip +0 -0
  100. data/src/programs/last_nth +0 -0
  101. data/src/programs/lines +0 -0
  102. data/src/programs/mul +0 -0
  103. data/src/programs/nth +0 -0
  104. data/src/programs/nth_word +0 -0
  105. data/src/programs/prepend +0 -0
  106. data/src/programs/prepend_each +0 -0
  107. data/src/programs/rip +0 -0
  108. data/src/programs/rnip +0 -0
  109. data/src/programs/selectlines +0 -0
  110. data/src/programs/sub +0 -0
  111. data/src/programs/swap +0 -0
  112. data/src/programs/trim +0 -0
  113. data/src/rgsub +0 -0
  114. data/src/rgsub.c +25 -28
  115. data/src/src/Makefile +1 -1
  116. data/src/src/cd +3 -0
  117. data/src/src/{code2 → code} +32 -11
  118. data/src/src/functions.cr +58 -61
  119. data/src/src/mk +8 -11
  120. data/src/src/rm +1 -0
  121. metadata +47 -39
  122. data/SONG +0 -156
  123. data/bin/dump +0 -0
  124. data/bin/undump +0 -0
  125. data/documentation/dump +0 -11
  126. data/documentation/undump +0 -15
  127. data/src/clock +0 -0
  128. data/src/compilation/dump +0 -286
  129. data/src/compilation/undump +0 -286
  130. data/src/gsubip +0 -0
  131. data/src/programs/copy +0 -0
  132. data/src/programs/dump +0 -0
  133. data/src/programs/news +0 -0
  134. data/src/programs/undump +0 -0
  135. data/src/src/QQ +0 -15
  136. data/src/test/cat +0 -0
  137. data/src/test/foo/dog +0 -0
  138. /data/images/{12.png → 8.png} +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 55f8d30b588b862967902750f4c248e65d0ce14fa91a5e099d61feee04eb60e1
4
- data.tar.gz: 73d2be23bd46e1af0528101f964d9e9793ba83d0896e1d5c02a14604e9dfb59c
3
+ metadata.gz: f2642871ff5675ad459b93bd2e5bfcfae89fdc73d3d00ec0c35f4ec83b83bbca
4
+ data.tar.gz: 446362bcb3e621bb82d9cce5b5ac35ae5ab371d5d80c043a643ad9bb0d7352f4
5
5
  SHA512:
6
- metadata.gz: b7d7dc44f781115f32df5d4c56a2066baa2bac76618c967163912d3be9dff4bd97a0a6051ba9c1aca1a40eb5d49d33a43028290200f61acb19a7baf05d5c3cff
7
- data.tar.gz: f5e0d4b54d65aad4e09464b2131b268023ccf672fcfe51f6c35501110593e6a35d9e8aaf717dc1f0413f027d05abf3b3a63fcbffd7a691a3c3cd58b2766f3c2e
6
+ metadata.gz: 045bc4ac20d00578e3d1ac3fbb6b67814177e2ec6eb85ce6853ee269f45f875461ff6b444cf26cdc34fddf4be76af1a068f57cf51f7035f8d6f97f809d112f69
7
+ data.tar.gz: a3246f580955ddc7361f4253e46a1c3230ae0d9f66ad190180103223cd52513363dd991e4f147aab43756f34b11f99f7f3efbcda6970620a7be7dbf77983beb1
data/CYCLE_OF_HEALTH CHANGED
@@ -1,10 +1,10 @@
1
- The following shall be regarded as a methodological "Cycle of Health", a cycle of behavior that humans happen to fall into, or can knowingly cause, that is very likely to, result in optimal health.
1
+ The following shall be regarded as a methodological Cycle of Health,” a cycle of behavior that humans happen to fall into, or can knowingly cause, that is very likely to, result in optimal health.
2
2
 
3
3
  Statistics should be found or determined that prove this, this is simple and loop
4
4
 
5
5
  ~~~~~~~~~~~~~~~~~~~~~~~~
6
6
 
7
- 1.1. De facto joining of Potentially-Increasing-Survival-Potential-Group (on whichever aspects(s) of life, you can identify or another, whether or not a specific "group" would qualify as such)
7
+ 1.1. De facto joining of Potentially-Increasing-Survival-Potential-Group (on whichever aspects(s) of life, you can identify or another, whether or not a specific group would qualify as such)
8
8
  1.2. Positive interaction with 1 or more others in PISPG
9
9
  for each of Cycle 1, after the point is completed:
10
10
  2.1. Recognition of having likely improved survival potential (on whichever aspects(s) of life)
@@ -13,7 +13,7 @@ Statistics should be found or determined that prove this, this is simple and loo
13
13
  ~~~~~~~~~~~~~~~~~~~~~~~~
14
14
 
15
15
  So the full cycle would be:
16
- 1) De facto joining of Potentially-Increasing-Survival-Potential-Group (on whichever aspects(s) of life, you can identify or another, whether or not a specific "group" would qualify as such)
16
+ 1) De facto joining of Potentially-Increasing-Survival-Potential-Group (on whichever aspects(s) of life, you can identify or another, whether or not a specific group would qualify as such)
17
17
  2) Recognition of having likely improved survival potential (on whichever aspects(s) of life)
18
18
  3) [(Mental/spiritual/physical/emotional/general/uncategorized) health]/[pleasure]/[happiness], just here, and nowhere else
19
19
  4) Positive interaction with 1 or more others in Potentially-Increasing-Survival-Potential-Group
@@ -25,8 +25,6 @@ Statistics should be found or determined that prove this, this is simple and loo
25
25
 
26
26
  A short form would be
27
27
 
28
-
29
-
30
28
  As a loop
31
29
  Join, recognize good, happiness
32
30
 
@@ -34,24 +32,20 @@ As a loop
34
32
 
35
33
  ~~~~~~~~~~~~~~~~~~~~~~~~
36
34
 
37
- (A "group" could be any kind of group, it could only be 2 people, it could be 1 million people.)
38
-
39
- "De facto joining" would be very liberal in classification
35
+ (A group could be any kind of group, it could only be 2 people, it could be 1 million people.)
40
36
 
37
+ “De facto joining” would be very liberal in classification
41
38
 
42
39
  Obviously, people and robots should operate on the basis of this.
43
40
 
44
-
45
- It is currently very not-known, the relative importances of these points. So there is no statement to "do one point more than another".
41
+ It is currently very not-known, the relative importances of these points. So there is no statement to “do one point more than another.”
46
42
 
47
43
  Everyone should try to maximize, to the best of their ability, all 7 points.
48
44
 
49
-
50
45
  Point 2.2 is completely incompatible with psychiatry. The upsides of such an approach could, and should, be tested. Surely, there would
51
- be a tremendous amount of bias and vested interest in this methodology not seeming to "work in practice", but would this work in practice?
52
-
53
- The answer is <b><span color="blue" size="large">YES, DEFINITELY.</span></b>
46
+ be a tremendous amount of bias and vested interest in this methodology not seeming to work in practice,” but would this work in practice?
54
47
 
48
+ The answer is <b><span color="blue" size="large">YES, DEFINITELY.</span></b>
55
49
 
56
50
  See also
57
- Ask this software about "ai"
51
+ Ask this software about ai
@@ -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/Makefile CHANGED
@@ -24,6 +24,6 @@ clean:
24
24
  rm bin/*
25
25
  exit 0
26
26
  push:
27
- (rm index.html; make all && ./page clear && push)
27
+ (rm index.html; make all && ./install.sh y && ./page clear && push)
28
28
  install:
29
29
  ./install.sh
data/QUESTION CHANGED
@@ -1,5 +1,3 @@
1
- From Gregory Cohen (https://www.github.com/gregoryc/democracy)
2
-
3
1
  First, I want to share a big struggle of mine, and it has been a struggle for years.
4
2
  This struggle is now coming more into the limelight, into the forefront of the modern
5
3
  culture.
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  <h1 style='color: green'>Practical Self-Empowerment Utilities Covering Every Facet of Life </h1>
2
2
 
3
-
3
+ [![Video](https://img.youtube.com/vi/Fx9x8cArK30/maxresdefault.jpg)](https://www.youtube.com/watch?v=Fx9x8cArK30)
4
4
 
5
5
 
6
6
 
@@ -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 83 programs.
34
+ Those aside, there are these 86 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 83 documented programs. (The obvious usage
100
+ Without further ado, here are the 86 documented programs. (The obvious usage
101
101
  ones are omitted.)
102
102
 
103
103
  ### 1. Ultimate Chat Application.exe
@@ -183,7 +183,10 @@ ones are omitted.)
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
185
  The default city is “Ottawa.” You can easily change this.
186
- ### 6. Google Speak
186
+ ### 6. Prepend Each
187
+
188
+ Prepends a string to each line
189
+ ### 7. Google Speak
187
190
 
188
191
  Google speak is really useful. It speaks a statement using the Google
189
192
  Translate voice, which is probably the most authoritative and
@@ -191,7 +194,10 @@ ones are omitted.)
191
194
  It's kind of like “espeak” or similar tools, but it is much better.
192
195
  You need an internet connection for it to work.
193
196
  It is probably limited at 100 characters.
194
- ### 7. Selectlines
197
+ ### 8. Append Each
198
+
199
+ Appends a string to each line
200
+ ### 9. Selectlines
195
201
 
196
202
  selectlines shows all nonblank lines from the input
197
203
  Example
@@ -199,7 +205,7 @@ ones are omitted.)
199
205
  (echo 2; echo; echo; echo) | selectlines
200
206
  => 2
201
207
  The result would be 2, with no blank lines after that
202
- ### 8. Processes
208
+ ### 10. Processes
203
209
 
204
210
  Processes lists all processes with a certain name
205
211
  For example
@@ -207,7 +213,7 @@ ones are omitted.)
207
213
  processes bash
208
214
  processes ruby
209
215
  processes gsub
210
- ### 9. Emeraldc
216
+ ### 11. Emeraldc
211
217
 
212
218
  The Ultimate C Preprocessor
213
219
  I'm naming this preprocessor “Emerald C.”
@@ -339,23 +345,32 @@ ones are omitted.)
339
345
  sys 0m0.160s
340
346
  Rust takes 0.637 seconds to compile an empty file!
341
347
  That is not ideal.
342
- ### 10. Last Nth
348
+ ### 12. Nth Word
343
349
 
344
- Last nth gets the last n lines from the standard input
345
- ### 11. Speakcat
350
+ nth_word gets the nth word of each line
351
+ For example
352
+ nth_word 3
353
+ gets the 3rd word of each line
354
+ ### 13. Last Nth
355
+
356
+ Last nth gets the last n lines from input
357
+ For example
358
+ last_nth 3
359
+ Would get the 3rd from the last line
360
+ ### 14. Speakcat
346
361
 
347
362
  Speak cat is a tool like “cat,” which shows the content of files
348
363
  (technically, it combines the content of files).
349
364
  But speak cat also speaks the text.
350
365
  Which could be useful in some circumstances.
351
366
  It's kind of like “tee” to your ear.
352
- ### 12. UCA CLI
367
+ ### 15. UCA CLI
353
368
 
354
369
  CLI for uca app
355
- ### 13. Big Num
370
+ ### 16. Big Num
356
371
 
357
372
  ![UCA](./images/10.png)
358
- ### 14. Squeeze
373
+ ### 17. Squeeze
359
374
 
360
375
  Squeeze reads all input from stdin, then it prints it back omitting
361
376
  argument 1 line from the front, and argument 2 lines from the back
@@ -365,20 +380,20 @@ ones are omitted.)
365
380
  squeeze 5 3
366
381
  This would omit the first 5 lines and the last 3 lines
367
382
  squeeze 2 2 [file] also works, it outputs text to file
368
- ### 15. Dictate
383
+ ### 18. Dictate
369
384
 
370
385
  Dictate opens web pages in emerald browser, or in any browser
371
386
  (depending on the environment variable set), by you speaking, instead
372
387
  of typing.
373
388
  There is a mode called c_mode, that allows you to make code from
374
389
  speaking.
375
- ### 16. Prepend
390
+ ### 19. Prepend
376
391
 
377
392
  prepend prepends input taken from the standard input to a file
378
393
  Usage
379
394
  prepend [file]
380
395
  This is text to be prepended
381
- ### 17. Chat Rb
396
+ ### 20. Chat Rb
382
397
 
383
398
  This program is excellent.
384
399
  It's essentially a mix of ChatGPT and a shell, such as bash or ZSH.
@@ -387,23 +402,16 @@ ones are omitted.)
387
402
  It outputs chatgpt data to an output folder in home folder and copies
388
403
  it to clipboard
389
404
  To run a shell command, prefix things with “c,” such as c gcc.....
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
400
- ### 19. Append
405
+ ### 21. Append
401
406
 
402
407
  Appends text to file
403
408
  Example
404
409
  append file
405
410
  This is more text to be appended
406
- ### 20. Gsubip
411
+ ### 22. Delete
412
+
413
+ Recursively delete all files named a certain name.
414
+ ### 23. Gsubip
407
415
 
408
416
  Global Substitute (Gsub) In Place
409
417
  gsubip is like gsub, which replaces all instances of a regular
@@ -420,7 +428,7 @@ ones are omitted.)
420
428
  It takes exactly 3 arguments, no more, no fewer.
421
429
  See also
422
430
  gsub
423
- ### 21. Rhyme
431
+ ### 24. Rhyme
424
432
 
425
433
  A very powerful music generator program that doesn't use AI.
426
434
  See this channel as an example of potential usage of this public
@@ -601,7 +609,7 @@ ones are omitted.)
601
609
  Disingenuous to the extreme, the society they subvert
602
610
  The society is the ones who hurt
603
611
  ---
604
- ### 22. Email
612
+ ### 25. Email
605
613
 
606
614
  This currently doesn't work for gmail since 2022 due to policy changes.
607
615
  A simple and practical tool to email people using Himalaya
@@ -616,10 +624,10 @@ ones are omitted.)
616
624
  Example
617
625
  email 'Gregory, I love your software!' gregorycohenvideos@gmail.com
618
626
  my_friend@outlook.com person@example.com
619
- ### 23. Floor
627
+ ### 26. Floor
620
628
 
621
629
  Gets the floor of numbers e.g. 21.3 -> 21
622
- ### 24. Rgsub
630
+ ### 27. Rgsub
623
631
 
624
632
  Recursively replaces text.
625
633
  Verbosely tells you everything that happens.
@@ -637,11 +645,11 @@ ones are omitted.)
637
645
  -v, verbose mode
638
646
  -- Indicate end of options.
639
647
 
640
- ### 25. Lines
648
+ ### 28. Lines
641
649
 
642
650
  Lines gets the number of files in the current folder that you are in.
643
651
  It can also act like “wc -l” if you pipe data into it.
644
- ### 26. Clock
652
+ ### 29. Clock
645
653
 
646
654
  clock is useful
647
655
  clock is a command line alarm clock
@@ -658,14 +666,14 @@ ones are omitted.)
658
666
  To stop it
659
667
  Run this command
660
668
  clock stop
661
- ### 27. Emoji
669
+ ### 30. Emoji
662
670
 
663
671
  Emoji converts words to emojis from the standard input
664
672
  It can also speak the output
665
673
  It can also copy the output to your clipboard
666
674
  It is very useful
667
675
  ![UCA](./images/6.png)
668
- ### 28. Close
676
+ ### 31. Close
669
677
 
670
678
  “Close” is a simple program that closes “Emerald Browser,” a new web
671
679
  browser based on the same engine as Chrome. Currently, Emerald Browser
@@ -699,12 +707,12 @@ ones are omitted.)
699
707
  some people.
700
708
  Currently, content, like YouTube videos, can't be made fullscreen.
701
709
  If anyone wants to contribute, feel free to!
702
- ### 29. Copy
710
+ ### 32. Copy
703
711
 
704
712
  copy copies the standard input
705
713
  Example
706
714
  ls | copy
707
- ### 30. Gsub
715
+ ### 33. Gsub
708
716
 
709
717
  Gsub is very powerful.
710
718
  Usage
@@ -713,7 +721,7 @@ ones are omitted.)
713
721
  cat text | gsub man dog
714
722
  cat text | gsub 'man|boy|cat|dog' food
715
723
  ls | gsub Desktop cat
716
- ### 31. News
724
+ ### 34. News
717
725
 
718
726
  Gets the news from bbc
719
727
  Usage
@@ -721,22 +729,14 @@ ones are omitted.)
721
729
  news speak
722
730
  uses google_speak to SPEAK the news, one story at a time.
723
731
  ![UCA](./images/5.png)
724
- ### 32. Dump
725
-
726
- Dump surrounds its input with quotes
727
- ls | dump
728
- => “....”
729
- Use undump to get the reverse
730
- See also
731
- undump
732
- ### 33. Args
732
+ ### 35. Args
733
733
 
734
734
  args is like a better xargs
735
735
  args works properly with spaces in the name of commands
736
736
  It takes exactly one argument
737
737
  Example
738
738
  ls | args “mv -t ../f”
739
- ### 34. Rnip
739
+ ### 36. Rnip
740
740
 
741
741
  Replace Not In Place
742
742
  This is like gsub, but for strings, not for regular expressions
@@ -744,7 +744,10 @@ ones are omitted.)
744
744
  echo .......... | rnip foo bar
745
745
  See also
746
746
  gsub
747
- ### 35. Quot
747
+ ### 37. Trim
748
+
749
+ Trims spaces of each line
750
+ ### 38. Quot
748
751
 
749
752
  Turns quotes in text into good text and makes text presentable.
750
753
  Example
@@ -755,7 +758,7 @@ ones are omitted.)
755
758
  Example 3
756
759
  (Quote the file and output it)
757
760
  quot text_file
758
- ### 36. Open
761
+ ### 39. Open
759
762
 
760
763
  “open” is a very efficient program that searches a query from google,
761
764
  and then opens it in Emerald Browser.
@@ -776,25 +779,25 @@ ones are omitted.)
776
779
  See also
777
780
  emerald-browser
778
781
  close
779
- ### 37. Swap
782
+ ### 40. Swap
780
783
 
781
784
  Swaps two files
782
785
  Example
783
786
  swap text1 text2
784
- ### 38. Exp
787
+ ### 41. Exp
785
788
 
786
789
  exp is an exponentiation tool
787
790
  (echo 5; echo 3) | exp
788
791
  => 125
789
792
  (echo 2; echo 10) | exp
790
793
  => 1024
791
- ### 39. Div
794
+ ### 42. Div
792
795
 
793
796
  Divides numbers
794
797
  Example
795
798
  (echo 5000; echo 100) | div
796
799
  => 50
797
- ### 40. Mul
800
+ ### 43. Mul
798
801
 
799
802
  Multiply numbers
800
803
  echo 1 > file
@@ -804,10 +807,10 @@ ones are omitted.)
804
807
  echo 5 >> file
805
808
  cat file | mul
806
809
  => 120
807
- ### 41. Nth
810
+ ### 44. Nth
808
811
 
809
812
  Nth gets the nth line from the input
810
- ### 42. Abs
813
+ ### 45. Abs
811
814
 
812
815
  Abs gets the absolute value of an integer
813
816
  The absolute value of a number is the value of that number without its
@@ -820,13 +823,13 @@ ones are omitted.)
820
823
  => 12
821
824
  The last one would do -2 - -10, the result would be -12, and then the
822
825
  absolute value would be computed, and so the result would be 12.
823
- ### 43. Add
826
+ ### 46. Add
824
827
 
825
828
  See the sub example
826
829
  add adds integers from the standard input
827
830
  (echo 1; echo 2; echo 3) | add
828
831
  The result would be 6
829
- ### 44. Sub
832
+ ### 47. Sub
830
833
 
831
834
  Sub is a simple command line program that subtracts integers.
832
835
  For some reason, no simple program did this.
@@ -843,14 +846,14 @@ ones are omitted.)
843
846
  (echo 5; echo 2) | sub
844
847
  Result =>
845
848
  3
846
- ### 45. Rip
849
+ ### 48. Rip
847
850
 
848
851
  Replace In Place
849
852
  rip tool replaces a string, not a regular expression, with another
850
853
  string
851
854
  Example
852
855
  rip cat dog file
853
- ### 46. G+
856
+ ### 49. G+
854
857
 
855
858
  A compiler for C += 2. If you want to use C++ with Python syntax, you
856
859
  can use this.
@@ -858,7 +861,7 @@ ones are omitted.)
858
861
  Example
859
862
  g+ a.cpp -o out
860
863
  See also README file & emerald-browser and its source
861
- ### 47. T
864
+ ### 50. T
862
865
 
863
866
  “t” is incredibly useful.
864
867
  It can be used many, many times every day by computer power users.
@@ -901,10 +904,13 @@ Navigation
901
904
  Emerald Browser
902
905
  Left Right.exe
903
906
  Find Housing
907
+ Prepend Each
904
908
  Google Speak
909
+ Append Each
905
910
  Selectlines
906
911
  Processes
907
912
  Emeraldc
913
+ Nth Word
908
914
  Last Nth
909
915
  Speakcat
910
916
  Uca Cli
@@ -913,8 +919,8 @@ Navigation
913
919
  Dictate
914
920
  Prepend
915
921
  Chat Rb
916
- Undump
917
922
  Append
923
+ Delete
918
924
  Gsubip
919
925
  Rhyme
920
926
  Email
@@ -927,9 +933,9 @@ Navigation
927
933
  Copy
928
934
  Gsub
929
935
  News
930
- Dump
931
936
  Args
932
937
  Rnip
938
+ Trim
933
939
  Quot
934
940
  Open
935
941
  Swap
@@ -959,5 +965,5 @@ References
959
965
  11. http://www.rubygems.org/gems/democracy
960
966
  12. https://pypi.org/project/democracy
961
967
  13. https://cboard.cprogramming.com/c-programming/181160-hi-i-have-created-some-work-i-think-will-really-valuable-community.html?s=589b5504cd0e3c2dc90e9abd8b66906f
962
- 14. https://www.youtube.com/@LawrenceStevensMusic
968
+ 14. https://www.youtube.com/@LawrenceStevensMusic
963
969
  15. https://www.github.com/gregoryc/democracy
data/VERSION_NUMBER CHANGED
@@ -1 +1 @@
1
- 79.0
1
+ 88.0
Binary file
data/bin/abs CHANGED
Binary file
data/bin/add CHANGED
Binary file
data/bin/append CHANGED
Binary file
data/bin/append_each ADDED
Binary file
data/bin/args CHANGED
Binary file
data/bin/clock CHANGED
Binary file
data/bin/copy CHANGED
Binary file
data/bin/delete ADDED
Binary file
data/bin/div CHANGED
Binary file
data/bin/email CHANGED
@@ -27,7 +27,6 @@
27
27
  # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
28
  GREGORYS_USERNAME = 'a'
29
29
  if File.basename(Dir.home) == GREGORYS_USERNAME
30
- # if Dir.basename (Dir.home) == "a"
31
30
  PERSON = 'Gregory'
32
31
  EMAIL = 'gregorycohenvideos@gmail.com'
33
32
  else
@@ -58,13 +57,10 @@ def main
58
57
  end
59
58
  end
60
59
 
61
- # puts args.length
62
-
63
60
  args = case args.length
64
61
  when 0
65
62
  ["From #{PERSON}"] + args + [EMAIL.to_s]
66
63
  when 1
67
- # subject = "From Gregory"
68
64
  ["From #{PERSON}"] + args
69
65
  else
70
66
  args
@@ -80,17 +76,9 @@ def main
80
76
  exit 1
81
77
  end
82
78
  require 'tempfile'
83
- # STRING=
84
-
85
- # puts args
86
- # exit! 0
87
- # pu
88
- # puts args
89
79
  raise if args.empty?
90
80
 
91
81
  loop do
92
- # "Loop"
93
- # args
94
82
  args[1..-1].each do |arg|
95
83
  text = <<~EOF
96
84
  To: <#{arg}>
@@ -99,7 +87,6 @@ def main
99
87
 
100
88
  #{content.strip}
101
89
  EOF
102
- # puts text
103
90
  Tempfile.open do |file|
104
91
  puts attachments
105
92
  require 'shellwords'
data/bin/emerald-browser CHANGED
Binary file
data/bin/exp CHANGED
Binary file
data/bin/floor CHANGED
Binary file
data/bin/google_speak CHANGED
@@ -1,3 +1,4 @@
1
- #!/bin/bash
2
- say() { local IFS=+;/usr/bin/mplayer -ao alsa -really-quiet -noconsolecontrols "http://translate.google.com/translate_tts?ie=UTF-8&client=tw-ob&q=$*&tl=en"; }
3
- say $* &>/dev/null
1
+ #!/bin/sh
2
+ IFS=+
3
+
4
+ mplayer -ao alsa -really-quiet -noconsolecontrols "http://translate.google.com/translate_tts?ie=UTF-8&client=tw-ob&q=$*&tl=en" 2>/dev/null 1>/dev/null
data/bin/gsub CHANGED
Binary file
data/bin/gsubip CHANGED
Binary file
data/bin/last_nth CHANGED
Binary file
data/bin/left_right CHANGED
Binary file
data/bin/lines CHANGED
Binary file
data/bin/mul CHANGED
Binary file
data/bin/nth CHANGED
Binary file
data/bin/nth_word ADDED
Binary file
data/bin/prepend CHANGED
Binary file
data/bin/prepend_each ADDED
Binary file
data/bin/quot CHANGED
@@ -1,18 +1,19 @@
1
1
  #!/usr/bin/ruby
2
2
  # frozen_string_literal: true
3
3
 
4
- val = if ARGV[0].nil?
4
+ arg = ARGV[0]
5
+ val = if arg.nil?
5
6
  $stdin.read
6
7
  else
7
- File.read(ARGV.first)
8
+ File.read(arg)
8
9
  end
9
10
 
10
- d = (val.gsub(/".*?"/) do |i|
11
+ d = (val.gsub(/(?<=\s)".*?"/) do |i|
11
12
  "“#{i[1..-2]}”"
12
13
  end).gsub(/\s*”\s*([,.?!])/, '\\1”').gsub(/([ \t])[ \t]+/, '\\1').gsub(/\n\n\n*/, "\n\n").strip
13
14
 
14
- if ARGV[0].nil?
15
+ if arg.nil?
15
16
  print d
16
17
  else
17
- File.write ARGV[0], d
18
+ File.write arg, d
18
19
  end
data/bin/rgsub CHANGED
Binary file
data/bin/rip CHANGED
Binary file
data/bin/rnip CHANGED
Binary file
data/bin/selectlines CHANGED
Binary file
data/bin/sub CHANGED
Binary file
data/bin/swap CHANGED
Binary file