Skip to content

Instantly share code, notes, and snippets.

@si14
si14 / mod.erl
Last active December 13, 2015 22:19 — forked from anonymous/gist:4983641
https://www.erlang-solutions.com/downloads/download-erlang-otp
sudo apt-get build-dep erlang
sudo apt-get install libwxgtk2.8-0 libwxbase2.8-0
sudo dpkg -i ПАКЕТ
для 12.04:
sudo add-apt-repository ppa:cassou/emacs
sudo apt-get update
@si14
si14 / light.coffee
Created January 11, 2012 11:06
Light class
class window.Light
# constructor for class
constructor: (@posx, @posy) ->
@state = Math.floor(Math.random() * 2)
@speed = Math.floor(Math.random() * 16)
setInterval(@changeState, 1000 * @speed + 5000)
# method to draw light
draw: =>
ctx.drawImage(img[@state], size[0] + @posx * size[0] - 18, size[1] + @posy * size[1] - 18)