elonmusk 1.0.82 → 1.0.87

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) hide show
  1. checksums.yaml +4 -4
  2. data/CYCLE_OF_HEALTH +9 -15
  3. data/Makefile +1 -1
  4. data/README.md +73 -61
  5. data/VERSION_NUMBER +1 -1
  6. data/bin/append_each +0 -0
  7. data/bin/google_speak +4 -3
  8. data/bin/lines +0 -0
  9. data/bin/nth_word +0 -0
  10. data/bin/prepend_each +0 -0
  11. data/bin/rgsub +0 -0
  12. data/documentation/append_each +3 -0
  13. data/documentation/left_right.exe +1 -1
  14. data/documentation/page +43 -42
  15. data/documentation/prepend_each +3 -0
  16. data/gem_data/VERSION_NUMBER +1 -1
  17. data/index.html +98 -90
  18. data/install.sh +5 -1
  19. data/non_compiled_programs/google_speak +4 -3
  20. data/{cleanup → other/cleanup} +1 -0
  21. data/other/experimental_code/ABOUT_S +1 -10
  22. data/other/experimental_code/a/six +0 -0
  23. data/other/experimental_code/odi +4 -10
  24. data/other/experimental_code/orig +11 -20
  25. data/other/experimental_code/pr.rb +1 -1
  26. data/src/_compilation/abs +38 -19
  27. data/src/_compilation/add +38 -19
  28. data/src/_compilation/append +38 -19
  29. data/src/_compilation/append_each +290 -0
  30. data/src/_compilation/args +38 -19
  31. data/src/_compilation/delete +38 -19
  32. data/src/_compilation/div +38 -19
  33. data/src/_compilation/exp +38 -19
  34. data/src/_compilation/floor +38 -19
  35. data/src/_compilation/gsub +38 -19
  36. data/src/_compilation/gsubip +38 -19
  37. data/src/_compilation/last_nth +38 -19
  38. data/src/_compilation/lines +38 -19
  39. data/src/_compilation/mul +38 -19
  40. data/src/_compilation/nth +38 -19
  41. data/src/_compilation/nth_word +38 -19
  42. data/src/_compilation/prepend +38 -19
  43. data/src/_compilation/prepend_each +290 -0
  44. data/src/_compilation/rip +38 -19
  45. data/src/_compilation/rnip +38 -19
  46. data/src/_compilation/selectlines +38 -19
  47. data/src/_compilation/sub +38 -19
  48. data/src/_compilation/swap +38 -19
  49. data/src/_compilation/trim +38 -19
  50. data/src/programs/append_each +0 -0
  51. data/src/programs/lines +0 -0
  52. data/src/programs/prepend_each +0 -0
  53. data/src/rgsub +0 -0
  54. data/src/rgsub.c +24 -25
  55. data/src/src/Makefile +1 -1
  56. data/src/src/cd +3 -0
  57. data/src/src/code +30 -9
  58. data/src/src/functions.cr +29 -16
  59. data/src/src/mk +6 -8
  60. data/src/src/rm +1 -0
  61. metadata +16 -10
  62. data/other/experimental_code/a/a.out +0 -0
  63. data/other/experimental_code/a/hello_world +0 -0
  64. data/other/experimental_code/c_program_faster +0 -0
  65. data/src/src/q.cr +0 -9
  66. /data/images/{12.png → 8.png} +0 -0
  67. /data/other/experimental_code/{Resume.pdf → description_of_what_ive_done_old.pdf} +0 -0
  68. /data/other/experimental_code/{merge → merge.rb} +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '09b32e7a3e3f5679ef9a9ee038e6554550ff90d5d435ea16feef5d4c636d1392'
4
- data.tar.gz: 701beb0f72ca14fad92f0f62a9089a3961257374736757f7cfd692c9cde51e0b
3
+ metadata.gz: f173d14a810070dd97c741ab6fc313afd40cf635a781f0d91b21e381a791ebfe
4
+ data.tar.gz: 8687f058e35718c3e0a16ba843b9f0e8cfb9759c839ec69cbac81a1d1bb2028f
5
5
  SHA512:
