Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

HourGlass lingarajsankaravelu

🏠
Working from home
View GitHub Profile
@lingarajsankaravelu
lingarajsankaravelu / CVJNI.java
Created Dec 22, 2021 — forked from sheimi/CVJNI.java
JNI Demo (invode opencv ...)
View CVJNI.java
import java.io.*;
public class CVJNI {
//Load jni library
static {
try {
System.loadLibrary("cvjni");
} catch (Exception e) {
e.printStackTrace();
}
@lingarajsankaravelu
lingarajsankaravelu / proguard-rules.pro
Created Oct 13, 2021 — forked from jemshit/proguard-rules.pro
Proguard rules for common Android libraries
View proguard-rules.pro
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
-keepclassmembers class fqcn.of.javascript.interface.for.webview {
public *;
}
### RxJava, RxAndroid (https://gist.github.com/kosiara/487868792fbd3214f9c9)
-keep class rx.schedulers.Schedulers {
public static <methods>;
@lingarajsankaravelu
lingarajsankaravelu / shell.sh
Created Aug 16, 2021 — forked from letroll/shell.sh
[Android ADB Broadcast] send broadcast from adb #adb #android #broadcast
View shell.sh
adb shell am broadcast -a com.whereismywifeserver.intent.TEST
[-e|--es <EXTRA_KEY> <EXTRA_STRING_VALUE> ...]
[--esn <EXTRA_KEY> ...]
[--ez <EXTRA_KEY> <EXTRA_BOOLEAN_VALUE> ...]
[--ei <EXTRA_KEY> <EXTRA_INT_VALUE> ...]
[--el <EXTRA_KEY> <EXTRA_LONG_VALUE> ...]
[--ef <EXTRA_KEY> <EXTRA_FLOAT_VALUE> ...]
[--eu <EXTRA_KEY> <EXTRA_URI_VALUE> ...]
[--ecn <EXTRA_KEY> <EXTRA_COMPONENT_NAME_VALUE>]
@lingarajsankaravelu
lingarajsankaravelu / fix_vector.py
Last active May 23, 2019
Fixes vector path problems in Android Drawables
View fix_vector.py
# From Original Post https://medium.com/@rachitmishra/invalid-vector-drawable-fixing-1-to-0-1-1b430d7469e7
from xml.dom.minidom import parse, parseString
from sys import argv
import os
def fix_path(pathdata, token):
# Fix missing 0 after space
points = pathdata.split(token)
for i, b in enumerate(points):
if b.startswith('.'):
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname