Last active
September 3, 2015 00:34
-
-
Save enjalot/c8a4874aaaffb6f9d099 to your computer and use it in GitHub Desktop.
coffee-script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<head> | |
<meta charset="utf-8"> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js"></script> | |
<script src="http://coffeescript.org/extras/coffee-script.js"></script> | |
</head> | |
<body> | |
<div id="coffee"> | |
CoffeeScript | |
</div> | |
<script type="text/coffeescript"> | |
console.log "hi" | |
x = -> | |
5 | |
console.log x() | |
d3.select "#coffee" | |
.style | |
"font-size": "150px" | |
"font-family": "Verdana" | |
"margin-top": "140px" | |
</script> | |
</body> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment