Skip to content

Instantly share code, notes, and snippets.

Chau Thai chauthai

Block or report user

Report or block chauthai

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@chauthai
chauthai / rndriver.js
Last active Feb 12, 2017
React Native Lowdb Driver
View rndriver.js
export default {
read: () =>
{
return require('./db.json');
}
};
@chauthai
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,
You can’t perform that action at this time.