6
- metadata.gz: 9efdb9f4030d2dfdcb9f3cb0f077f95296a10ab5a060bbd2be1409ab6e1ea982021e634bec3b68ddf9d71250b6e1597e3f102bd8409dfe0390d1c9b7b0bb6c45
7
- data.tar.gz: '0068169c00fe55d12b0c9f3607efeafb7fd0c7ea0b548d301b905b21e9fd3ef0bd50e5f3f0173accf2588bf3525f40ea009bb36630df8fe883853fda5029a89b'
6
+ metadata.gz: 26a8a69b3beeb30ba4683b38a75ba22a9f99b2b2a1a3f73455c7b612cbfbdf9afb82f65e156f7f611a5b26290a8ca4024cf8162568b1bf3bff9ad6fd14d59a68
7
+ data.tar.gz: 1bb270e71e333cc3908844debb6c91fac812af5372ae3b80ee7304f729db0bd87945f76318e1259b7762983c901a13ff5cbffe4357507f8a26c85156f28e22d1
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
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/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 84 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
 
@@ -78,8 +78,9 @@ You can use them anywhere without dependencies.
78
78
  On rubygems, there are even fewer results. MY CODE WILL BE FOUND.
79
79
 
80
80
  I shared my gem online.
81
- https://www.rubygems.org/gem/democracy
82
- https://www.linkedin.com/in/gregory-cohen-274333261/
81
+ * https://www.rubygems.org/gem/democracy
82
+ * https://twitter.com/democracygem
83
+ * https://www.linkedin.com/in/gregory-cohen-274333261/
83
84
 
84
85
  Gems that link to this gem on RubyGems
85
86
  * https://www.rubygems.org/gems/democracy
@@ -97,7 +98,7 @@ You can use them anywhere without dependencies.
97
98
 
98
99
  Democracy Github Ruby Gem Python PIP Package
99
100
 
100
- Without further ado, here are the 84 documented programs. (The obvious usage
101
+ Without further ado, here are the 86 documented programs. (The obvious usage
101
102
  ones are omitted.)
102
103
 
103
104
  ### 1. Ultimate Chat Application.exe
@@ -171,7 +172,7 @@ ones are omitted.)
171
172
  ### 4. Left Right.exe
172
173
 
173
174
  This is a tool to bring sanity to politics.
174
- ![UCA](./images/12.png)
175
+ ![UCA](./images/8.png)
175
176
  It gets viewpoints from the person that see the good in each political
176
177
  side, left, right, left, right, etc.
177
178
  It then presents all of that.
@@ -183,7 +184,10 @@ ones are omitted.)
183
184
  maximum prices, and Kijiji opens with your options.
184
185
  This tool kind of actually helped me to find housing in real life.
185
186
  The default city is “Ottawa.” You can easily change this.
186
- ### 6. Google Speak
187
+ ### 6. Prepend Each
188
+
189
+ Prepends a string to each line
190
+ ### 7. Google Speak
187
191
 
188
192
  Google speak is really useful. It speaks a statement using the Google
189
193
  Translate voice, which is probably the most authoritative and
@@ -191,7 +195,10 @@ ones are omitted.)
191
195
  It's kind of like “espeak” or similar tools, but it is much better.
192
196
  You need an internet connection for it to work.
193
197
  It is probably limited at 100 characters.
194
- ### 7. Selectlines
198
+ ### 8. Append Each
199
+
200
+ Appends a string to each line
201
+ ### 9. Selectlines
195
202
 
196
203
  selectlines shows all nonblank lines from the input
197
204
  Example
@@ -199,7 +206,7 @@ ones are omitted.)
199
206
  (echo 2; echo; echo; echo) | selectlines
200
207
  => 2
201
208
  The result would be 2, with no blank lines after that
