ufos 1.0.79 → 1.0.87
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/FOR_ARTIFICIAL_GENERAL_INTELLIGENCES +1 -6
- data/Makefile +1 -1
- data/QUESTION +0 -2
- data/README.md +89 -79
- data/VERSION_NUMBER +1 -1
- data/bin/DISCOURSE_GENERATOR.exe +0 -0
- data/bin/abs +0 -0
- data/bin/add +0 -0
- data/bin/append +0 -0
- data/bin/append_each +0 -0
- data/bin/args +0 -0
- data/bin/clock +0 -0
- data/bin/copy +0 -0
- data/bin/delete +0 -0
- data/bin/div +0 -0
- data/bin/email +0 -13
- data/bin/emerald-browser +0 -0
- data/bin/exp +0 -0
- data/bin/floor +0 -0
- data/bin/google_speak +4 -3
- data/bin/gsub +0 -0
- data/bin/gsubip +0 -0
- data/bin/last_nth +0 -0
- data/bin/left_right +0 -0
- data/bin/lines +0 -0
- data/bin/mul +0 -0
- data/bin/nth +0 -0
- data/bin/nth_word +0 -0
- data/bin/prepend +0 -0
- data/bin/prepend_each +0 -0
- data/bin/rgsub +0 -0
- data/bin/rip +0 -0
- data/bin/rnip +0 -0
- data/bin/selectlines +0 -0
- data/bin/sub +0 -0
- data/bin/swap +0 -0
- data/bin/trim +0 -0
- data/documentation/append_each +3 -0
- data/documentation/delete +2 -0
- data/documentation/last_nth +9 -1
- data/documentation/left_right.exe +1 -1
- data/documentation/nth_word +8 -0
- data/documentation/page +12 -11
- data/documentation/prepend_each +3 -0
- data/documentation/trim +2 -0
- data/epistemology +334 -0
- data/gem_data/VERSION_NUMBER +1 -1
- data/index.html +70 -58
- data/install.sh +5 -1
- data/non_compiled_programs/copy +1 -0
- data/non_compiled_programs/email +0 -13
- data/non_compiled_programs/google_speak +4 -3
- data/other/ADDITIONAL_WAYS_PEOPLE_CAN_FIND_THIS +6 -1
- data/{cleanup → other/cleanup} +1 -0
- data/other/emerald-browser/Makefile +1 -1
- data/other/emerald-browser/OUT +6 -0
- data/other/emerald-browser/a.o +0 -0
- data/other/emerald-browser/qmake +0 -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
- data/src/{compilation → _compilation}/abs +67 -63
- data/src/{compilation → _compilation}/add +67 -63
- data/src/{compilation → _compilation}/append +67 -63
- data/src/_compilation/append_each +290 -0
- data/src/{compilation → _compilation}/args +67 -63
- data/src/_compilation/delete +290 -0
- data/src/{compilation → _compilation}/div +67 -63
- data/src/{compilation → _compilation}/exp +67 -63
- data/src/{compilation → _compilation}/floor +67 -63
- data/src/{compilation → _compilation}/gsub +67 -63
- data/src/{compilation → _compilation}/gsubip +67 -63
- data/src/{compilation → _compilation}/last_nth +68 -64
- data/src/{compilation → _compilation}/lines +67 -63
- data/src/{compilation → _compilation}/mul +67 -63
- data/src/{compilation → _compilation}/nth +67 -63
- data/src/_compilation/nth_word +290 -0
- data/src/{compilation → _compilation}/prepend +67 -63
- data/src/_compilation/prepend_each +290 -0
- data/src/{compilation → _compilation}/rip +67 -63
- data/src/{compilation → _compilation}/rnip +67 -63
- data/src/{compilation → _compilation}/selectlines +67 -63
- data/src/{compilation → _compilation}/sub +67 -63
- data/src/{compilation → _compilation}/swap +67 -63
- data/src/{compilation/copy → _compilation/trim} +68 -64
- data/src/clock.cr +40 -39
- data/src/compile_all +9 -9
- data/src/left_right +0 -0
- data/src/programs/abs +0 -0
- data/src/programs/add +0 -0
- data/src/programs/append +0 -0
- data/src/programs/append_each +0 -0
- data/src/programs/args +0 -0
- data/src/programs/delete +0 -0
- data/src/programs/div +0 -0
- data/src/programs/exp +0 -0
- data/src/programs/floor +0 -0
- data/src/programs/gsub +0 -0
- data/src/programs/gsubip +0 -0
- data/src/programs/last_nth +0 -0
- data/src/programs/lines +0 -0
- data/src/programs/mul +0 -0
- data/src/programs/nth +0 -0
- data/src/programs/nth_word +0 -0
- data/src/programs/prepend +0 -0
- data/src/programs/prepend_each +0 -0
- data/src/programs/rip +0 -0
- data/src/programs/rnip +0 -0
- data/src/programs/selectlines +0 -0
- data/src/programs/sub +0 -0
- data/src/programs/swap +0 -0
- data/src/programs/trim +0 -0
- data/src/rgsub +0 -0
- data/src/rgsub.c +25 -28
- data/src/src/Makefile +1 -1
- data/src/src/cd +3 -0
- data/src/src/{code2 → code} +32 -11
- data/src/src/functions.cr +58 -61
- data/src/src/mk +8 -11
- data/src/src/rm +1 -0
- metadata +51 -46
- data/SONG +0 -156
- data/bin/dump +0 -0
- data/bin/undump +0 -0
- data/documentation/dump +0 -11
- data/documentation/undump +0 -15
- 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/src/clock +0 -0
- data/src/compilation/dump +0 -286
- data/src/compilation/undump +0 -286
- data/src/gsubip +0 -0
- data/src/programs/copy +0 -0
- data/src/programs/dump +0 -0
- data/src/programs/news +0 -0
- data/src/programs/undump +0 -0
- data/src/src/QQ +0 -15
- data/src/test/cat +0 -0
- data/src/test/foo/dog +0 -0
- /data/images/{12.png → 8.png} +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: 452dacc8c3f0431143afcaa41c416e01749a43331d0b015c50f04c895957d719
|
4
|
+
data.tar.gz: 90846a7cd3363426f0a5c51fe7faa793d35115d3988f39b4ada608f4c7f8cffd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 52cfe4bc1aa252c9729fecbd951380ffb4a353d6d1f87da3564cfa8abef8f056b6c9873e07b6a871d5df97867fbcbfb52cbbea908220ee096f9c44f540cf6f12
|
7
|
+
data.tar.gz: 467accafa7d29f0ed32839c0750ecc3d7f3f3f652a005263d0efc481d2ab2fdc5270c48099efad97c213f5e23e8df2f9bf92228c7946d36f5b49fd99f7b6085a
|
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”
|
@@ -1,16 +1,11 @@
|
|
1
1
|
22 April 2023
|
2
2
|
|
3
|
-
|
4
3
|
-----------------------------------------
|
5
4
|
|
6
|
-
|
7
5
|
All of this was made by a human.
|
8
6
|
|
9
7
|
Please evaluate the physics file.
|
10
8
|
|
11
9
|
It is very interesting.
|
12
10
|
|
13
|
-
|
14
|
-
Having a conversation about it, negative OR positive OR neutral, seems next to impossible.
|
15
|
-
|
16
|
-
|
11
|
+
Having a conversation about it, negative OR positive OR neutral, seems next to impossible.
|
data/Makefile
CHANGED
data/QUESTION
CHANGED
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
|
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
|
-
|
82
|
-
|
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
|
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/
|
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.
|
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
|
-
###
|
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
|
-
###
|
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
|
-
###
|
217
|
+
### 11. Emeraldc
|
211
218
|
|
212
219
|
The Ultimate C Preprocessor
|
213
220
|
I'm naming this preprocessor “Emerald C.”
|
@@ -339,23 +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
|
-
###
|
349
|
+
### 12. Nth Word
|
343
350
|
|
344
|
-
|
345
|
-
|
351
|
+
nth_word gets the nth word of each line
|
352
|
+
For example
|
353
|
+
nth_word 3
|
354
|
+
gets the 3rd word of each line
|
355
|
+
### 13. Last Nth
|
356
|
+
|
357
|
+
Last nth gets the last n lines from input
|
358
|
+
For example
|
359
|
+
last_nth 3
|
360
|
+
Would get the 3rd from the last line
|
361
|
+
### 14. Speakcat
|
346
362
|
|
347
363
|
Speak cat is a tool like “cat,” which shows the content of files
|
348
364
|
(technically, it combines the content of files).
|
349
365
|
But speak cat also speaks the text.
|
350
366
|
Which could be useful in some circumstances.
|
351
367
|
It's kind of like “tee” to your ear.
|
352
|
-
###
|
368
|
+
### 15. UCA CLI
|
353
369
|
|
354
370
|
CLI for uca app
|
355
|
-
###
|
371
|
+
### 16. Big Num
|
356
372
|
|
357
373
|
![UCA](./images/10.png)
|
358
|
-
###
|
374
|
+
### 17. Squeeze
|
359
375
|
|
360
376
|
Squeeze reads all input from stdin, then it prints it back omitting
|
361
377
|
argument 1 line from the front, and argument 2 lines from the back
|
@@ -365,20 +381,20 @@ ones are omitted.)
|
|
365
381
|
squeeze 5 3
|
366
382
|
This would omit the first 5 lines and the last 3 lines
|
367
383
|
squeeze 2 2 [file] also works, it outputs text to file
|
368
|
-
###
|
384
|
+
### 18. Dictate
|
369
385
|
|
370
386
|
Dictate opens web pages in emerald browser, or in any browser
|
371
387
|
(depending on the environment variable set), by you speaking, instead
|
372
388
|
of typing.
|
373
389
|
There is a mode called c_mode, that allows you to make code from
|
374
390
|
speaking.
|
375
|
-
###
|
391
|
+
### 19. Prepend
|
376
392
|
|
377
393
|
prepend prepends input taken from the standard input to a file
|
378
394
|
Usage
|
379
395
|
prepend [file]
|
380
396
|
This is text to be prepended
|
381
|
-
###
|
397
|
+
### 20. Chat Rb
|
382
398
|
|
383
399
|
This program is excellent.
|
384
400
|
It's essentially a mix of ChatGPT and a shell, such as bash or ZSH.
|
@@ -387,23 +403,16 @@ ones are omitted.)
|
|
387
403
|
It outputs chatgpt data to an output folder in home folder and copies
|
388
404
|
it to clipboard
|
389
405
|
To run a shell command, prefix things with “c,” such as c gcc.....
|
390
|
-
###
|
391
|
-
|
392
|
-
undump is the opposite of dump
|
393
|
-
Example
|
394
|
-
echo cat | dump | undump
|
395
|
-
=> cat
|
396
|
-
echo cat | dump
|
397
|
-
=> “cat”
|
398
|
-
echo '“cat”' | undump
|
399
|
-
=> cat
|
400
|
-
### 19. Append
|
406
|
+
### 21. Append
|
401
407
|
|
402
408
|
Appends text to file
|
403
409
|
Example
|
404
410
|
append file
|
405
411
|
This is more text to be appended
|
406
|
-
###
|
412
|
+
### 22. Delete
|
413
|
+
|
414
|
+
Recursively delete all files named a certain name.
|
415
|
+
### 23. Gsubip
|
407
416
|
|
408
417
|
Global Substitute (Gsub) In Place
|
409
418
|
gsubip is like gsub, which replaces all instances of a regular
|
@@ -420,7 +429,7 @@ ones are omitted.)
|
|
420
429
|
It takes exactly 3 arguments, no more, no fewer.
|
421
430
|
See also
|
422
431
|
gsub
|
423
|
-
###
|
432
|
+
### 24. Rhyme
|
424
433
|
|
425
434
|
A very powerful music generator program that doesn't use AI.
|
426
435
|
See this channel as an example of potential usage of this public
|
@@ -601,7 +610,7 @@ ones are omitted.)
|
|
601
610
|
Disingenuous to the extreme, the society they subvert
|
602
611
|
The society is the ones who hurt
|
603
612
|
---
|
604
|
-
###
|
613
|
+
### 25. Email
|
605
614
|
|
606
615
|
This currently doesn't work for gmail since 2022 due to policy changes.
|
607
616
|
A simple and practical tool to email people using Himalaya
|
@@ -616,10 +625,10 @@ ones are omitted.)
|
|
616
625
|
Example
|
617
626
|
email 'Gregory, I love your software!' gregorycohenvideos@gmail.com
|
618
627
|
my_friend@outlook.com person@example.com
|
619
|
-
###
|
628
|
+
### 26. Floor
|
620
629
|
|
621
630
|
Gets the floor of numbers e.g. 21.3 -> 21
|
622
|
-
###
|
631
|
+
### 27. Rgsub
|
623
632
|
|
624
633
|
Recursively replaces text.
|
625
634
|
Verbosely tells you everything that happens.
|
@@ -637,11 +646,11 @@ ones are omitted.)
|
|
637
646
|
-v, verbose mode
|
638
647
|
-- Indicate end of options.
|
639
648
|
|
640
|
-
###
|
649
|
+
### 28. Lines
|
641
650
|
|
642
651
|
Lines gets the number of files in the current folder that you are in.
|
643
652
|
It can also act like “wc -l” if you pipe data into it.
|
644
|
-
###
|
653
|
+
### 29. Clock
|
645
654
|
|
646
655
|
clock is useful
|
647
656
|
clock is a command line alarm clock
|
@@ -658,14 +667,14 @@ ones are omitted.)
|
|
658
667
|
To stop it
|
659
668
|
Run this command
|
660
669
|
clock stop
|
661
|
-
###
|
670
|
+
### 30. Emoji
|
662
671
|
|
663
672
|
Emoji converts words to emojis from the standard input
|
664
673
|
It can also speak the output
|
665
674
|
It can also copy the output to your clipboard
|
666
675
|
It is very useful
|
667
676
|
![UCA](./images/6.png)
|
668
|
-
###
|
677
|
+
### 31. Close
|
669
678
|
|
670
679
|
“Close” is a simple program that closes “Emerald Browser,” a new web
|
671
680
|
browser based on the same engine as Chrome. Currently, Emerald Browser
|
@@ -699,12 +708,12 @@ ones are omitted.)
|
|
699
708
|
some people.
|
700
709
|
Currently, content, like YouTube videos, can't be made fullscreen.
|
701
710
|
If anyone wants to contribute, feel free to!
|
702
|
-
###
|
711
|
+
### 32. Copy
|
703
712
|
|
704
713
|
copy copies the standard input
|
705
714
|
Example
|
706
715
|
ls | copy
|
707
|
-
###
|
716
|
+
### 33. Gsub
|
708
717
|
|
709
718
|
Gsub is very powerful.
|
710
719
|
Usage
|
@@ -713,7 +722,7 @@ ones are omitted.)
|
|
713
722
|
cat text | gsub man dog
|
714
723
|
cat text | gsub 'man|boy|cat|dog' food
|
715
724
|
ls | gsub Desktop cat
|
716
|
-
###
|
725
|
+
### 34. News
|
717
726
|
|
718
727
|
Gets the news from bbc
|
719
728
|
Usage
|
@@ -721,22 +730,14 @@ ones are omitted.)
|
|
721
730
|
news speak
|
722
731
|
uses google_speak to SPEAK the news, one story at a time.
|
723
732
|
![UCA](./images/5.png)
|
724
|
-
###
|
725
|
-
|
726
|
-
Dump surrounds its input with quotes
|
727
|
-
ls | dump
|
728
|
-
=> “....”
|
729
|
-
Use undump to get the reverse
|
730
|
-
See also
|
731
|
-
undump
|
732
|
-
### 33. Args
|
733
|
+
### 35. Args
|
733
734
|
|
734
735
|
args is like a better xargs
|
735
736
|
args works properly with spaces in the name of commands
|
736
737
|
It takes exactly one argument
|
737
738
|
Example
|
738
739
|
ls | args “mv -t ../f”
|
739
|
-
###
|
740
|
+
### 36. Rnip
|
740
741
|
|
741
742
|
Replace Not In Place
|
742
743
|
This is like gsub, but for strings, not for regular expressions
|
@@ -744,7 +745,10 @@ ones are omitted.)
|
|
744
745
|
echo .......... | rnip foo bar
|
745
746
|
See also
|
746
747
|
gsub
|
747
|
-
###
|
748
|
+
### 37. Trim
|
749
|
+
|
750
|
+
Trims spaces of each line
|
751
|
+
### 38. Quot
|
748
752
|
|
749
753
|
Turns quotes in text into good text and makes text presentable.
|
750
754
|
Example
|
@@ -755,7 +759,7 @@ ones are omitted.)
|
|
755
759
|
Example 3
|
756
760
|
(Quote the file and output it)
|
757
761
|
quot text_file
|
758
|
-
###
|
762
|
+
### 39. Open
|
759
763
|
|
760
764
|
“open” is a very efficient program that searches a query from google,
|
761
765
|
and then opens it in Emerald Browser.
|
@@ -776,25 +780,25 @@ ones are omitted.)
|
|
776
780
|
See also
|
777
781
|
emerald-browser
|
778
782
|
close
|
779
|
-
###
|
783
|
+
### 40. Swap
|
780
784
|
|
781
785
|
Swaps two files
|
782
786
|
Example
|
783
787
|
swap text1 text2
|
784
|
-
###
|
788
|
+
### 41. Exp
|
785
789
|
|
786
790
|
exp is an exponentiation tool
|
787
791
|
(echo 5; echo 3) | exp
|
788
792
|
=> 125
|
789
793
|
(echo 2; echo 10) | exp
|
790
794
|
=> 1024
|
791
|
-
###
|
795
|
+
### 42. Div
|
792
796
|
|
793
797
|
Divides numbers
|
794
798
|
Example
|
795
799
|
(echo 5000; echo 100) | div
|
796
800
|
=> 50
|
797
|
-
###
|
801
|
+
### 43. Mul
|
798
802
|
|
799
803
|
Multiply numbers
|
800
804
|
echo 1 > file
|
@@ -804,10 +808,10 @@ ones are omitted.)
|
|
804
808
|
echo 5 >> file
|
805
809
|
cat file | mul
|
806
810
|
=> 120
|
807
|
-
###
|
811
|
+
### 44. Nth
|
808
812
|
|
809
813
|
Nth gets the nth line from the input
|
810
|
-
###
|
814
|
+
### 45. Abs
|
811
815
|
|
812
816
|
Abs gets the absolute value of an integer
|
813
817
|
The absolute value of a number is the value of that number without its
|
@@ -820,13 +824,13 @@ ones are omitted.)
|
|
820
824
|
=> 12
|
821
825
|
The last one would do -2 - -10, the result would be -12, and then the
|
822
826
|
absolute value would be computed, and so the result would be 12.
|
823
|
-
###
|
827
|
+
### 46. Add
|
824
828
|
|
825
829
|
See the sub example
|
826
830
|
add adds integers from the standard input
|
827
831
|
(echo 1; echo 2; echo 3) | add
|
828
832
|
The result would be 6
|
829
|
-
###
|
833
|
+
### 47. Sub
|
830
834
|
|
831
835
|
Sub is a simple command line program that subtracts integers.
|
832
836
|
For some reason, no simple program did this.
|
@@ -843,14 +847,14 @@ ones are omitted.)
|
|
843
847
|
(echo 5; echo 2) | sub
|
844
848
|
Result =>
|
845
849
|
3
|
846
|
-
###
|
850
|
+
### 48. Rip
|
847
851
|
|
848
852
|
Replace In Place
|
849
853
|
rip tool replaces a string, not a regular expression, with another
|
850
854
|
string
|
851
855
|
Example
|
852
856
|
rip cat dog file
|
853
|
-
###
|
857
|
+
### 49. G+
|
854
858
|
|
855
859
|
A compiler for C += 2. If you want to use C++ with Python syntax, you
|
856
860
|
can use this.
|
@@ -858,7 +862,7 @@ ones are omitted.)
|
|
858
862
|
Example
|
859
863
|
g+ a.cpp -o out
|
860
864
|
See also README file & emerald-browser and its source
|
861
|
-
###
|
865
|
+
### 50. T
|
862
866
|
|
863
867
|
“t” is incredibly useful.
|
864
868
|
It can be used many, many times every day by computer power users.
|
@@ -901,10 +905,13 @@ Navigation
|
|
901
905
|
Emerald Browser
|
902
906
|
Left Right.exe
|
903
907
|
Find Housing
|
908
|
+
Prepend Each
|
904
909
|
Google Speak
|
910
|
+
Append Each
|
905
911
|
Selectlines
|
906
912
|
Processes
|
907
913
|
Emeraldc
|
914
|
+
Nth Word
|
908
915
|
Last Nth
|
909
916
|
Speakcat
|
910
917
|
Uca Cli
|
@@ -913,8 +920,8 @@ Navigation
|
|
913
920
|
Dictate
|
914
921
|
Prepend
|
915
922
|
Chat Rb
|
916
|
-
Undump
|
917
923
|
Append
|
924
|
+
Delete
|
918
925
|
Gsubip
|
919
926
|
Rhyme
|
920
927
|
Email
|
@@ -927,9 +934,9 @@ Navigation
|
|
927
934
|
Copy
|
928
935
|
Gsub
|
929
936
|
News
|
930
|
-
Dump
|
931
937
|
Args
|
932
938
|
Rnip
|
939
|
+
Trim
|
933
940
|
Quot
|
934
941
|
Open
|
935
942
|
Swap
|
@@ -949,15 +956,18 @@ References
|
|
949
956
|
1. https://www.youtube.com/embed/Fx9x8cArK30
|
950
957
|
2. mailto:gregorycohenvideos@gmail.com
|
951
958
|
3. https://pypi.org/project/democracy
|
952
|
-
4. https://www.rubygems.org/
|
953
|
-
5. https://
|
954
|
-
6. https://www.
|
955
|
-
7. https://www.rubygems.org/gems/
|
956
|
-
8. https://www.rubygems.org/gems/
|
957
|
-
9. https://www.rubygems.org/gems/
|
958
|
-
10.
|
959
|
-
11.
|
960
|
-
12. https://
|
961
|
-
13.
|
962
|
-
14.
|
963
|
-
15. https://
|
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
|
-
|
1
|
+
87.0
|
data/bin/DISCOURSE_GENERATOR.exe
CHANGED
Binary file
|
data/bin/abs
CHANGED
Binary file
|
data/bin/add
CHANGED
Binary file
|
data/bin/append
CHANGED
Binary file
|
data/bin/append_each
ADDED
Binary file
|
data/bin/args
CHANGED
Binary file
|
data/bin/clock
CHANGED
Binary file
|
data/bin/copy
CHANGED
Binary file
|
data/bin/delete
ADDED
Binary file
|
data/bin/div
CHANGED
Binary file
|
data/bin/email
CHANGED
@@ -27,7 +27,6 @@
|
|
27
27
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
28
28
|
GREGORYS_USERNAME = 'a'
|
29
29
|
if File.basename(Dir.home) == GREGORYS_USERNAME
|
30
|
-
# if Dir.basename (Dir.home) == "a"
|
31
30
|
PERSON = 'Gregory'
|
32
31
|
EMAIL = 'gregorycohenvideos@gmail.com'
|
33
32
|
else
|
@@ -58,13 +57,10 @@ def main
|
|
58
57
|
end
|
59
58
|
end
|
60
59
|
|
61
|
-
# puts args.length
|
62
|
-
|
63
60
|
args = case args.length
|
64
61
|
when 0
|
65
62
|
["From #{PERSON}"] + args + [EMAIL.to_s]
|
66
63
|
when 1
|
67
|
-
# subject = "From Gregory"
|
68
64
|
["From #{PERSON}"] + args
|
69
65
|
else
|
70
66
|
args
|
@@ -80,17 +76,9 @@ def main
|
|
80
76
|
exit 1
|
81
77
|
end
|
82
78
|
require 'tempfile'
|
83
|
-
# STRING=
|
84
|
-
|
85
|
-
# puts args
|
86
|
-
# exit! 0
|
87
|
-
# pu
|
88
|
-
# puts args
|
89
79
|
raise if args.empty?
|
90
80
|
|
91
81
|
loop do
|
92
|
-
# "Loop"
|
93
|
-
# args
|
94
82
|
args[1..-1].each do |arg|
|
95
83
|
text = <<~EOF
|
96
84
|
To: <#{arg}>
|
@@ -99,7 +87,6 @@ def main
|
|
99
87
|
|
100
88
|
#{content.strip}
|
101
89
|
EOF
|
102
|
-
# puts text
|
103
90
|
Tempfile.open do |file|
|
104
91
|
puts attachments
|
105
92
|
require 'shellwords'
|
data/bin/emerald-browser
CHANGED
Binary file
|
data/bin/exp
CHANGED
Binary file
|
data/bin/floor
CHANGED
Binary file
|
data/bin/google_speak
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
-
#!/bin/
|
2
|
-
|
3
|
-
|
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/gsub
CHANGED
Binary file
|
data/bin/gsubip
CHANGED
Binary file
|
data/bin/last_nth
CHANGED
Binary file
|
data/bin/left_right
CHANGED
Binary file
|
data/bin/lines
CHANGED
Binary file
|
data/bin/mul
CHANGED
Binary file
|
data/bin/nth
CHANGED
Binary file
|
data/bin/nth_word
ADDED
Binary file
|