Skip to content

Instantly share code, notes, and snippets.

@davidpfahler
davidpfahler / gist:b0f210f6b5928bde47df
Created February 7, 2015 21:54
PouchDB live replication log
HR finished loading: GET "https://excellenteasy.cloudant.com/?_nonce=1423345990564".
XHR finished loading: GET "https://excellenteasy.cloudant.com/optinmobile-data-com-appbusinesspodcast/_local/juxttyr3WRjWC5OV4CL.fg==?_nonce=1423345990695".
XHR finished loading: GET "https://excellenteasy.cloudant.com/optinmobile-data-com-appbusinesspodcast/…CRtEtK8glh2AWAbzWTLYMpMUA9NUgzTCBmUBAOtEiYY&limit=100&_nonce=1423345990830".
XHR finished loading: GET "https://excellenteasy.cloudant.com/optinmobile-data-com-appbusinesspodcast/…016acf8440f28a70bb7e2fedd2ece93c%22]&attachments=true&_nonce=1423345991080".
XHR finished loading: GET "https://excellenteasy.cloudant.com/optinmobile-data-com-appbusinesspodcast/_local/juxttyr3WRjWC5OV4CL.fg==?_nonce=1423345991217".
XHR finished loading: GET "https://excellenteasy.cloudant.com/optinmobile-data-com-appbusinesspodcast/…CRtEtK8glh2AWAbzWQ3YMpMUA9NUgzTCBmUBAFDaif0&limit=100&_nonce=1423345991078".
XHR finished loading: PUT "https://excellenteasy.cloudant.com/optinmobile-data-com-ap
@davidpfahler
davidpfahler / test.js
Created July 27, 2015 08:40
Experiment in running unit tests without temporary files but still compile using webpack
import vm from 'vm'
import realFs from 'fs'
import path from 'path'
import react from 'react/addons'
import test from 'tape'
import mock from 'mock-fs'
import MemoryFileSystem from 'memory-fs'
import webpack from 'webpack'
import config from './webpack.config.js'
import ExtractTextPlugin from 'extract-text-webpack-plugin'
@davidpfahler
davidpfahler / alternative1.js
Last active December 8, 2015 19:23
Alternative Redux API suggestions without action constants using only functions
import { createStore } from 'redux'
let increment = (state = 0, x) => { return state + x }
let decrement = (state = 0, x) => { return state - x}
let store = createStore([increment, decrement])
store.subscribe(() =>
console.log(store.getState())
)
@davidpfahler
davidpfahler / component.js
Last active June 15, 2016 12:55
Passing select props to child component with feross/standard
/*eslint no-unused-vars: ["error", { "varsIgnorePattern": "^_$" }]*/
import React, { Component } from 'react'
import Child from '../components/Child'
class ParentContainer extends Component {
componentDidMount () {
this.fetchData()
}
fetchData () {
// this.props.receiveData is a Redux prebound action creator
const fs = require('fs')
const path = require('path')
const colors = require('colors/safe')
const webpack = require('webpack')
const WebpackBuildNotifierPlugin = require('webpack-build-notifier')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const compact = require('lodash.compact')
const without = require('lodash.without')
// This webpack config does not only support two different entry points
@davidpfahler
davidpfahler / LM06_cuda_cnn_hooks.ipynb
Last active July 26, 2019 13:47
fastai Deep Learning Part 2 Lesson 10 - experiments with gradient inspection
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@davidpfahler
davidpfahler / how_to_train_your_resnet_fastaiv1.ipynb
Created September 15, 2019 21:11
how_to_train_your_resnet_fastaiv1.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@davidpfahler
davidpfahler / reproduce_original_how_to_train_your_resnet.ipynb
Created September 24, 2019 07:51
Reproduce Part 1: Baseline of "How to train your resnet"
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@davidpfahler
davidpfahler / how_to_train_your_resnet_fastaiv1.ipynb
Created September 24, 2019 07:54
Attempt to reproduce Part 1: Baseline of "How to train your resnet" with fastai v1
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@davidpfahler
davidpfahler / how_to_train_your_resnet_fastaiv1.ipynb
Last active September 24, 2019 13:59
Attempt to reproduce baseline using memory-cached dataset
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.