Skip to content

Instantly share code, notes, and snippets.

David Cheung kccheung

Block or report user

Report or block kccheung

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
kccheung /
Created May 11, 2018 — forked from ottosch/
A script to help using ymgve's bitcoin_fork_claimer script
#!/usr/bin/env python
# This script is meant to be used with bitcoin_fork_claimer:
# The outputs of this script are the inputs to that script.
# Python 2.x is required
import urllib2
import json
import sys
kccheung /
Created Apr 30, 2018 — forked from n8henrie/
Python script template
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
A simple python script template.
import argparse
kccheung / .vimrc
Last active Jul 10, 2017 — forked from simonista/.vimrc
A basic .vimrc file that will serve as a good template on which to build.
View .vimrc
" Don't try to be vi compatible
set nocompatible
" Helps force plugins to load correctly when it is turned back on below
filetype off
" TODO: Load plugins here (pathogen or vundle)
" Turn on syntax highlighting
syntax on
View gist:74ff6d287ee6a32677b188fda593eac0
ACTION = build
ALTERNATE_MODE = u+w,go-w,a+rX
ALTERNATE_OWNER = grantdavis
#!/usr/bin/env bash
if [ "$1" == "" ]; then
echo "Usage: $0 <buildToolsVersion>";
find \
node_modules \
-type f \
-iname 'build.gradle' \
kccheung /
Last active Mar 12, 2017 — forked from darklight721/
Using MobX with decorators in React Native

Using MobX with decorators in React Native

The following instructions should work with React Native v0.32:

  1. Install mobx libraries.

    npm install mobx --save
    npm install mobx-react --save
http lib connect timeout (ms) read timeout write timeout concurrency
OkHttp, retrofit, picasso 10,000 10,000 10,000 64 total, 5 per host
Volley 2,500 2,500 2,500 4
HttpUrlConnection up to few minutes up to few minutes n/a 5
kccheung / SingletonDefaultExportInstance.js
Created Jan 27, 2017 — forked from dmnsgn/SingletonDefaultExportInstance.js
ES6 singleton pattern: module default exports an instance
View SingletonDefaultExportInstance.js
class SingletonDefaultExportInstance {
constructor() {
this._type = 'SingletonDefaultExportInstance';
singletonMethod() {
return 'singletonMethod';
static staticMethod() {
kccheung / Readme.markdown
Created Jan 11, 2017 — forked from mat/Readme.markdown
apple-app-site-association —with examples
View Readme.markdown

“apple-app-site-association” file

One file for each domain, both and need separate files:

    "applinks": {
        "apps": [],
        "details": {
            "": {
kccheung /
Created Dec 26, 2016 — forked from AvnerCohen/
Node.js - npm Cheat Sheet

Node.js - npm Cheat Sheet

(Full description and list of commands at -

##List of less common (however useful) NPM commands

######Prepand ./bin to your $PATH Make sure to export your local $PATH and prepand relative ./node_modules/.bin/:

You can’t perform that action at this time.