202
- ### 8. Processes
209
+ ### 10. Processes
203
210
 
204
211
  Processes lists all processes with a certain name
205
212
  For example
@@ -207,7 +214,7 @@ ones are omitted.)
207
214
  processes bash
208
215
  processes ruby
209
216
  processes gsub
210
- ### 9. Emeraldc
217
+ ### 11. Emeraldc
211
218
 
212
219
  The Ultimate C Preprocessor
213
220
  I'm naming this preprocessor “Emerald C.”
@@ -339,32 +346,32 @@ ones are omitted.)
339
346
  sys 0m0.160s
340
347
  Rust takes 0.637 seconds to compile an empty file!
341
348
  That is not ideal.
342
- ### 10. Nth Word
349
+ ### 12. Nth Word
343
350
 
344
351
  nth_word gets the nth word of each line
345
352
  For example
346
353
  nth_word 3
347
354
  gets the 3rd word of each line
348
- ### 11. Last Nth
355
+ ### 13. Last Nth
349
356
 
350
357
  Last nth gets the last n lines from input
351
358
  For example
352
359
  last_nth 3
353
360
  Would get the 3rd from the last line
354
- ### 12. Speakcat
361
+ ### 14. Speakcat
355
362
 
356
363
  Speak cat is a tool like “cat,” which shows the content of files
357
364
  (technically, it combines the content of files).
358
365
  But speak cat also speaks the text.
359
366
  Which could be useful in some circumstances.
360
367
  It's kind of like “tee” to your ear.
361
- ### 13. UCA CLI
368
+ ### 15. UCA CLI
362
369
 
363
370
  CLI for uca app
364
- ### 14. Big Num
371
+ ### 16. Big Num
365
372
 
366
373
  ![UCA](./images/10.png)
367
- ### 15. Squeeze
374
+ ### 17. Squeeze
368
375
 
369
376
  Squeeze reads all input from stdin, then it prints it back omitting
370
377
  argument 1 line from the front, and argument 2 lines from the back
@@ -374,20 +381,20 @@ ones are omitted.)
374
381
  squeeze 5 3
375
382
  This would omit the first 5 lines and the last 3 lines
376
383
  squeeze 2 2 [file] also works, it outputs text to file
377
- ### 16. Dictate
384
+ ### 18. Dictate
378
385
 
379
386
  Dictate opens web pages in emerald browser, or in any browser
380
387
  (depending on the environment variable set), by you speaking, instead
381
388
  of typing.
382
389
  There is a mode called c_mode, that allows you to make code from
383
390
  speaking.
384
- ### 17. Prepend
391
+ ### 19. Prepend
385
392
 
386
393
  prepend prepends input taken from the standard input to a file
387
394
  Usage
388
395
  prepend [file]
389
396
  This is text to be prepended
390
- ### 18. Chat Rb
397
+ ### 20. Chat Rb
391
398
 
392
399
  This program is excellent.
393
400
  It's essentially a mix of ChatGPT and a shell, such as bash or ZSH.
@@ -396,16 +403,16 @@ ones are omitted.)
396
403
  It outputs chatgpt data to an output folder in home folder and copies
397
404
  it to clipboard
398
405
  To run a shell command, prefix things with “c,” such as c gcc.....
399
- ### 19. Append
406
+ ### 21. Append
400
407
 
401
408
  Appends text to file
402
409
  Example
403
410
  append file
404
411
  This is more text to be appended
405
- ### 20. Delete
412
+ ### 22. Delete
406
413
 
407
414
  Recursively delete all files named a certain name.
408
- ### 21. Gsubip
415
+ ### 23. Gsubip
409
416
 
410
417
  Global Substitute (Gsub) In Place
411
418
  gsubip is like gsub, which replaces all instances of a regular
@@ -422,7 +429,7 @@ ones are omitted.)
422
429
  It takes exactly 3 arguments, no more, no fewer.
423
430
  See also
