Skip to content

Instantly share code, notes, and snippets.

@TJRoger
Last active June 18, 2020 11:09
Show Gist options
  • Save TJRoger/2538f43a3ed3b521f33e8da58d8a11e1 to your computer and use it in GitHub Desktop.
Save TJRoger/2538f43a3ed3b521f33e8da58d8a11e1 to your computer and use it in GitHub Desktop.

Revisions

  1. TJRoger revised this gist Feb 28, 2020. 4 changed files with 0 additions and 23 deletions.
    10 changes: 0 additions & 10 deletions hello_world.py
    Original file line number Diff line number Diff line change
    @@ -1,10 +0,0 @@
    class HelloWorld:

    def __init__(self, name):
    self.name = name.capitalize()

    def sayHi(self):
    print "Hello " + self.name + "!"

    hello = HelloWorld("world")
    hello.sayHi()
    11 changes: 0 additions & 11 deletions hello_world.rb
    Original file line number Diff line number Diff line change
    @@ -1,11 +0,0 @@
    class HelloWorld
    def initialize(name)
    @name = name.capitalize
    end
    def sayHi
    puts "Hello !"
    end
    end

    hello = HelloWorld.new("World")
    hello.sayHi
    1 change: 0 additions & 1 deletion hello_world_python.txt
    Original file line number Diff line number Diff line change
    @@ -1 +0,0 @@
    Run `python hello_world.py` to print Hello World
    1 change: 0 additions & 1 deletion hello_world_ruby.txt
    Original file line number Diff line number Diff line change
    @@ -1 +0,0 @@
    Run `ruby hello_world.rb` to print Hello World
  2. TJRoger created this gist Feb 28, 2020.
    10 changes: 10 additions & 0 deletions hello_world.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    class HelloWorld:

    def __init__(self, name):
    self.name = name.capitalize()

    def sayHi(self):
    print "Hello " + self.name + "!"

    hello = HelloWorld("world")
    hello.sayHi()
    11 changes: 11 additions & 0 deletions hello_world.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    class HelloWorld
    def initialize(name)
    @name = name.capitalize
    end
    def sayHi
    puts "Hello !"
    end
    end

    hello = HelloWorld.new("World")
    hello.sayHi
    1 change: 1 addition & 0 deletions hello_world_python.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    Run `python hello_world.py` to print Hello World
    1 change: 1 addition & 0 deletions hello_world_ruby.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    Run `ruby hello_world.rb` to print Hello World