democracy 1.0.86 → 1.0.93
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CYCLE_OF_HEALTH +9 -15
- data/README +2 -0
- data/README.md +64 -36
- data/VERSION_NUMBER +1 -1
- data/bin/ctit +44 -0
- data/documentation/ctit +18 -0
- data/documentation/page +8 -1
- data/gem_data/README +2 -0
- data/gem_data/VERSION_NUMBER +1 -1
- data/images/STORE.png +0 -0
- data/images/STORE2.png +0 -0
- data/index.html +103 -92
- data/non_compiled_programs/ctit +44 -0
- data/other/beautify_html_in_heredocs +8 -0
- data/{cleanup → other/cleanup} +1 -0
- data/other/communicate +88 -0
- data/other/experimental_code/ABOUT_S +1 -10
- data/other/experimental_code/a/six +0 -0
- data/other/experimental_code/odi +4 -10
- data/other/experimental_code/orig +11 -20
- data/other/experimental_code/pr.rb +1 -1
- metadata +13 -8
- data/other/experimental_code/a/a.out +0 -0
- data/other/experimental_code/a/hello_world +0 -0
- data/other/experimental_code/c_program_faster +0 -0
- /data/other/experimental_code/{Resume.pdf → description_of_what_ive_done_old.pdf} +0 -0
- /data/other/experimental_code/{merge → merge.rb} +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3f0151657641cbcb519df1c3a2a214a2351086bb27774271697a382cf5d6ac69
|
4
|
+
data.tar.gz: dfa3f7a2b73369d7973ada477abb3034bec2129a8558a895a4db6a923c497416
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 306be6d6b9dda5dfc5390313bb4903e1e5d5302bac3672a3cb57f7fddbb8e9fccd8394e8b7150511f0f4b5a5e461bb7bb7c87a3d8902972cf4cf1660eb4d136c
|
7
|
+
data.tar.gz: 5decfbc8e8514a07dce8992fd38cb0cc83f2cec7d9ad6ad4bf908387f5bffebfd4c4bb7d3d05e5fbcc9433c1f66d7c69bf2ff2f1c2665269eddf8506d5c2ba11
|
data/CYCLE_OF_HEALTH
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
The following shall be regarded as a methodological
|
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
|
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
|
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
|
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
|
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
|
51
|
+
Ask this software about “ai”
|
data/README
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 87 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
|
|
@@ -44,6 +44,17 @@ You can use them anywhere without dependencies.
|
|
44
44
|
|
45
45
|
HOW TO DOWNLOAD/INSTALL
|
46
46
|
|
47
|
+
IFRAME: https://snapcraft.io/democracy/embedded?button=black
|
48
|
+
|
49
|
+
With snap ( https://snapcraft.io/democracy)
|
50
|
+
|
51
|
+
sudo snap install democracy or snap install democracy
|
52
|
+
|
53
|
+
Binaries then would be in /snap/democracy/current/bin, source code is
|
54
|
+
in /snap/democracy
|
55
|
+
|
56
|
+
With gem command (RubyGems) (preinstalled on Mac)
|
57
|
+
|
47
58
|
gem unpack democracy
|
48
59
|
|
49
60
|
gem install democracy
|
@@ -78,8 +89,9 @@ You can use them anywhere without dependencies.
|
|
78
89
|
On rubygems, there are even fewer results. MY CODE WILL BE FOUND.
|
79
90
|
|
80
91
|
I shared my gem online.
|
81
|
-
|
82
|
-
|
92
|
+
* https://www.rubygems.org/gem/democracy
|
93
|
+
* https://twitter.com/democracygem
|
94
|
+
* https://www.linkedin.com/in/gregory-cohen-274333261/
|
83
95
|
|
84
96
|
Gems that link to this gem on RubyGems
|
85
97
|
* https://www.rubygems.org/gems/democracy
|
@@ -97,7 +109,7 @@ You can use them anywhere without dependencies.
|
|
97
109
|
|
98
110
|
Democracy Github Ruby Gem Python PIP Package
|
99
111
|
|
100
|
-
Without further ado, here are the
|
112
|
+
Without further ado, here are the 87 documented programs. (The obvious usage
|
101
113
|
ones are omitted.)
|
102
114
|
|
103
115
|
### 1. Ultimate Chat Application.exe
|
@@ -171,7 +183,7 @@ ones are omitted.)
|
|
171
183
|
### 4. Left Right.exe
|
172
184
|
|
173
185
|
This is a tool to bring sanity to politics.
|
174
|
-
![UCA](./images/
|
186
|
+
![UCA](./images/8.png)
|
175
187
|
It gets viewpoints from the person that see the good in each political
|
176
188
|
side, left, right, left, right, etc.
|
177
189
|
It then presents all of that.
|
@@ -712,7 +724,17 @@ ones are omitted.)
|
|
712
724
|
copy copies the standard input
|
713
725
|
Example
|
714
726
|
ls | copy
|
715
|
-
### 33.
|
727
|
+
### 33. Ctit
|
728
|
+
|
729
|
+
Capitalize Title
|
730
|
+
A work in progress.
|
731
|
+
Capitalizes arguments and treats them like a title.
|
732
|
+
ctit this is my heading
|
733
|
+
==> This Is My Heading for a Document
|
734
|
+
You can also do
|
735
|
+
ctit .... | copy
|
736
|
+
To copy the title to your clipboard
|
737
|
+
### 34. Gsub
|
716
738
|
|
717
739
|
Gsub is very powerful.
|
718
740
|
Usage
|
@@ -721,7 +743,7 @@ ones are omitted.)
|
|
721
743
|
cat text | gsub man dog
|
722
744
|
cat text | gsub 'man|boy|cat|dog' food
|
723
745
|
ls | gsub Desktop cat
|
724
|
-
###
|
746
|
+
### 35. News
|
725
747
|
|
726
748
|
Gets the news from bbc
|
727
749
|
Usage
|
@@ -729,14 +751,14 @@ ones are omitted.)
|
|
729
751
|
news speak
|
730
752
|
uses google_speak to SPEAK the news, one story at a time.
|
731
753
|
![UCA](./images/5.png)
|
732
|
-
###
|
754
|
+
### 36. Args
|
733
755
|
|
734
756
|
args is like a better xargs
|
735
757
|
args works properly with spaces in the name of commands
|
736
758
|
It takes exactly one argument
|
737
759
|
Example
|
738
760
|
ls | args “mv -t ../f”
|
739
|
-
###
|
761
|
+
### 37. Rnip
|
740
762
|
|
741
763
|
Replace Not In Place
|
742
764
|
This is like gsub, but for strings, not for regular expressions
|
@@ -744,10 +766,10 @@ ones are omitted.)
|
|
744
766
|
echo .......... | rnip foo bar
|
745
767
|
See also
|
746
768
|
gsub
|
747
|
-
###
|
769
|
+
### 38. Trim
|
748
770
|
|
749
771
|
Trims spaces of each line
|
750
|
-
###
|
772
|
+
### 39. Quot
|
751
773
|
|
752
774
|
Turns quotes in text into good text and makes text presentable.
|
753
775
|
Example
|
@@ -758,7 +780,7 @@ ones are omitted.)
|
|
758
780
|
Example 3
|
759
781
|
(Quote the file and output it)
|
760
782
|
quot text_file
|
761
|
-
###
|
783
|
+
### 40. Open
|
762
784
|
|
763
785
|
“open” is a very efficient program that searches a query from google,
|
764
786
|
and then opens it in Emerald Browser.
|
@@ -779,25 +801,25 @@ ones are omitted.)
|
|
779
801
|
See also
|
780
802
|
emerald-browser
|
781
803
|
close
|
782
|
-
###
|
804
|
+
### 41. Swap
|
783
805
|
|
784
806
|
Swaps two files
|
785
807
|
Example
|
786
808
|
swap text1 text2
|
787
|
-
###
|
809
|
+
### 42. Exp
|
788
810
|
|
789
811
|
exp is an exponentiation tool
|
790
812
|
(echo 5; echo 3) | exp
|
791
813
|
=> 125
|
792
814
|
(echo 2; echo 10) | exp
|
793
815
|
=> 1024
|
794
|
-
###
|
816
|
+
### 43. Div
|
795
817
|
|
796
818
|
Divides numbers
|
797
819
|
Example
|
798
820
|
(echo 5000; echo 100) | div
|
799
821
|
=> 50
|
800
|
-
###
|
822
|
+
### 44. Mul
|
801
823
|
|
802
824
|
Multiply numbers
|
803
825
|
echo 1 > file
|
@@ -807,10 +829,10 @@ ones are omitted.)
|
|
807
829
|
echo 5 >> file
|
808
830
|
cat file | mul
|
809
831
|
=> 120
|
810
|
-
###
|
832
|
+
### 45. Nth
|
811
833
|
|
812
834
|
Nth gets the nth line from the input
|
813
|
-
###
|
835
|
+
### 46. Abs
|
814
836
|
|
815
837
|
Abs gets the absolute value of an integer
|
816
838
|
The absolute value of a number is the value of that number without its
|
@@ -823,13 +845,13 @@ ones are omitted.)
|
|
823
845
|
=> 12
|
824
846
|
The last one would do -2 - -10, the result would be -12, and then the
|
825
847
|
absolute value would be computed, and so the result would be 12.
|
826
|
-
###
|
848
|
+
### 47. Add
|
827
849
|
|
828
850
|
See the sub example
|
829
851
|
add adds integers from the standard input
|
830
852
|
(echo 1; echo 2; echo 3) | add
|
831
853
|
The result would be 6
|
832
|
-
###
|
854
|
+
### 48. Sub
|
833
855
|
|
834
856
|
Sub is a simple command line program that subtracts integers.
|
835
857
|
For some reason, no simple program did this.
|
@@ -846,14 +868,14 @@ ones are omitted.)
|
|
846
868
|
(echo 5; echo 2) | sub
|
847
869
|
Result =>
|
848
870
|
3
|
849
|
-
###
|
871
|
+
### 49. Rip
|
850
872
|
|
851
873
|
Replace In Place
|
852
874
|
rip tool replaces a string, not a regular expression, with another
|
853
875
|
string
|
854
876
|
Example
|
855
877
|
rip cat dog file
|
856
|
-
###
|
878
|
+
### 50. G+
|
857
879
|
|
858
880
|
A compiler for C += 2. If you want to use C++ with Python syntax, you
|
859
881
|
can use this.
|
@@ -861,7 +883,7 @@ ones are omitted.)
|
|
861
883
|
Example
|
862
884
|
g+ a.cpp -o out
|
863
885
|
See also README file & emerald-browser and its source
|
864
|
-
###
|
886
|
+
### 51. T
|
865
887
|
|
866
888
|
“t” is incredibly useful.
|
867
889
|
It can be used many, many times every day by computer power users.
|
@@ -931,6 +953,7 @@ Navigation
|
|
931
953
|
Emoji
|
932
954
|
Close
|
933
955
|
Copy
|
956
|
+
Ctit
|
934
957
|
Gsub
|
935
958
|
News
|
936
959
|
Args
|
@@ -954,16 +977,21 @@ References
|
|
954
977
|
|
955
978
|
1. https://www.youtube.com/embed/Fx9x8cArK30
|
956
979
|
2. mailto:gregorycohenvideos@gmail.com
|
957
|
-
3. https://
|
958
|
-
4. https://
|
959
|
-
5. https://
|
960
|
-
6. https://www.rubygems.org/
|
961
|
-
7. https://
|
962
|
-
8. https://www.
|
963
|
-
9. https://www.rubygems.org/gems/
|
964
|
-
10.
|
965
|
-
11.
|
966
|
-
12. https://
|
967
|
-
13. https://
|
968
|
-
14. https://www.
|
969
|
-
15.
|
980
|
+
3. https://snapcraft.io/democracy/embedded?button=black
|
981
|
+
4. https://snapcraft.io/democracy
|
982
|
+
5. https://pypi.org/project/democracy
|
983
|
+
6. https://www.rubygems.org/gem/democracy
|
984
|
+
7. https://twitter.com/democracygem
|
985
|
+
8. https://www.linkedin.com/in/gregory-cohen-274333261/
|
986
|
+
9. https://www.rubygems.org/gems/democracy
|
987
|
+
10. https://www.rubygems.org/gems/computers
|
988
|
+
11. https://www.rubygems.org/gems/freespeech
|
989
|
+
12. https://www.rubygems.org/gems/linux
|
990
|
+
13. https://www.rubygems.org/gems/string
|
991
|
+
14. https://www.rubygems.org/gems/unix
|
992
|
+
15. http://www.github.com/gregoryc/democracy
|
993
|
+
16. http://www.rubygems.org/gems/democracy
|
994
|
+
17. https://pypi.org/project/democracy
|
995
|
+
18. https://cboard.cprogramming.com/c-programming/181160-hi-i-have-created-some-work-i-think-will-really-valuable-community.html?s=589b5504cd0e3c2dc90e9abd8b66906f
|
996
|
+
19. https://www.youtube.com/@LawrenceStevensMusic
|
997
|
+
20. https://www.github.com/gregoryc/democracy
|
data/VERSION_NUMBER
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
93.0
|
data/bin/ctit
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
#!/usr/bin/ruby
|
2
|
+
# This is a work in progress.
|
3
|
+
|
4
|
+
ROMAN = /^([limcdvx]|[[:punct:]])+$/i
|
5
|
+
|
6
|
+
def capitalize(a)
|
7
|
+
a = a.gsub(/\s*(-|–|—|:)(-|–|—|:)*\s*/, "\\1 ")
|
8
|
+
w = a.split
|
9
|
+
not_major = /^(?:to|a|an|the|on|in|of|at|and|or|but|nor|for|yet|so)$/i
|
10
|
+
w = w.map do |i|
|
11
|
+
case i
|
12
|
+
when ROMAN
|
13
|
+
i.upcase
|
14
|
+
when /^(?:not|no|be|is|are|was|were|have|has|had|do|does|did|that|it|my|me|we|our|you|he|his|she|her|they|them|who)$/i
|
15
|
+
i.capitalize
|
16
|
+
when /(-|–|—|:)/
|
17
|
+
i.capitalize
|
18
|
+
when not_major
|
19
|
+
i.downcase
|
20
|
+
else
|
21
|
+
i.capitalize
|
22
|
+
end
|
23
|
+
end
|
24
|
+
w = w.to_a
|
25
|
+
if w.size == 0
|
26
|
+
w = [" "]
|
27
|
+
end
|
28
|
+
if w[0].match(ROMAN)
|
29
|
+
w[0] = w[0].upcase
|
30
|
+
else
|
31
|
+
w[0] = w[0].capitalize
|
32
|
+
end
|
33
|
+
if (w[-1].match(ROMAN))
|
34
|
+
w[-1] = w[-1].upcase
|
35
|
+
else
|
36
|
+
w[-1] = w[-1].capitalize
|
37
|
+
end
|
38
|
+
w = w.join(" ")
|
39
|
+
w = w.gsub "- ", "-"
|
40
|
+
w
|
41
|
+
end
|
42
|
+
|
43
|
+
|
44
|
+
print (capitalize ARGV.join(" "))
|
data/documentation/ctit
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
Capitalize Title
|
4
|
+
|
5
|
+
A work in progress.
|
6
|
+
|
7
|
+
Capitalizes arguments and treats them like a title.
|
8
|
+
|
9
|
+
ctit this is my heading
|
10
|
+
==> This Is My Heading for a Document
|
11
|
+
|
12
|
+
You can also do
|
13
|
+
|
14
|
+
|
15
|
+
ctit .... | copy
|
16
|
+
|
17
|
+
To copy the title to your clipboard
|
18
|
+
|
data/documentation/page
CHANGED
@@ -276,6 +276,12 @@ def main
|
|
276
276
|
<h2>All of these programs are mostly self-contained. This is a really good thing. You can use them anywhere without dependencies.</h2>
|
277
277
|
<p>My email is <a href=mailto:#{EMAIL}>#{EMAIL}</a> and I really would like to make free and open source software. Everything I have is BSD licensed (free for commerical and non-commerical use).</p>
|
278
278
|
<p>HOW TO DOWNLOAD/INSTALL</p>
|
279
|
+
<p><iframe src="https://snapcraft.io/democracy/embedded?button=black" frameborder="0" width="100%" height="300px" style="border: 1px solid #CCC; border-radius: 2px;"></iframe></p>
|
280
|
+
|
281
|
+
<p>With snap (<a href=https://snapcraft.io/democracy>https://snapcraft.io/democracy</a>)</p>
|
282
|
+
<p>sudo snap install democracy or snap install democracy</p>
|
283
|
+
<p>Binaries then would be in /snap/democracy/current/bin, source code is in /snap/democracy</p>
|
284
|
+
<p>With gem command (RubyGems) (preinstalled on Mac)</p>
|
279
285
|
<p>gem unpack democracy</p>
|
280
286
|
<p>gem install democracy</p>
|
281
287
|
<p>work to download or install (gem)</p>
|
@@ -293,7 +299,8 @@ def main
|
|
293
299
|
<p>On rubygems, there are even fewer results. MY CODE WILL BE FOUND.</p>
|
294
300
|
<p>I shared my gem online.</p>
|
295
301
|
#{"https://www.rubygems.org/gem/democracy
|
296
|
-
https://
|
302
|
+
https://twitter.com/democracygem
|
303
|
+
https://www.linkedin.com/in/gregory-cohen-274333261/".strip.list}
|
297
304
|
<p>Gems that link to this gem on RubyGems</p>
|
298
305
|
#{"
|
299
306
|
https://www.rubygems.org/gems/democracy
|
data/gem_data/README
CHANGED
data/gem_data/VERSION_NUMBER
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
92.0
|
data/images/STORE.png
ADDED
Binary file
|
data/images/STORE2.png
ADDED
Binary file
|