424
431
  gsub
425
- ### 22. Rhyme
432
+ ### 24. Rhyme
426
433
 
427
434
  A very powerful music generator program that doesn't use AI.
428
435
  See this channel as an example of potential usage of this public
@@ -603,7 +610,7 @@ ones are omitted.)
603
610
  Disingenuous to the extreme, the society they subvert
604
611
  The society is the ones who hurt
605
612
  ---
606
- ### 23. Email
613
+ ### 25. Email
607
614
 
608
615
  This currently doesn't work for gmail since 2022 due to policy changes.
609
616
  A simple and practical tool to email people using Himalaya
@@ -618,10 +625,10 @@ ones are omitted.)
618
625
  Example
619
626
  email 'Gregory, I love your software!' gregorycohenvideos@gmail.com
620
627
  my_friend@outlook.com person@example.com
621
- ### 24. Floor
628
+ ### 26. Floor
622
629
 
623
630
  Gets the floor of numbers e.g. 21.3 -> 21
624
- ### 25. Rgsub
631
+ ### 27. Rgsub
625
632
 
626
633
  Recursively replaces text.
627
634
  Verbosely tells you everything that happens.
@@ -639,11 +646,11 @@ ones are omitted.)
639
646
  -v, verbose mode
640
647
  -- Indicate end of options.
641
648
 
642
- ### 26. Lines
649
+ ### 28. Lines
643
650
 
644
651
  Lines gets the number of files in the current folder that you are in.
645
652
  It can also act like “wc -l” if you pipe data into it.
646
- ### 27. Clock
653
+ ### 29. Clock
647
654
 
648
655
  clock is useful
649
656
  clock is a command line alarm clock
@@ -660,14 +667,14 @@ ones are omitted.)
660
667
  To stop it
661
668
  Run this command
662
669
  clock stop
663
- ### 28. Emoji
670
+ ### 30. Emoji
664
671
 
665
672
  Emoji converts words to emojis from the standard input
666
673
  It can also speak the output
667
674
  It can also copy the output to your clipboard
668
675
  It is very useful
669
676
  ![UCA](./images/6.png)
670
- ### 29. Close
677
+ ### 31. Close
671
678
 
672
679
  “Close” is a simple program that closes “Emerald Browser,” a new web
673
680
  browser based on the same engine as Chrome. Currently, Emerald Browser
@@ -701,12 +708,12 @@ ones are omitted.)
701
708
  some people.
702
709
  Currently, content, like YouTube videos, can't be made fullscreen.
703
710
  If anyone wants to contribute, feel free to!
704
- ### 30. Copy
711
+ ### 32. Copy
705
712
 
706
713
  copy copies the standard input
707
714
  Example
708
715
  ls | copy
709
- ### 31. Gsub
716
+ ### 33. Gsub
710
717
 
711
718
  Gsub is very powerful.
712
719
  Usage
@@ -715,7 +722,7 @@ ones are omitted.)
715
722
  cat text | gsub man dog
716
723
  cat text | gsub 'man|boy|cat|dog' food
717
724
  ls | gsub Desktop cat
718
- ### 32. News
725
+ ### 34. News
719
726
 
720
727
  Gets the news from bbc
721
728
  Usage
@@ -723,14 +730,14 @@ ones are omitted.)
723
730
  news speak
724
731
  uses google_speak to SPEAK the news, one story at a time.
725
732
  ![UCA](./images/5.png)
726
- ### 33. Args
733
+ ### 35. Args
727
734
 
728
735
  args is like a better xargs
729
736
  args works properly with spaces in the name of commands
730
737
  It takes exactly one argument
731
738
  Example
732
739
  ls | args “mv -t ../f”
733
- ### 34. Rnip
740
+ ### 36. Rnip
734
741
 
735
742
  Replace Not In Place
736
743
  This is like gsub, but for strings, not for regular expressions
@@ -738,10 +745,10 @@ ones are omitted.)
738
745
  echo .......... | rnip foo bar
