politics 1.0.82 → 1.0.88

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. checksums.yaml +4 -4
  2. data/CYCLE_OF_HEALTH +9 -15
  3. data/Makefile +1 -1
  4. data/README.md +54 -46
  5. data/VERSION_NUMBER +1 -1
  6. data/bin/append_each +0 -0
  7. data/bin/google_speak +4 -3
  8. data/bin/lines +0 -0
  9. data/bin/nth_word +0 -0
  10. data/bin/prepend_each +0 -0
  11. data/bin/rgsub +0 -0
  12. data/documentation/append_each +3 -0
  13. data/documentation/left_right.exe +1 -1
  14. data/documentation/page +41 -41
  15. data/documentation/prepend_each +3 -0
  16. data/gem_data/VERSION_NUMBER +1 -1
  17. data/index.html +57 -51
  18. data/install.sh +5 -1
  19. data/non_compiled_programs/google_speak +4 -3
  20. data/src/_compilation/abs +38 -19
  21. data/src/_compilation/add +38 -19
  22. data/src/_compilation/append +38 -19
  23. data/src/_compilation/append_each +290 -0
  24. data/src/_compilation/args +38 -19
  25. data/src/_compilation/delete +38 -19
  26. data/src/_compilation/div +38 -19
  27. data/src/_compilation/exp +38 -19
  28. data/src/_compilation/floor +38 -19
  29. data/src/_compilation/gsub +38 -19
  30. data/src/_compilation/gsubip +38 -19
  31. data/src/_compilation/last_nth +38 -19
  32. data/src/_compilation/lines +38 -19
  33. data/src/_compilation/mul +38 -19
  34. data/src/_compilation/nth +38 -19
  35. data/src/_compilation/nth_word +38 -19
  36. data/src/_compilation/prepend +38 -19
  37. data/src/_compilation/prepend_each +290 -0
  38. data/src/_compilation/rip +38 -19
  39. data/src/_compilation/rnip +38 -19
  40. data/src/_compilation/selectlines +38 -19
  41. data/src/_compilation/sub +38 -19
  42. data/src/_compilation/swap +38 -19
  43. data/src/_compilation/trim +38 -19
  44. data/src/programs/append_each +0 -0
  45. data/src/programs/lines +0 -0
  46. data/src/programs/prepend_each +0 -0
  47. data/src/rgsub +0 -0
  48. data/src/rgsub.c +24 -25
  49. data/src/src/Makefile +1 -1
  50. data/src/src/cd +3 -0
  51. data/src/src/code +30 -9
  52. data/src/src/functions.cr +29 -16
  53. data/src/src/mk +6 -8
  54. data/src/src/rm +1 -0
  55. metadata +12 -3
  56. data/src/src/q.cr +0 -9
  57. /data/images/{12.png → 8.png} +0 -0
data/src/src/mk CHANGED
@@ -15,7 +15,6 @@ cd src
15
15
  ruby code
16
16
  cd ../$COMPILATION
17
17
 
18
-
19
18
  lines=$(lines)
20
19
  echo "Checking the Syntax of $lines programs"
21
20
  for i in *; do
@@ -24,19 +23,18 @@ for i in *; do
24
23
  #crystal build --no-codegen $i -o ../utilities/$i &
25
24
  done
26
25
 
27
-
28
26
  #wait
29
27
 
30
- for i in *; do
28
+ for i in *; do
31
29
  echo -n "$i "
32
- # echo "Compiling $i with 30 threads ..."
30
+ # echo "Compiling $i with 30 threads ..."
33
31
  test -x ../$PROGRAMS/$i || (
32
+ echo
34
33
  find /usr/share/wallpapers/ -type f | grep -E 'jpg|png' | shuf | head -n 1 | args viu
35
34
  (crystal build --release $i --threads 30 -o ../$PROGRAMS/$i && strip ../$PROGRAMS/$i)
36
35
  )
37
- # rm -rf $i
36
+ # rm -rf $i
38
37
  # -rf
39
38
  done
40
- echo -e "\n\n\n\e[32mALL DONE FOR COREUTILS\e[0m"
41
-
42
-
39
+ clear
40
+ echo -e "\n\n\n\e[32mALL DONE\e[0m"
data/src/src/rm ADDED
@@ -0,0 +1 @@
1
+ rm ../programs/"$1"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: politics
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.82
4
+ version: 1.0.88
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregory Cohen
@@ -53,6 +53,7 @@ files:
53
53
  - "./bin/abs"
