Skip to content

Instantly share code, notes, and snippets.

View tc's full-sized avatar
💭
🚢

Tommy Chheng tc

💭
🚢
View GitHub Profile
@tc
tc / using-ruby-1.9.3-p392.md
Last active December 15, 2015 06:38 — forked from juno/using-ruby-1.9.3-p327.md
update to reflect ruby 1.9.3-p392

Using ruby-1.9.3-p392 with ruby-env and ruby-build

Prerequisite

  • Mac OS X Mountain Lion (10.8.2)
  • Homebrew
  • readline
  • rbenv

Install or update ruby-build

var BusBoy = require('busboy'),
fs = require('fs'),
path = require('path');
var RE_MIME = /^(?:multipart\/.+)|(?:application\/x-www-form-urlencoded)$/i;
// options will have limit and uploadDir.
exports = module.exports = function(options){
options = options || {};
@tc
tc / CounterView.java
Last active June 24, 2016 19:44 — forked from edisonw/gist:a5d64c0402696f525a76
CounterView to support localization of grouping character.
/*
* Copyright (C) 2014 Twitter Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software