Skip to content

Instantly share code, notes, and snippets.

View zhonghanwen's full-sized avatar
💭
I may be slow to respond.

Hongwen1001 zhonghanwen

💭
I may be slow to respond.
View GitHub Profile
@sunnylqm
sunnylqm / .eslintrc
Created August 18, 2016 15:21
eslint for reactnative
{
"extends": "airbnb",
"parser": "babel-eslint",
"env": {
"browser": true,
"node": true,
"mocha": true
},
"rules": {
// Disable for __DEV__, __SERVER__ usage.
@pyricau
pyricau / IMMLeaks.java
Last active June 5, 2022 22:46
"Fix" for InputMethodManager leaking the last focused view: https://code.google.com/p/android/issues/detail?id=171190
import android.app.Activity;
import android.app.Application;
import android.content.Context;
import android.content.ContextWrapper;
import android.os.Bundle;
import android.os.Looper;
import android.os.MessageQueue;
import android.util.Log;
import android.view.View;
import android.view.ViewTreeObserver;