739
746
  See also
740
747
  gsub
741
- ### 35. Trim
748
+ ### 37. Trim
742
749
 
743
750
  Trims spaces of each line
744
- ### 36. Quot
751
+ ### 38. Quot
745
752
 
746
753
  Turns quotes in text into good text and makes text presentable.
747
754
  Example
@@ -752,7 +759,7 @@ ones are omitted.)
752
759
  Example 3
753
760
  (Quote the file and output it)
754
761
  quot text_file
755
- ### 37. Open
762
+ ### 39. Open
756
763
 
757
764
  “open” is a very efficient program that searches a query from google,
758
765
  and then opens it in Emerald Browser.
@@ -773,25 +780,25 @@ ones are omitted.)
773
780
  See also
774
781
  emerald-browser
775
782
  close
776
- ### 38. Swap
783
+ ### 40. Swap
777
784
 
778
785
  Swaps two files
779
786
  Example
780
787
  swap text1 text2
781
- ### 39. Exp
788
+ ### 41. Exp
782
789
 
783
790
  exp is an exponentiation tool
784
791
  (echo 5; echo 3) | exp
785
792
  => 125
786
793
  (echo 2; echo 10) | exp
787
794
  => 1024
788
- ### 40. Div
795
+ ### 42. Div
789
796
 
790
797
  Divides numbers
791
798
  Example
792
799
  (echo 5000; echo 100) | div
793
800
  => 50
794
- ### 41. Mul
801
+ ### 43. Mul
795
802
 
796
803
  Multiply numbers
797
804
  echo 1 > file
@@ -801,10 +808,10 @@ ones are omitted.)
801
808
  echo 5 >> file
802
809
  cat file | mul
803
810
  => 120
804
- ### 42. Nth
811
+ ### 44. Nth
805
812
 
806
813
  Nth gets the nth line from the input
807
- ### 43. Abs
814
+ ### 45. Abs
808
815
 
809
816
  Abs gets the absolute value of an integer
810
817
  The absolute value of a number is the value of that number without its
@@ -817,13 +824,13 @@ ones are omitted.)
817
824
  => 12
818
825
  The last one would do -2 - -10, the result would be -12, and then the
819
826
  absolute value would be computed, and so the result would be 12.
820
- ### 44. Add
827
+ ### 46. Add
821
828
 
822
829
  See the sub example
823
830
  add adds integers from the standard input
824
831
  (echo 1; echo 2; echo 3) | add
825
832
  The result would be 6
826
- ### 45. Sub
833
+ ### 47. Sub
827
834
 
828
835
  Sub is a simple command line program that subtracts integers.
829
836
  For some reason, no simple program did this.
@@ -840,14 +847,14 @@ ones are omitted.)
840
847
  (echo 5; echo 2) | sub
841
848
  Result =>
842
849
  3
843
- ### 46. Rip
850
+ ### 48. Rip
844
851
 
845
852
  Replace In Place
846
853
  rip tool replaces a string, not a regular expression, with another
847
854
  string
848
855
  Example
849
856
  rip cat dog file
850
- ### 47. G+
857
+ ### 49. G+
851
858
 
852
859
  A compiler for C += 2. If you want to use C++ with Python syntax, you
853
860
  can use this.
@@ -855,7 +862,7 @@ ones are omitted.)
855
862
  Example
856
863
  g+ a.cpp -o out
857
864
  See also README file & emerald-browser and its source
858
- ### 48. T
865
+ ### 50. T
859
866
 
860
867
  “t” is incredibly useful.
861
868
  It can be used many, many times every day by computer power users.
@@ -898,7 +905,9 @@ Navigation
898
905
  Emerald Browser
899
906
  Left Right.exe
900
907
  Find Housing
908
+ Prepend Each
901
909
  Google Speak
910
+ Append Each
902
911
  Selectlines
903
912
  Processes
904
913
  Emeraldc
