Skip to content

Instantly share code, notes, and snippets.

chauthai / rndriver.js
Last active Feb 12, 2017
React Native Lowdb Driver
View rndriver.js
export default {
read: () =>
return require('./db.json');
chauthai / browser-stderr.js
Created Nov 27, 2015
A node polyfill for process.stderr in a browser
View browser-stderr.js
var WritableStream = require('stream');
var inherits = require('util').inherits;
module.exports = BrowserStderr;
inherits(BrowserStderr, WritableStream);
function BrowserStderr(opts) {
if (!(this instanceof BrowserStderr)) return new BrowserStderr(opts);
View scroller-es6.js
import _ from 'lodash';
import React from 'react';
import clamp from './clamp.js';
import dimensions from './dimensions.js';
class Scroller extends React.Component {
static propTypes = {
onScroll: React.PropTypes.func,
onNearTop: React.PropTypes.func,
target: React.PropTypes.object,