Skip to content

Instantly share code, notes, and snippets.

Henry Tao henrytao-me

View GitHub Profile
@henrytao-me
henrytao-me / DeepPress.java
Last active Jan 25, 2017
Deep press observable for customize backspace view
View DeepPress.java
/*
* Copyright 2017 "Henry Tao <hi@henrytao.me>"
*
* 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
@henrytao-me
henrytao-me / KeyboardHolder.java
Last active Jan 11, 2017
Ultimate holder for building custom in-app keyboard
View KeyboardHolder.java
/*
* Copyright 2017 "Henry Tao <hi@henrytao.me>"
*
* 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
View Pagination.java
/*
* Copyright 2016 "Henry Tao <hi@henrytao.me>"
*
* 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
View bintray.gradle
apply plugin: "com.jfrog.bintray"
apply plugin: "maven-publish"
version = project.ext.bintray.libraryVersion
task sourcesJar(type: Jar) {
from sourceSets.main.java.srcDirs
classifier = "sources"
}
View DiffRecyclerViewBindingAdapter.java
/*
* Copyright 2016 "Henry Tao <hi@henrytao.me>"
*
* 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
@henrytao-me
henrytao-me / ghost-by-tag-helper.js
Created Dec 31, 2015
ByTag helper for ghost blogging platform
View ghost-by-tag-helper.js
var hbs = require('express-hbs'),
api = require('./core/server/api'),
_ = require('lodash'),
async = require('express-hbs/lib/async'), // To redefine `registerAsyncHelper`
registerAsyncHelper;
// Redefine `registerAsyncHelper` from `express-hbs`
registerAsyncHelper = function(name, fn) {
hbs.handlebars.registerHelper(name, function(context, options) {
// Pass `[context, options]` as arg instead of `context` only
View decompile_apk.md
View BasePagerAdapter.java
/**
* Copyright 2013 Bo Wang
*
* 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
View BranchUtils.java
public class BranchUtils {
public static final String BRANCH_KEY_ANDROID_DEEPVIEW = "$android_deepview";
public static final String BRANCH_KEY_CLICKED_BRANCH_LINK = "+clicked_branch_link";
public static final String BRANCH_KEY_OG_DESCRIPTION = "$og_description";
public static final String BRANCH_KEY_OG_IMAGE_URL = "$og_image_url";
@henrytao-me
henrytao-me / AndroidManifest.xml
Last active Oct 12, 2015
branch.io implementation
View AndroidManifest.xml
<meta-data
android:name="io.branch.sdk.TestMode"
android:value="true" />
<meta-data
android:name="io.branch.sdk.BranchKey.test"
android:value="key_test_..." />
<meta-data
android:name="io.branch.sdk.BranchKey"
android:value="key_live_..." />
You can’t perform that action at this time.