freespeech 1.0.87 → 1.0.91
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/README +2 -0
- data/README.md +55 -36
- data/VERSION_NUMBER +1 -1
- data/bin/ctit +44 -0
- data/documentation/ctit +7 -0
- data/documentation/page +6 -0
- 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 +62 -53
- data/non_compiled_programs/ctit +44 -0
- data/other/beautify_html_in_heredocs +8 -0
- data/other/communicate +88 -0
- metadata +10 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 890fd0f3c113105d4961dd2cea465de0380b5532f3ad0ef0741225364ad6c55c
|
|
4
|
+
data.tar.gz: c8422bca2bc2e9595b87fd60c74ad6286ad6f38159ee0acd3a6410f4192ca0bf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fdb8d42cd6bb5aa784b5681cc0cd6c366258166738d884bb3fc21c9f5a20271428d2492b2f105fac71211829b88fa778ce7354130a9d66c1f01aecdcc9ee6274
|
|
7
|
+
data.tar.gz: 36ad1636f8013480049556936881570a694bc32a605842bd086b764d8e1a1cefc12047bfe6a6dcee2b59f716965cacbdcd502a4a83f02c72048300799eb4f9f0
|
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
|
|
@@ -98,7 +109,7 @@ You can use them anywhere without dependencies.
|
|
|
98
109
|
|
|
99
110
|
Democracy Github Ruby Gem Python PIP Package
|
|
100
111
|
|
|
101
|
-
Without further ado, here are the
|
|
112
|
+
Without further ado, here are the 87 documented programs. (The obvious usage
|
|
102
113
|
ones are omitted.)
|
|
103
114
|
|
|
104
115
|
### 1. Ultimate Chat Application.exe
|
|
@@ -713,7 +724,12 @@ ones are omitted.)
|
|
|
713
724
|
copy copies the standard input
|
|
714
725
|
Example
|
|
715
726
|
ls | copy
|
|
716
|
-
### 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
|
|
717
733
|
|
|
718
734
|
Gsub is very powerful.
|
|
719
735
|
Usage
|
|
@@ -722,7 +738,7 @@ ones are omitted.)
|
|
|
722
738
|
cat text | gsub man dog
|
|
723
739
|
cat text | gsub 'man|boy|cat|dog' food
|
|
724
740
|
ls | gsub Desktop cat
|
|
725
|
-
###
|
|
741
|
+
### 35. News
|
|
726
742
|
|
|
727
743
|
Gets the news from bbc
|
|
728
744
|
Usage
|
|
@@ -730,14 +746,14 @@ ones are omitted.)
|
|
|
730
746
|
news speak
|
|
731
747
|
uses google_speak to SPEAK the news, one story at a time.
|
|
732
748
|

