- Learn You a Haskell for Great Good
- Javascript Allonge
- Mostly adequate guide to FP (in javascript)
- The introduction to Reactive Programming you've been missing
- Introduction to Reactive Programming
- RxJS Beyond the Basics: Creating Observables from scratch
- What if the user was a function? | Andre Staltz
- Cycle.js and functional reactive user interfaces | Andre Staltz
- Cycle.js Fundamentals
This file contains 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
function paperParallax () { | |
const paperWrapper = document.getElementById('paperWrapper'); | |
var divs = paperWrapper.getElementsByTagName('div'); | |
divs = Array.from(divs); | |
var center = { | |
x: window.innerWidth / 2, | |
y: window.innerHeight / 2 | |
}; | |
document.addEventListener('mousemove', (e) => { |
This file contains 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
var readline = require('readline'); | |
var rl = readline.createInterface({ | |
input: process.stdin, | |
output: process.stdout | |
}); | |
rl.question("What's the pyramid size? ", function(answer) { | |
var size = parseInt(answer); | |
if (size) { |
This file contains 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
var readline = require('readline'); | |
var rl = readline.createInterface({ | |
input: process.stdin, | |
output: process.stdout | |
}); | |
rl.question("What's the pyramid size? ", function(answer) { | |
var size = parseInt(answer); | |
var tmpString = ""; |
This file contains 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
/* | |
* args = { | |
* infiniteLoop: true/false(default = false), | |
* loopCount: number of animation loop(default = 1), | |
* duration: seconds in integer(default = 2), | |
* transition: transition effect(default = linear) | |
* } | |
* | |
* Author: Revaz Zakalashvili | |
* Inspiration: https://jakearchibald.com/2013/animated-line-drawing-svg/ |
This file contains 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
var isFunction = function(obj) { | |
var getType = {}; | |
return obj && getType.toString.call(obj) === '[object Function]'; | |
} |