diff --git a/foo.txt b/foo.txt new file mode 100644 index 0000000..ad382e7 --- /dev/null +++ b/foo.txt @@ -0,0 +1,3 @@ +やああ +こんにちは +どもどもー diff --git a/he.jpg b/he.jpg new file mode 100644 index 0000000..c1a4f5a --- /dev/null +++ b/he.jpg Binary files differ diff --git a/hello.rb b/hello.rb new file mode 100755 index 0000000..902232a --- /dev/null +++ b/hello.rb @@ -0,0 +1,6 @@ +#!/usr/bin/env ruby +# coding: utf-8 + +puts "Hello, world!" +puts "Bye!" +puts "やあああ222" diff --git a/j00.rb b/j00.rb new file mode 100755 index 0000000..7d8c8e2 --- /dev/null +++ b/j00.rb @@ -0,0 +1,14 @@ +#!/usr/bin/env ruby +# Hi9 + +puts "Hello!! I'm JD2021 TEST User!!" +for i in 0..90 + printf("%02d", i) +end + +gazo1 = spawn "display he.jpg" +gets +Process.kill(:INT, gazo1) +puts "bye" + +# bye2 diff --git a/read.rb b/read.rb new file mode 100755 index 0000000..887a4cd --- /dev/null +++ b/read.rb @@ -0,0 +1,5 @@ +#!/usr/bin/env ruby + +open("foo.txt", "r") do |f| + print f.gets +end