This file contains hidden or 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
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) |
This file contains hidden or 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
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 |