politics 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c2d267c898d20ae9d834e9ab0f5b295293d44ecef9c496e2d87fd17a6c4b9c51
4
- data.tar.gz: 4f2552c8717ee33835d36ff1d90f6d40e83ee53024aca3f394890d3d163da800
3
+ metadata.gz: 5be0ca4baacad9d794548b297c4f66d018ff818db60553c16ceabe630407248f
4
+ data.tar.gz: 4dab2bd927903fa39a74eb12ac13d5d43c87d263b66a3d4710dd2c9406a8da7a
5
5
  SHA512:
6
- metadata.gz: 10d446daa8b654a522d0506208f53b8840c11fa224d96d255fd314e4e84eec342a6bc6a37cfc365eec41301a643f43f6d975a721a16f2a5ddf4a339ccc39543a
7
- data.tar.gz: 8637c106d9482f679179e1fd15606470ef92cc0720c0f9d03d02b328fde850a63902da651e4c649eb580f8bde474204f95629ffd08b16b214254a838236c50eb
6
+ metadata.gz: bb116f93d4fe0e5d50f88ddbc70111678908d4a4356171375bcd12271c644d396053988238b9c9ec96380b3c2f93a57b3613a7e1fe84d886523c8388523b475a
7
+ data.tar.gz: ea329bd05f1f2fe9b3716d100d7d16f6fff8ce977cf436dc54f51372ab21fbfda2e5c3542769f167aed325743dffb74720079ca879d4d19c8c740238da760a2d
data/README CHANGED
@@ -1,5 +1,7 @@
1
1
  Trying to help with democracy. (No affiliation with politics.)
2
2
 
3
+ https://snapcraft.io/democracy
4
+
3
5
  This is a collection of software that could truly change the world.
4
6
 
5
7
  All of these programs are mostly self-contained. This is a really good thing.
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 86 programs.
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
- https://www.rubygems.org/gem/democracy
82
- https://www.linkedin.com/in/gregory-cohen-274333261/
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 86 documented programs. (The obvious usage
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/12.png)
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. Gsub
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
- ### 34. News
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
- ### 35. Args
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
- ### 36. Rnip
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
- ### 37. Trim
764
+ ### 38. Trim
748
765
 
749
766
  Trims spaces of each line
750
- ### 38. Quot
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
- ### 39. Open
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
- ### 40. Swap
799
+ ### 41. Swap
783
800
 
784
801
  Swaps two files
785
802
  Example
786
803
  swap text1 text2
787
- ### 41. Exp
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
- ### 42. Div
811
+ ### 43. Div
795
812
 
796
813
  Divides numbers
797
814
  Example
798
815
  (echo 5000; echo 100) | div
799
816
  => 50
800
- ### 43. Mul
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
- ### 44. Nth
827
+ ### 45. Nth
811
828
 
812
829
  Nth gets the nth line from the input
813
- ### 45. Abs
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
- ### 46. Add
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
- ### 47. Sub
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
- ### 48. Rip
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
- ### 49. G+
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
- ### 50. T
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://pypi.org/project/democracy
958
- 4. https://www.rubygems.org/gems/democracy
959
- 5. https://www.rubygems.org/gems/computers
960
- 6. https://www.rubygems.org/gems/freespeech
961
- 7. https://www.rubygems.org/gems/linux
962
- 8. https://www.rubygems.org/gems/string
963
- 9. https://www.rubygems.org/gems/unix
964
- 10. http://www.github.com/gregoryc/democracy
965
- 11. http://www.rubygems.org/gems/democracy
966
- 12. https://pypi.org/project/democracy
967
- 13. https://cboard.cprogramming.com/c-programming/181160-hi-i-have-created-some-work-i-think-will-really-valuable-community.html?s=589b5504cd0e3c2dc90e9abd8b66906f
968
- 14. https://www.youtube.com/@LawrenceStevensMusic
969
- 15. https://www.github.com/gregoryc/democracy
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
- 88.0
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(" "))
@@ -0,0 +1,7 @@
1
+
2
+
3
+ Capitalize Title
4
+
5
+ A work in progress.
6
+
7
+ Capitalizes the input and treats it like a title.
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://www.linkedin.com/in/gregory-cohen-274333261/"}
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
@@ -1,5 +1,7 @@
1
1
  Trying to help with democracy.
2
2
 
3
+ https://snapcraft.io/democracy
4
+
3
5
  This is a collection of software that could truly change the world.
4
6
 
5
7
  All of these programs are mostly self-contained. This is a really good thing.
@@ -1 +1 @@
1
- 87.0
1
+ 90.0
data/images/STORE.png ADDED
Binary file
data/images/STORE2.png ADDED
Binary file