Skip to content

Instantly share code, notes, and snippets.

@Chadtech
Last active August 29, 2015 14:17
Show Gist options
  • Save Chadtech/7f64006836952ac7f587 to your computer and use it in GitHub Desktop.
Save Chadtech/7f64006836952ac7f587 to your computer and use it in GitHub Desktop.
sayHi = ->
console.log 'Hi'
sayHello = =>
console.log 'Hello'
sayHey = (someone) ->
console.log 'Hey ' + someone
sayHey 'guys'
# => 'Hey guys'
saySomething = (guy, comment) ->
comment guy
saySomething 'Henry', (toWho) ->
console.log 'Hey ' + toWho + ', hows it going?'
# => Hey Henry, hows it going?
setCool = (object) ->
object.cool = true
object
raquetBall =
isASport: true
ball: 'Raquet Ball'
raquetBall = setCool raquetBall
console.log raquetBall.cool
# => true
# ###
# React
# ###
React =
DOM:
p: (htmlTagProperties, children, value) ->
# something really complicated
div: (htmlTagProperties, children, value) ->
# something really complicated
img: (htmlTagProperties, children, value) ->
# something really complicated
a: (htmlTagProperties, children, value) ->
# something really complicated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment