Skip to content

Instantly share code, notes, and snippets.

@krainboltgreene
Forked from anonymous/1_numbers.io
Created December 13, 2012 09:38
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save krainboltgreene/4275298 to your computer and use it in GitHub Desktop.
Save krainboltgreene/4275298 to your computer and use it in GitHub Desktop.
An introduction to programming.
15
-1
4.39010
1 + 1
10 * 2
1 + (10 / 2) ** 2
"Holla!"
"You can observe a lot by watching."
"?"
"400"
"Good" .. "morning!"
"kltpzyxM" .. "eybdooG"
("U" .. "U") .. "D" .. "D" .. ("L" .. "R" .. "L" .. "R") .. "A" .. "B"
x := 4
y := 2
x + y
name := "Kurtis"
"Hello, " .. name
age := 2017 - 1987
age + 10
"I'm younger than " .. age
4 + 4 # This is some basic math
# 2 + "Hack The Planet"
# This is a comment,
# and so is this!
"The polarbear is angry."
# Note: Feed fish.
bark := method( "Woolf!" )
bark
bark
bark
add_two_numbers := method(x, y, x + y)
add_two_numbers(1,2)
4 +(100)
babble := method(place, "This one time at " .. place .. " camp" )
babble("band")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment