Skip to content

Instantly share code, notes, and snippets.

View Shmuwol's full-sized avatar
🤓
Geekin'

Shmully Wolfson Shmuwol

🤓
Geekin'
View GitHub Profile

Keybase proof

I hereby claim:

  • I am Shmuwol on github.
  • I am shmully (https://keybase.io/shmully) on keybase.
  • I have a public key whose fingerprint is 3D24 26CB 60E1 C951 5982 9AAD FADE AA9D B783 46F0

To claim this, I am signing this object:

[
{
type: "button"
icon: "octoface"
tooltip: "Open in Github"
callback: "open-on-github:file"
}
{
type: "button"
icon: "document"
@Shmuwol
Shmuwol / class.rb
Last active August 29, 2015 14:23
Class
class Animal
def initialize(animal)
@animal = animal
end
def sound
if @animal == "dog"
"Woof! Woof!"
elsif @animal == "cat"
"Meow!"
@Shmuwol
Shmuwol / Enumerable_cycle.md
Last active August 29, 2015 14:17
Enumerable#cycle.rb
days_of_week = ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"]

Now if we do this.

days_of_week.cycle {|day| puts day}

it will return all the days of the week over and over, forever.