Skip to content

Instantly share code, notes, and snippets.

View micronix's full-sized avatar

Ramiro Rodriguez micronix

View GitHub Profile

Keybase proof

I hereby claim:

  • I am micronix on github.
  • I am micronix (https://keybase.io/micronix) on keybase.
  • I have a public key ASDKr2qOnlFVkt-Hn0LNDk5p4z5_3lZPT-Map6lLOddkQwo

To claim this, I am signing this object:

puts "hello"
puts "hell world"
@micronix
micronix / code.java
Last active June 21, 2016 18:18
Ruby no variable declaration
public class Main {
public static void main(String[] args) {
int a = 1 + 1;
int b = 2;
while (a < 1000) {
a += 1
}
c = "hello there" // would give an error type of variable not stated
a = "this is a string" // would also give an error types cannot change
}
options = ['rock', 'paper', 'scissors']
index = rand(3)
computer = options[index]
# more compact
options = ['rock', 'paper', 'scissors']
computer = options[rand(3)]