(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.
(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 document is a collection of concepts and strategies to make large Elm projects modular and extensible.
We will start by thinking about the structure of signals in our program. Broadly speaking, your application state should live in one big foldp
. You will probably merge
a bunch of input signals into a single stream of updates. This sounds a bit crazy at first, but it is in the same ballpark as Om or Facebook's Flux. There are a couple major benefits to having a centralized home for your application state:
This is a guide on how to email securely.
There are many guides on how to install and use PGP to encrypt email. This is not one of them. This is a guide on secure communication using email with PGP encryption. If you are not familiar with PGP, please read another guide first. If you are comfortable using PGP to encrypt and decrypt emails, this guide will raise your security to the next level.
/* | |
Goes after | |
Polygon.MakeObservable(Polygon.prototype); | |
//... | |
*/ | |
var Text = Two.Text = function( text ) { |
/** | |
* Functionality: | |
* - adds breakpoint attributes to body & fires callbacks | |
* | |
* todo: callback params, height, matchMedia? | |
*/ | |
var extend = require('extend'); | |
var _data = { | |
currentBreakpoints : [], |
a break and a fracture | |
a buffalo and a bison | |
a college and a university | |
a sweet potato and a yam | |
a violin and a fiddle | |
add and adhd | |
almond flour and almond meal | |
alzheimer's and dementia | |
an attorney and a lawyer | |
autumn and fall |
// array utils | |
// ================================================================================================= | |
const combine = (...arrays) => [].concat(...arrays); | |
const compact = arr => arr.filter(Boolean); | |
const contains = (() => Array.prototype.includes | |
? (arr, value) => arr.includes(value) | |
: (arr, value) => arr.some(el => el === value) |
While this gist has been shared and followed for years, I regret not giving more background. It was originally a gist for the engineering org I was in, not a "general suggestion" for any React app.
Typically I avoid folders altogether. Heck, I even avoid new files. If I can build an app with one 2000 line file I will. New files and folders are a pain.
var iselement = require('is-element') | |
module.exports = function(opts) { | |
var testRatio | |
if (iselement(opts.tester)) { | |
testRatio = opts.tester.clientHeight / opts.tester.clientWidth | |
} else { | |
testRatio = window.innerHeight / window.innerWidth |
Go through this amazon link http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/install-LAMP.html