From 78b066dd3ecab803c668d27c13c06d46bb218b12 Mon Sep 17 00:00:00 2001 From: Zaenal Akhmad Rifai Date: Thu, 3 Oct 2019 14:20:11 +0700 Subject: [PATCH 1/2] add bash script to print hello world 10 times --- bash/helloword-10-times | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 bash/helloword-10-times diff --git a/bash/helloword-10-times b/bash/helloword-10-times new file mode 100644 index 0000000..1add669 --- /dev/null +++ b/bash/helloword-10-times @@ -0,0 +1,5 @@ +#!/usr/bin/env bash +# +# Print "Hello World" and exit + +for i in {1..10}; do echo "Hello World! " ; done From e2978d9c04eae167463752133c20e8e0f6359be5 Mon Sep 17 00:00:00 2001 From: Zaenal Akhmad Rifai Date: Thu, 3 Oct 2019 14:35:33 +0700 Subject: [PATCH 2/2] add ruby hello world --- bash/helloword-10-times | 5 ----- ruby/helloworld.rb | 1 + ruby/readme.md | 9 +++++++++ ruby/runruby.png | Bin 0 -> 8890 bytes 4 files changed, 10 insertions(+), 5 deletions(-) delete mode 100644 bash/helloword-10-times create mode 100644 ruby/helloworld.rb create mode 100644 ruby/readme.md create mode 100644 ruby/runruby.png diff --git a/bash/helloword-10-times b/bash/helloword-10-times deleted file mode 100644 index 1add669..0000000 --- a/bash/helloword-10-times +++ /dev/null @@ -1,5 +0,0 @@ -#!/usr/bin/env bash -# -# Print "Hello World" and exit - -for i in {1..10}; do echo "Hello World! " ; done diff --git a/ruby/helloworld.rb b/ruby/helloworld.rb new file mode 100644 index 0000000..b85a042 --- /dev/null +++ b/ruby/helloworld.rb @@ -0,0 +1 @@ +puts "Hello World" diff --git a/ruby/readme.md b/ruby/readme.md new file mode 100644 index 0000000..dadaa15 --- /dev/null +++ b/ruby/readme.md @@ -0,0 +1,9 @@ +# Ruby + +## Instructions +1. To run, make sure you have the go binaries installed on your machine. This link has guide to install ruby on ubuntu 18.04 https://linuxize.com/post/how-to-install-ruby-on-ubuntu-18-04/ +2. Run the using the command: ```ruby helloworld.rb``` in the ./ruby/ directory. +3. Working screenshot: + + +![screenshot](./runruby.png?raw=true)1 diff --git a/ruby/runruby.png b/ruby/runruby.png new file mode 100644 index 0000000000000000000000000000000000000000..21b7928fb834e3b99aec9d6d989c145e5b4df4ec GIT binary patch literal 8890 zcmai)Ra6{J*Y61sG`K^sf#6Q?z#xMK4Z(eIf4NSdtE`RnbOc~oL7(oaKFaHVeD7lO(Hrb;jbiKU;$+S3Vd-vd?d)Oa@)3d7 zE`@@^fT9eN(e}wW%=Grr)>-I)?5w0JBQgm;?4lFOu;-Ok<>^1S}hW>Q6^UaysI> zdfK+LbURXPp=4gwBOrdCrQdT)a4Cx^t@Y69WbAr-*-%1}hkPF6;mfh1#sd1VvMRaP z^6BVR%R}{eOAGnH-lf`)9g#8$KK%jmW$jjE3<%y+z? zw)W^ga&D$Md*n_`dAaYfB$+F6yoMh&h%G(Z;&IC? z04c}5eJre)tC?{It$XE-6Dpgl$wnGULUrgvlk;T#=K+$Iqw)Pe<`rIUf~dIb2&7F>)PyADTWA+fm4UN?8~Ea|<_ud|##> z-tblZbIWL?WZ#6%7Cn6)BgS$}7BTLvRA)5@UJZIrk;5435TA-x{0P1=K1UuAd%GNN zNe9e0%+d4fXN;hDtl@}~U-r#B+|T%Ls9!%4!}7GP&MWn|sXy;Zl9zh(f;1WW#R~)p zu1`^6FAHNmYkPsTl$Ug~V4C^nHE$+7%awqFd4<%(c(3W97|M^_ehJdfOF{4Sm!nh# zk59;G$9P{-wD!+>9K2aR4{UR~bk55Mh45d66&vd`WJ20%Q}LI-u*fQ>zD^y&tv?w| zPhTii=~3N0ryUg-9KH2lw!NgSV;qWvMJO~o)t!Tv&}K=_dzxDw)rt|qakSla<7|zI zqC7CBzziA>C$4$=TlyVZH{FBd_~EV|sgew&$M55>f}Qq-&T^DL%%1-h+r5832c!*x z%6*J@X7CjT6J439kc5EIa-;A4DsF1tmscD z_pzB`2|i=v`OcqCv&im|=O(alz===QD50)f6GG-6vtSc(p8;5BnF1eS_gqKgQ5nf0 z=KvO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