@@ -947,15 +956,18 @@ References
947
956
  1. https://www.youtube.com/embed/Fx9x8cArK30
948
957
  2. mailto:gregorycohenvideos@gmail.com
949
958
  3. https://pypi.org/project/democracy
950
- 4. https://www.rubygems.org/gems/democracy
951
- 5. https://www.rubygems.org/gems/computers
952
- 6. https://www.rubygems.org/gems/freespeech
953
- 7. https://www.rubygems.org/gems/linux
954
- 8. https://www.rubygems.org/gems/string
955
- 9. https://www.rubygems.org/gems/unix
956
- 10. http://www.github.com/gregoryc/democracy
957
- 11. http://www.rubygems.org/gems/democracy
958
- 12. https://pypi.org/project/democracy
959
- 13. https://cboard.cprogramming.com/c-programming/181160-hi-i-have-created-some-work-i-think-will-really-valuable-community.html?s=589b5504cd0e3c2dc90e9abd8b66906f
960
- 14. https://www.youtube.com/@LawrenceStevensMusic
961
- 15. https://www.github.com/gregoryc/democracy
959
+ 4. https://www.rubygems.org/gem/democracy
960
+ 5. https://twitter.com/democracygem
961
+ 6. https://www.linkedin.com/in/gregory-cohen-274333261/
962
+ 7. https://www.rubygems.org/gems/democracy
963
+ 8. https://www.rubygems.org/gems/computers
964
+ 9. https://www.rubygems.org/gems/freespeech
965
+ 10. https://www.rubygems.org/gems/linux
966
+ 11. https://www.rubygems.org/gems/string
967
+ 12. https://www.rubygems.org/gems/unix
968
+ 13. http://www.github.com/gregoryc/democracy
969
+ 14. http://www.rubygems.org/gems/democracy
970
+ 15. https://pypi.org/project/democracy
971
+ 16. https://cboard.cprogramming.com/c-programming/181160-hi-i-have-created-some-work-i-think-will-really-valuable-community.html?s=589b5504cd0e3c2dc90e9abd8b66906f
972
+ 17. https://www.youtube.com/@LawrenceStevensMusic
973
+ 18. https://www.github.com/gregoryc/democracy
data/VERSION_NUMBER CHANGED
@@ -1 +1 @@
1
- 82.0
1
+ 87.0
data/bin/append_each ADDED
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/lines CHANGED
Binary file
data/bin/nth_word CHANGED
Binary file
data/bin/prepend_each ADDED
Binary file
data/bin/rgsub CHANGED
Binary file
@@ -0,0 +1,3 @@
1
+
2
+
3
+ Appends a string to each line
@@ -1,6 +1,6 @@
1
1
  This is a tool to bring sanity to politics.
2
2
 
3
- ![UCA](./images/12.png)
3
+ ![UCA](./images/8.png)
4
4
 
5
5
  It gets viewpoints from the person that see the good in each political side, left, right, left, right, etc.
6
6
 
data/documentation/page CHANGED
@@ -139,43 +139,43 @@ def main
139
139
  a = "<div class=inner>#{a}</div>"
140
140
 
141
141
  a = <<~EOF
