Skip to content

Instantly share code, notes, and snippets.

@khris
khris / build.gradle
Last active December 17, 2015 13:38
(OUTDATED) Real Android appplication project with Gradle
/**
**CAUTION**
This boilerplate code is useless at least about importing dependencies for
support libraries and Google service libraries. See
[this post](https://plus.google.com/u/0/+AndroidDevelopers/posts/4Yhpn6p9icf).
But it is useful for 3rd party libraries that doesn't `aar` yet.
@khris
khris / github_add_issues.js
Created December 18, 2013 10:41
Google Apps Script to add issues from spread sheet
function onOpen() {
var sheet = SpreadsheetApp.getActive();
var menuItems = [
{name: 'Add issues...', functionName: 'addIssues'}
];
sheet.addMenu('GitHub', menuItems);
}
function addIssues() {
var re = /^\[?.*\]?\s*(.*)$/;
@khris
khris / OAuth1.java
Created January 18, 2014 08:54
Alternative OAuth 1 implements for Twitter's hbc. It's compatible with joauth 6.0.+ so independent from Scala.
/**
* Original: https://github.com/twitter/hbc/blob/master/hbc-core/src/main/java/com/twitter/hbc/httpclient/auth/OAuth1.java
*
* It is compatible with scala-less joauth 6.0.+, but hbc is not
* compatible with Android. #EpicFail
*
* Licensed under the Apache License, Version 2.0 (the "License");
**/
/**