#Literate CoffeeScript
Literate coffeescript, let you mix Markdown syntax with plain coffeescript.
class Person
constructor: (@name) ->
@age = 0
#Literate CoffeeScript
Literate coffeescript, let you mix Markdown syntax with plain coffeescript.
class Person
constructor: (@name) ->
@age = 0
pms = ->[ | |
'rasperrypi', | |
'windows embedded', | |
'46"', | |
'hubot', | |
'node.js', | |
'arp-scan', | |
'airplay', | |
'studio', | |
'visuwall', |
--- | |
products: | |
- {prix: 17, name: mon-cahier-3, description: "<a href='mailto:someone@morlhon.net?subject=test%20test'>jl</a>"} | |
- {prix: 18, name: mon-cahier-7, description: "<h1>TEST</h1>"} | |
--- | |
<html> | |
<head> | |
<title>Jekyll test</title> | |
</head> | |
<body> |
#!/bin/sh | |
ip=`ifconfig | awk '/inet /' | awk '!/127.0./' | awk '!/172./' | awk '{ print $2 }'` | |
subnet=`echo $ip | cut -d '.' -f1-3` | |
sudo arp-scan -l | grep "$subnet" | awk '{print $2}' | tr '[:lower:]' '[:upper:]' | |
# sudo nmap -sP $subnet.1-254 | grep MAC | awk '{print $3}' |
should = require('chai').should() | |
class MineSweeper | |
constructor: (gridAsString) -> | |
return if !gridAsString? | |
grid = gridAsString.split '\n' | |
firstLine = grid[0].split ' ' | |
@width = +firstLine[0] | |
@height = +firstLine[1] | |
@grid = grid[1..] |
#!/usr/bin/env coffee | |
fs = require('fs') | |
exec = require('child_process').exec | |
unless process.argv[3]? | |
console.log """ | |
missing parameters : | |
watch.coffee directory_to_watch script_to_exec_on_file_change | |
""" | |
process.exit -1 |
public class Omnibus { | |
String commands[] = { | |
"OPEN","CLOSE","UP", | |
"OPEN","CLOSE","UP", | |
"OPEN","CLOSE","UP", | |
"OPEN","CLOSE","UP", | |
"OPEN","CLOSE","UP", | |
"OPEN","CLOSE","DOWN", | |
"OPEN","CLOSE","DOWN", |
class Omnibus | |
constructor: -> | |
@commands = [] | |
reset: -> | |
@commands = [] | |
call: -> | |
next: -> |
# tapei.conf | |
description "This is a *very* simple elevator implementation serving as a starting point for code-story S03E01" | |
start on startup | |
stop on shutdown | |
script | |
echo $$ > /var/run/tapei.pid |