54
54
  - "./bin/add"
55
55
  - "./bin/append"
56
+ - "./bin/append_each"
56
57
  - "./bin/args"
57
58
  - "./bin/big_num"
58
59
  - "./bin/black"
@@ -104,6 +105,7 @@ files:
104
105
  - "./bin/nth_word"
105
106
  - "./bin/open"
106
107
  - "./bin/prepend"
108
+ - "./bin/prepend_each"
107
109
  - "./bin/processes"
108
110
  - "./bin/quot"
109
111
  - "./bin/red"
@@ -159,6 +161,7 @@ files:
159
161
  - "./documentation/abs"
160
162
  - "./documentation/add"
161
163
  - "./documentation/append"
164
+ - "./documentation/append_each"
162
165
  - "./documentation/args"
163
166
  - "./documentation/big_num"
164
167
  - "./documentation/black"
@@ -211,6 +214,7 @@ files:
211
214
  - "./documentation/open"
212
215
  - "./documentation/page"
213
216
  - "./documentation/prepend"
217
+ - "./documentation/prepend_each"
214
218
  - "./documentation/processes"
215
219
  - "./documentation/quot"
216
220
  - "./documentation/red"
@@ -23254,13 +23258,13 @@ files:
23254
23258
  - "./images/1.png"
23255
23259
  - "./images/10.png"
23256
23260
  - "./images/11.png"
23257
- - "./images/12.png"
23258
23261
  - "./images/2.png"
23259
23262
  - "./images/3.png"
23260
23263
  - "./images/4.png"
23261
23264
  - "./images/5.png"
23262
23265
  - "./images/6.png"
23263
23266
  - "./images/7.png"
23267
+ - "./images/8.png"
23264
23268
  - "./images/9.png"
23265
23269
  - "./index.html"
23266
23270
  - "./install.sh"
@@ -24646,6 +24650,7 @@ files:
24646
24650
  - "./src/_compilation/abs"
24647
24651
  - "./src/_compilation/add"
24648
24652
  - "./src/_compilation/append"
24653
+ - "./src/_compilation/append_each"
24649
24654
  - "./src/_compilation/args"
24650
24655
  - "./src/_compilation/delete"
24651
24656
  - "./src/_compilation/div"
@@ -24659,6 +24664,7 @@ files:
24659
24664
  - "./src/_compilation/nth"
24660
24665
  - "./src/_compilation/nth_word"
24661
24666
  - "./src/_compilation/prepend"
24667
+ - "./src/_compilation/prepend_each"
24662
24668
  - "./src/_compilation/rip"
24663
24669
  - "./src/_compilation/rnip"
24664
24670
  - "./src/_compilation/selectlines"
@@ -24744,6 +24750,7 @@ files:
24744
24750
  - "./src/programs/abs"
24745
24751
  - "./src/programs/add"
24746
24752
  - "./src/programs/append"
24753
+ - "./src/programs/append_each"
24747
24754
  - "./src/programs/args"
24748
24755
  - "./src/programs/delete"
24749
24756
  - "./src/programs/div"
@@ -24757,6 +24764,7 @@ files:
24757
24764
  - "./src/programs/nth"
24758
24765
  - "./src/programs/nth_word"
24759
24766
  - "./src/programs/prepend"
24767
+ - "./src/programs/prepend_each"
24760
24768
  - "./src/programs/rip"
24761
24769
  - "./src/programs/rnip"
24762
24770
  - "./src/programs/selectlines"
@@ -24766,11 +24774,12 @@ files:
24766
24774
  - "./src/rgsub"
24767
24775
  - "./src/rgsub.c"
24768
24776
  - "./src/src/Makefile"
24777
+ - "./src/src/cd"
24769
24778
  - "./src/src/code"
24770
24779
  - "./src/src/format_so_it_works"
24771
24780
  - "./src/src/functions.cr"
24772
24781
  - "./src/src/mk"
24773
- - "./src/src/q.cr"
24782
+ - "./src/src/rm"
24774
24783
  - "./thoughts_on_SIMULATIONS"
24775
24784
  - "./version_decrement"
24776
24785
  - "./version_increment"
data/src/src/q.cr DELETED
@@ -1,9 +0,0 @@
1
- def nth_word(arg)
2
- i = arg.to_u64 - 1
3
- STDIN.each_line do |line|
4
- puts line.split[i] rescue ""
5
- end
6
- end
7
-
8
-
9
- nth_word ARGV.first
File without changes