|
|
733
|
-
###
|
|
749
|
+
### 36. Args
|
|
734
750
|
|
|
735
751
|
args is like a better xargs
|
|
736
752
|
args works properly with spaces in the name of commands
|
|
737
753
|
It takes exactly one argument
|
|
738
754
|
Example
|
|
739
755
|
ls | args “mv -t ../f”
|
|
740
|
-
###
|
|
756
|
+
### 37. Rnip
|
|
741
757
|
|
|
742
758
|
Replace Not In Place
|
|
743
759
|
This is like gsub, but for strings, not for regular expressions
|
|
@@ -745,10 +761,10 @@ ones are omitted.)
|
|
|
745
761
|
echo .......... | rnip foo bar
|
|
746
762
|
See also
|
|
747
763
|
gsub
|
|
748
|
-
###
|
|
764
|
+
### 38. Trim
|
|
749
765
|
|
|
750
766
|
Trims spaces of each line
|
|
751
|
-
###
|
|
767
|
+
### 39. Quot
|
|
752
768
|
|
|
753
769
|
Turns quotes in text into good text and makes text presentable.
|
|
754
770
|
Example
|
|
@@ -759,7 +775,7 @@ ones are omitted.)
|
|
|
759
775
|
Example 3
|
|
760
776
|
(Quote the file and output it)
|
|
761
777
|
quot text_file
|
|
762
|
-
###
|
|
778
|
+
### 40. Open
|
|
763
779
|
|
|
764
780
|
“open” is a very efficient program that searches a query from google,
|
|
765
781
|
and then opens it in Emerald Browser.
|
|
@@ -780,25 +796,25 @@ ones are omitted.)
|
|
|
780
796
|
See also
|
|
781
797
|
emerald-browser
|
|
782
798
|
close
|
|
783
|
-
###
|
|
799
|
+
### 41. Swap
|
|
784
800
|
|
|
785
801
|
Swaps two files
|
|
786
802
|
Example
|
|
787
803
|
swap text1 text2
|
|
788
|
-
###
|
|
804
|
+
### 42. Exp
|
|
789
805
|
|
|
790
806
|
exp is an exponentiation tool
|
|
791
807
|
(echo 5; echo 3) | exp
|
|
792
808
|
=> 125
|
|
793
809
|
(echo 2; echo 10) | exp
|
|
794
810
|
=> 1024
|
|
795
|
-
###
|
|
811
|
+
### 43. Div
|
|
796
812
|
|
|
797
813
|
Divides numbers
|
|
798
814
|
Example
|
|
799
815
|
(echo 5000; echo 100) | div
|
|
800
816
|
=> 50
|
|
801
|
-
###
|
|
817
|
+
### 44. Mul
|
|
802
818
|
|
|
803
819
|
Multiply numbers
|
|
804
820
|
echo 1 > file
|
|
@@ -808,10 +824,10 @@ ones are omitted.)
|
|
|
808
824
|
echo 5 >> file
|
|
809
825
|
cat file | mul
|
|
810
826
|
=> 120
|
|
811
|
-
###
|
|
827
|
+
### 45. Nth
|
|
812
828
|
|
|
813
829
|
Nth gets the nth line from the input
|
|
814
|
-
###
|
|
830
|
+
### 46. Abs
|
|
815
831
|
|
|
816
832
|
Abs gets the absolute value of an integer
|
|
817
833
|
The absolute value of a number is the value of that number without its
|
|
@@ -824,13 +840,13 @@ ones are omitted.)
|
|
|
824
840
|
=> 12
|
|
825
841
|
The last one would do -2 - -10, the result would be -12, and then the
|
|
826
842
|
absolute value would be computed, and so the result would be 12.
|
|
827
|
-
###
|
|
843
|
+
### 47. Add
|
|
828
844
|
|
|
829
845
|
See the sub example
|
|
830
846
|
add adds integers from the standard input
|
|
831
847
|
(echo 1; echo 2; echo 3) | add
|
|
832
848
|
The result would be 6
|
|
833
|
-
###
|
|
849
|
+
### 48. Sub
|
|
834
850
|
|
|
835
851
|
Sub is a simple command line program that subtracts integers.
|
|
836
852
|
For some reason, no simple program did this.
|
|
@@ -847,14 +863,14 @@ ones are omitted.)
|
|
|
847
863
|
(echo 5; echo 2) | sub
|
|
848
864
|
Result =>
|
|
849
865
|
3
|
|
850
|
-
###
|
|
866
|
+
### 49. Rip
|
|
851
867
|
|
|
852
868
|
Replace In Place
|
|
853
869
|
rip tool replaces a string, not a regular expression, with another
|
|
854
870
|
string
|
|
855
871
|
Example
|
|
856
872
|
rip cat dog file
|
|
857
|
-
###
|
|
873
|
+
### 50. G+
|
|
858
874
|
|
|
859
875
|
A compiler for C += 2. If you want to use C++ with Python syntax, you
|
|
860
876
|
can use this.
|
|
@@ -862,7 +878,7 @@ ones are omitted.)
|
|
|
862
878
|
Example
|
|
863
879
|
g+ a.cpp -o out
|
|
864
880
|
See also README file & emerald-browser and its source
|
|
865
|
-
###
|
|
881
|
+
### 51. T
|
|
866
882
|
|
|
867
883
|
“t” is incredibly useful.
|
|
868
884
|
It can be used many, many times every day by computer power users.
|
|
@@ -932,6 +948,7 @@ Navigation
|
|
|
932
948
|
Emoji
|
|
933
949
|
Close
|
|
934
950
|
Copy
|
|
951
|
+
Ctit
|
|
935
952
|
Gsub
|
|
936
953
|
News
|
|
937
954
|
Args
|
|
@@ -955,19 +972,21 @@ References
|
|
|
955
972
|
|
|
956
973
|
1. https://www.youtube.com/embed/Fx9x8cArK30
|
|
957
974
|
2. mailto:gregorycohenvideos@gmail.com
|
|
958
|
-
3. https://
|
|
959
|
-
4. https://
|
|
960
|
-
5. https://
|
|
961
|
-
6. https://www.
|
|
962
|
-
7. https://
|
|
963
|
-
8. https://www.
|
|
964
|
-
9. https://www.rubygems.org/gems/
|
|
965
|
-
10. https://www.rubygems.org/gems/
|
|
966
|
-
11. https://www.rubygems.org/gems/
|
|
967
|
-
12. https://www.rubygems.org/gems/
|
|
968
|
-
13.
|
|
969
|
-
14.
|
|
970
|
-
15.
|
|
971
|
-
16.
|
|
972
|
-
17. https://
|
|
973
|
-
18. https://
|
|
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>
|
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
|