- Does the code work?
- Description of the project status is included.
- Code is easily understand.
- Code is written following the coding standarts/guidelines (React in our case).
- Code is in sync with existing code patterns/technologies.
- DRY. Is the same code duplicated more than twice?
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
import RNFetchBlob from 'react-native-fetch-blob'; | |
const DocumentDir = RNFetchBlob.fs.dirs.DocumentDir; | |
const storagePath = `${DocumentDir}/persistStore`; | |
const encoding = 'utf8'; | |
const toFileName = name => ( | |
name.split(':').join('-') | |
); |
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
#!/usr/bin/env node | |
var esprima = require('esprima'); | |
var estraverse = require('estraverse'); | |
var escodegen = require('escodegen'); | |
var fs = require('fs'); | |
var _ = require('lodash'); | |
var file = fs.readFileSync('./actions.js', 'utf-8'); | |
var tree = esprima.parse(file); |
(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 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() { | |
var CSSCriticalPath = function(w, d, opts) { | |
var opt = opts || {}; | |
var css = {}; | |
var pushCSS = function(r) { | |
if(!!css[r.selectorText] === false) css[r.selectorText] = {}; | |
var styles = r.style.cssText.split(/;(?![A-Za-z0-9])/); | |
for(var i = 0; i < styles.length; i++) { | |
if(!!styles[i] === false) continue; | |
var pair = styles[i].split(": "); |
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 googleDataEvents = { | |
pageTracker: null, | |
init: function (document) { | |
document.find("a[data-ga-label],area[data-ga-label]").click(this.trackLink); | |
}, | |
trackLink: function (e) { | |
if (_gaq) { | |
e.preventDefault(); | |
var l = $(this); | |
var label = l.attr("data-ga-label"); |