Skip to content

Instantly share code, notes, and snippets.

View Anr-C's full-sized avatar
🏠
no working.

Anric Anr-C

🏠
no working.
  • Guangzhou, China
View GitHub Profile
@Anr-C
Anr-C / KeyboardStatusDetector.java
Created February 4, 2021 12:06 — forked from billylindeman/KeyboardStatusDetector.java
This is a KeyboardStatusDetector for android that uses a globalLayoutListener to dispatch events if a Softkeyboard is shown or hidden
import android.app.Activity;
import android.app.Fragment;
import android.graphics.Rect;
import android.view.View;
import android.view.ViewTreeObserver.OnGlobalLayoutListener;
/**
* Detects Keyboard Status changes and fires events only once for each change
*/
@Anr-C
Anr-C / start_thunder.sh
Created April 8, 2017 03:27 — forked from nanpuyue/start_thunder.sh
CrossOver 迅雷极速版启动脚本,用于修复残留窗口遮挡屏幕
#!/bin/bash
# filename: start_thunder.sh
# date: 2017-03-11
# author: nanpuyue <nanpuyue@gmail.com> https://blog.nanpuyue.com
EXIT_TIME=$(( $(date +%s) + 15 ))
exec "/opt/cxoffice/bin/wine" --bottle "迅雷极速版" --check --wait-children --start "C:/users/Public/Start Menu/Programs/迅雷软件/迅雷极速版/启动迅雷极速版.lnk" "$@" &