File: coffeescript.coffee

package info (click to toggle)
jekyll 3.1.6%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 3,820 kB
  • ctags: 997
  • sloc: ruby: 10,045; sh: 145; xml: 59; makefile: 28
file content (11 lines) | stat: -rw-r--r-- 202 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
---
message: "I knew it!"
---

$ ->
  list   = [1, 2, 3, 4, 5]
  square = (x) -> x * x
  cube   = (x) -> square(x) * x
  cubes  = (math.cube num for num in list)

  alert "{{ page.message }}" if elvis?