142
- <!DOCTYPE html>
143
-
144
- <html>
145
- <head>
146
- <meta charset="UTF-8">
147
- <title>Democracy</title>
148
- <meta name="viewport" content="width=device-width, initial-scale=1"/>
149
- <style type=text/css>
150
- b, a {
151
-
152
- text-shadow:0px 0px 0px black;
153
- color:#009900;
154
- }
155
-
156
- h1, h2 {
157
- color: #009900;
158
- }
159
-
160
- .header {
161
- box-shadow: none;
162
- padding-top: 30px;
163
- margin-top: 20px;
164
- margin-bottom: 20px;
165
-
166
- }
167
-
168
- body {
169
- z-index: 0;
170
- }
171
-
172
- .cd1 {
173
- display:block;
174
- z-index: 1;
175
- }
176
-
177
- .cd2 {
178
- background-color:#{BACKGROUND_COLOR};
142
+ <!DOCTYPE html>
143
+
144
+ <html>
145
+ <head>
146
+ <meta charset="UTF-8">
147
+ <title>Democracy</title>
148
+ <meta name="viewport" content="width=device-width, initial-scale=1"/>
149
+ <style type=text/css>
150
+ b, a {
151
+
152
+ text-shadow:0px 0px 0px black;
153
+ color:#009900;
154
+ }
155
+
156
+ h1, h2 {
157
+ color: #009900;
158
+ }
159
+
160
+ .header {
161
+ box-shadow: none;
162
+ padding-top: 30px;
163
+ margin-top: 20px;
164
+ margin-bottom: 20px;
165
+
166
+ }
167
+
168
+ body {
169
+ z-index: 0;
170
+ }
171
+
172
+ .cd1 {
173
+ display:block;
174
+ z-index: 1;
175
+ }
176
+
177
+ .cd2 {
178
+ background-color:#{BACKGROUND_COLOR};
179
179
  color:#{BG};
180
180
  width:50%;
181
181
  display:inline-block;
@@ -293,7 +293,8 @@ def main
293
293
  <p>On rubygems, there are even fewer results. MY CODE WILL BE FOUND.</p>
294
294
  <p>I shared my gem online.</p>
295
295
  #{"https://www.rubygems.org/gem/democracy
296
- https://www.linkedin.com/in/gregory-cohen-274333261/"}
296
+ https://twitter.com/democracygem
297
+ https://www.linkedin.com/in/gregory-cohen-274333261/".strip.list}
297
298
  <p>Gems that link to this gem on RubyGems</p>
298
299
  #{"
299
300
  https://www.rubygems.org/gems/democracy
@@ -431,9 +432,9 @@ if (not_first_time) {
431
432
  str.gsub! '"', '\\"'
432
433
  str2.gsub! '"', '\\"'
433
434
 
434
- cmd = 'cd ..; cp index.html /home/a/foon/*/index.html; lynx -dump -stdin<README.md | \
435
- squeeze 0 0 README.md;
436
- ruby -e "print File.read(\"README.md\").gsub(10.chr, \' \'+10.chr).gsub(' << str << "," << str2 << ')"|squeeze 0 0 README.md'
435
+ cmd = 'cd ..; cp index.html /home/a/foon/*/index.html; lynx -dump -stdin<README.md | squeeze 0 0 README.md
436
+
437
+ ruby -e "print File.read(\"README.md\").gsub(10.chr, \' \'+10.chr).gsub(' << str << "," << str2 << ')" | squeeze 0 0 README.md'
437
438
  system cmd
438
439
 
439
440
  a = File.open("../README.md")
@@ -448,7 +449,7 @@ ruby -e "print File.read(\"README.md\").gsub(10.chr, \' \'+10.chr).gsub(' << st
448
449
  File.open "../README.md", "w" do |file|
449
450
  file << ("<h1 style='color: green'>" << lines[0] << " " << lines[1] << "</h1>" << ("\n " * 2))
450
451
  v = "Fx9x8cArK30"
451
- # file << "[![Video](https://img.youtube.com/vi/#{v}/maxresdefault.jpg)](https://www.youtube.com/watch?v=#{v}) "
452
+ file << "[![Video](https://img.youtube.com/vi/#{v}/maxresdefault.jpg)](https://www.youtube.com/watch?v=#{v}) "
452
453
  file << ("\n " * 5)
453
454
  file << rest.sub(/all\s*still/m, "all still").sub(/IFRAME.+?\n/, "").gsub(/\[\d+\]/,
454
455
  "").each_line.reject do |line|
@@ -0,0 +1,3 @@
1
+
2
+
3
+ Prepends a string to each line
@@ -1 +1 @@
1
- 81.0
1
+ 86.0