(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
/* | |
* This work is free. You can redistribute it and/or modify it under the | |
* terms of the Do What The Fuck You Want To Public License, Version 2, | |
* as published by Sam Hocevar. See the COPYING file for more details. | |
*/ | |
/* | |
* Easing Functions - inspired from http://gizma.com/easing/ | |
* only considering the t value for the range [0, 1] => [0, 1] | |
*/ | |
EasingFunctions = { |
var parser = document.createElement('a'); | |
parser.href = "http://example.com:3000/pathname/?search=test#hash"; | |
parser.protocol; // => "http:" | |
parser.hostname; // => "example.com" | |
parser.port; // => "3000" | |
parser.pathname; // => "/pathname/" | |
parser.search; // => "?search=test" | |
parser.hash; // => "#hash" | |
parser.host; // => "example.com:3000" |
#3366CC | |
#DC3912 | |
#FF9900 | |
#109618 | |
#990099 | |
#3B3EAC | |
#0099C6 | |
#DD4477 | |
#66AA00 | |
#B82E2E |
{-# LANGUAGE TypeFamilies #-} | |
import Data.Function (on) | |
import Control.Applicative | |
data EventData e = EventData { | |
eventId :: Int, | |
body :: Event e | |
} |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
Please consider using http://lygia.xyz instead of copy/pasting this functions. It expand suport for voronoi, voronoise, fbm, noise, worley, noise, derivatives and much more, through simple file dependencies. Take a look to https://github.com/patriciogonzalezvivo/lygia/tree/main/generative
float rand(float n){return fract(sin(n) * 43758.5453123);}
float noise(float p){
float fl = floor(p);
float fc = fract(p);
RAML
Swagger
$ brew install pyenv | |
$ echo 'eval "$(pyenv init -)"' >> ~/.bash_profile | |
$ source ~/.bash_profile | |
$ pyenv install 2.7.6 | |
$ pyenv global 2.7.6 |
:f bower_components/purescript-prelude/src/Prelude.js | |
:m bower_components/purescript-prelude/src/Prelude.purs | |
:f bower_components/purescript-eff/src/Control/Monad/Eff.js | |
:m bower_components/purescript-eff/src/Control/Monad/Eff.purs | |
:f bower_components/purescript-console/src/Control/Monad/Eff/Console.js | |
:m bower_components/purescript-console/src/Control/Monad/Eff/Console.purs | |
:f bower_components/purescript-eff/src/Control/Monad/Eff/Unsafe.js | |
:m bower_components/purescript-eff/src/Control/Monad/Eff/Unsafe.purs | |
import Prelude | |
import Control.Monad.Eff.Console |
# EditorConfig helps developers define and maintain consistent | |
# coding styles between different editors and IDEs | |
# editorconfig.org | |
root = true | |
[*] | |
end_of_line = lf | |
charset = utf-8 |