(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.
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"); |
(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(": "); |
(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.
#!/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); |
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('-') | |
); |