Skip to content

Instantly share code, notes, and snippets.

View henrytao-me's full-sized avatar

Henry Tao henrytao-me

View GitHub Profile
@henrytao-me
henrytao-me / invert.md
Created January 12, 2024 00:32 — forked from arbourd/invert.md
Invert Windows 10 mouse scroll wheel
  1. Open Powershell as an administrator
  2. Run
    Get-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Enum\HID\*\*\Device` Parameters FlipFlopWheel -EA 0 | ForEach-Object { Set-ItemProperty $_.PSPath FlipFlopWheel 1 }
  3. Verify that all mice devices have had their FlipFlopWheel attributes set to 1
    Get-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Enum\HID\*\*\Device` Parameters FlipFlopWheel -EA 0
  4. Reboot
@henrytao-me
henrytao-me / DeepPress.java
Last active January 25, 2017 02:20
Deep press observable for customize backspace view
/*
* 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 January 11, 2017 06:13
Ultimate holder for building custom in-app keyboard
/*
* 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
/*
* 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
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"
}
/*
* 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 December 31, 2015 09:31
ByTag helper for ghost blogging platform
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
@henrytao-me
henrytao-me / decompile_apk.md
Last active December 14, 2015 01:43
Decompile APK
/**
* 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
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";