(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.
<?php | |
namespace AppBundle\Mapping; | |
use Doctrine\ORM\Mapping as ORM; | |
use DateTime; | |
/** | |
* Class EntityBase | |
* |
{ | |
"content_scripts": [ | |
{ | |
"matches": ["http://*/*", "https://*/*"], | |
"js": ["inject.js"], | |
"all_frames": true | |
} | |
], | |
"web_accessible_resources": [ | |
"content.js" |
{ | |
"name": "Detect if an extension installed", | |
"description": "Detect if an extension installed", | |
"version": "0.1", | |
"manifest_version": 2, | |
"permissions": [ | |
"management" | |
], | |
"browser_action": { | |
"default_popup": "popup.html" |
/** | |
* allow to cache response and/or to listen on newRequest event | |
* | |
* for cache system, it's freely adapted from https://github.com/pagekit/vue-resource/issues/252 @airtonix sample | |
*/ | |
export class HttpInterceptors { | |
_cache | |
constructor (Vue, ttlInHours) { |
{ | |
"presets": ["es2015"], | |
"plugins": ["transform-async-to-generator"] | |
} |
I use the first | |
—– BEGIN LICENSE —– | |
Michael Barnes | |
Single User License | |
EA7E-821385 | |
8A353C41 872A0D5C DF9B2950 AFF6F667 | |
C458EA6D 8EA3C286 98D1D650 131A97AB | |
AA919AEC EF20E143 B361B1E7 4C8B7F04 |
//App.js: | |
... | |
connect(mapStateToProps, { fetchData })(App) | |
//ActionCreator: | |
export const fetchData = () => (dispatch) => { | |
dispatch({type: FETCHING_DATA}) | |
getPeople() | |
.then(data => dispatch({type: FETCHING_DATA_SUCCESS, payload: data})) | |
.catch(er => dispatch({type: FETCHING_DATA_FAILURE})) |
(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.
// Production steps of ECMA-262, Edition 5, 15.4.4.21 | |
// Reference: http://es5.github.io/#x15.4.4.21 | |
if (!Array.prototype.reduce) { | |
Array.prototype.reduce = function(callback /*, initialValue*/) { | |
'use strict'; | |
if (this == null) { | |
throw new TypeError('Array.prototype.reduce called on null or undefined'); | |
} | |
if (typeof callback !== 'function') { | |
throw new TypeError(callback + ' is not a function'); |