elonmusk 1.0.88 → 1.0.91
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README +2 -0
- data/README.md +59 -36
- data/VERSION_NUMBER +1 -1
- data/bin/ctit +44 -0
- data/documentation/ctit +7 -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: 2a2f60eb33a7b0f56faccca9687acd503c4bf07057bccd4ffd5644a354eddc32
|
4
|
+
data.tar.gz: cb4b3f5db5045c334924fecdfbecdee2e4f5ec8717076ad2481a29742e0a4182
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 58c4479179c5716e7127752e3ba3ac3559e1a89850cc18f9cbe1f581db378e8afd5cdb6e614d8d4c31a8acc5e767045650cb5de7eacd9f1d4e48f460a06f90f2
|
7
|
+
data.tar.gz: 5d319d03a674c791c4644795c9d58b30b841338694c22cd1ac80ae1b936475551224df9d81cb0b559ed2632e0a0eaa67cfb7e873ca553de12b624db6730496bd
|
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,12 @@ 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 the input and treats it like a title.
|
732
|
+
### 34. Gsub
|
716
733
|
|
717
734
|
Gsub is very powerful.
|
718
735
|
Usage
|
@@ -721,7 +738,7 @@ ones are omitted.)
|
|
721
738
|
cat text | gsub man dog
|
722
739
|
cat text | gsub 'man|boy|cat|dog' food
|
723
740
|
ls | gsub Desktop cat
|
724
|
-
###
|
741
|
+
### 35. News
|
725
742
|
|
726
743
|
Gets the news from bbc
|
727
744
|
Usage
|
@@ -729,14 +746,14 @@ ones are omitted.)
|
|
729
746
|
news speak
|
730
747
|
uses google_speak to SPEAK the news, one story at a time.
|
731
748
|
![UCA](./images/5.png)
|
732
|
-
###
|
749
|
+
### 36. Args
|
733
750
|
|
734
751
|
args is like a better xargs
|
735
752
|
args works properly with spaces in the name of commands
|
736
753
|
It takes exactly one argument
|
737
754
|
Example
|
738
755
|
ls | args “mv -t ../f”
|
739
|
-
###
|
756
|
+
### 37. Rnip
|
740
757
|
|
741
758
|
Replace Not In Place
|
742
759
|
This is like gsub, but for strings, not for regular expressions
|
@@ -744,10 +761,10 @@ ones are omitted.)
|
|
744
761
|
echo .......... | rnip foo bar
|
745
762
|
See also
|
746
763
|
gsub
|
747
|
-
###
|
764
|
+
### 38. Trim
|
748
765
|
|
749
766
|
Trims spaces of each line
|
750
|
-
###
|
767
|
+
### 39. Quot
|
751
768
|
|
752
769
|
Turns quotes in text into good text and makes text presentable.
|
753
770
|
Example
|
@@ -758,7 +775,7 @@ ones are omitted.)
|
|
758
775
|
Example 3
|
759
776
|
(Quote the file and output it)
|
760
777
|
quot text_file
|
761
|
-
###
|
778
|
+
### 40. Open
|
762
779
|
|
763
780
|
“open” is a very efficient program that searches a query from google,
|
764
781
|
and then opens it in Emerald Browser.
|
@@ -779,25 +796,25 @@ ones are omitted.)
|
|
779
796
|
See also
|
780
797
|
emerald-browser
|
781
798
|
close
|
782
|
-
###
|
799
|
+
### 41. Swap
|
783
800
|
|
784
801
|
Swaps two files
|
785
802
|
Example
|
786
803
|
swap text1 text2
|
787
|
-
###
|
804
|
+
### 42. Exp
|
788
805
|
|
789
806
|
exp is an exponentiation tool
|
790
807
|
(echo 5; echo 3) | exp
|
791
808
|
=> 125
|
792
809
|
(echo 2; echo 10) | exp
|
793
810
|
=> 1024
|
794
|
-
###
|
811
|
+
### 43. Div
|
795
812
|
|
796
813
|
Divides numbers
|
797
814
|
Example
|
798
815
|
(echo 5000; echo 100) | div
|
799
816
|
=> 50
|
800
|
-
###
|
817
|
+
### 44. Mul
|
801
818
|
|
802
819
|
Multiply numbers
|
803
820
|
echo 1 > file
|
@@ -807,10 +824,10 @@ ones are omitted.)
|
|
807
824
|
echo 5 >> file
|
808
825
|
cat file | mul
|
809
826
|
=> 120
|
810
|
-
###
|
827
|
+
### 45. Nth
|
811
828
|
|
812
829
|
Nth gets the nth line from the input
|
813
|
-
###
|
830
|
+
### 46. Abs
|
814
831
|
|
815
832
|
Abs gets the absolute value of an integer
|
816
833
|
The absolute value of a number is the value of that number without its
|
@@ -823,13 +840,13 @@ ones are omitted.)
|
|
823
840
|
=> 12
|
824
841
|
The last one would do -2 - -10, the result would be -12, and then the
|
825
842
|
absolute value would be computed, and so the result would be 12.
|
826
|
-
###
|
843
|
+
### 47. Add
|
827
844
|
|
828
845
|
See the sub example
|
829
846
|
add adds integers from the standard input
|
830
847
|
(echo 1; echo 2; echo 3) | add
|
831
848
|
The result would be 6
|
832
|
-
###
|
849
|
+
### 48. Sub
|
833
850
|
|
834
851
|
Sub is a simple command line program that subtracts integers.
|
835
852
|
For some reason, no simple program did this.
|
@@ -846,14 +863,14 @@ ones are omitted.)
|
|
846
863
|
(echo 5; echo 2) | sub
|
847
864
|
Result =>
|
848
865
|
3
|
849
|
-
###
|
866
|
+
### 49. Rip
|
850
867
|
|
851
868
|
Replace In Place
|
852
869
|
rip tool replaces a string, not a regular expression, with another
|
853
870
|
string
|
854
871
|
Example
|
855
872
|
rip cat dog file
|
856
|
-
###
|
873
|
+
### 50. G+
|
857
874
|
|
858
875
|
A compiler for C += 2. If you want to use C++ with Python syntax, you
|
859
876
|
can use this.
|
@@ -861,7 +878,7 @@ ones are omitted.)
|
|
861
878
|
Example
|
862
879
|
g+ a.cpp -o out
|
863
880
|
See also README file & emerald-browser and its source
|
864
|
-
###
|
881
|
+
### 51. T
|
865
882
|
|
866
883
|
“t” is incredibly useful.
|
867
884
|
It can be used many, many times every day by computer power users.
|
@@ -931,6 +948,7 @@ Navigation
|
|
931
948
|
Emoji
|
932
949
|
Close
|
933
950
|
Copy
|
951
|
+
Ctit
|
934
952
|
Gsub
|
935
953
|
News
|
936
954
|
Args
|
@@ -954,16 +972,21 @@ References
|
|
954
972
|
|
955
973
|
1. https://www.youtube.com/embed/Fx9x8cArK30
|
956
974
|
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.
|
975
|
+
3. https://snapcraft.io/democracy/embedded?button=black
|
976
|
+
4. https://snapcraft.io/democracy
|
977
|
+
5. https://pypi.org/project/democracy
|
978
|
+
6. https://www.rubygems.org/gem/democracy
|
979
|
+
7. https://twitter.com/democracygem
|
980
|
+
8. https://www.linkedin.com/in/gregory-cohen-274333261/
|
981
|
+
9. https://www.rubygems.org/gems/democracy
|
982
|
+
10. https://www.rubygems.org/gems/computers
|
983
|
+
11. https://www.rubygems.org/gems/freespeech
|
984
|
+
12. https://www.rubygems.org/gems/linux
|
985
|
+
13. https://www.rubygems.org/gems/string
|
986
|
+
14. https://www.rubygems.org/gems/unix
|
987
|
+
15. http://www.github.com/gregoryc/democracy
|
988
|
+
16. http://www.rubygems.org/gems/democracy
|
989
|
+
17. https://pypi.org/project/democracy
|
990
|
+
18. https://cboard.cprogramming.com/c-programming/181160-hi-i-have-created-some-work-i-think-will-really-valuable-community.html?s=589b5504cd0e3c2dc90e9abd8b66906f
|
991
|
+
19. https://www.youtube.com/@LawrenceStevensMusic
|
992
|
+
20. https://www.github.com/gregoryc/democracy
|
data/VERSION_NUMBER
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
91.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
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
|
+
90.0
|
data/images/STORE.png
ADDED
Binary file
|
data/images/STORE2.png
ADDED
Binary file
|