Skip to content

Instantly share code, notes, and snippets.

@Selvatico
Selvatico / FRP.scala
Created March 18, 2017 07:11 — forked from nartamonov/FRP.scala
Простейшая реализация FRP в виде сигналов, моделирующих значения, зависимые от времени.
/**
* Простейшая реализация FRP в виде сигналов, моделирующих значения, зависимые от времени.
*
* Из курса "Functional Program Design in Scala" (2016), Lecture 4.3
* https://www.coursera.org/learn/progfun2/lecture/5lWVa/lecture-4-3-a-simple-frp-implementation
*/
trait SimpleFRP {
class Signal[T](expr: => T) {
@Selvatico
Selvatico / .bashrc
Created February 22, 2017 08:26 — forked from vsouza/.bashrc
Golang 1.5 setup in Mac OSX with HomeBrew. Set `GOPATH` and `GOROOT` variables in zshell or bash.
# Set variables in .bashrc file
# don't forget to change your path correctly!
export GOPATH=$HOME/golang
export GOROOT=/usr/local/opt/go/libexec
export PATH=$PATH:$GOPATH/bin
export PATH=$PATH:$GOROOT/bin