Skip to content

Instantly share code, notes, and snippets.

View LiewJunTung's full-sized avatar

Liew Jun Tung LiewJunTung

View GitHub Profile
@lyqht
lyqht / KotlinEverywhereSG19.md
Last active October 6, 2022 09:46
GDG SG X Kotlin User Group SG - Kotlin/Everywhere Meetup 2019
@LiewJunTung
LiewJunTung / gitshortcut.sh
Last active October 1, 2020 02:21
Useful alias for git
#!/bin/bash
git config --global alias.lg "log --oneline --decorate --all --graph"
git config --global alias.s "status -s"
git config --global pull.rebase true
git config --global rerere.enabled true
git config --global user.name "Liew Jun Tung"
git config --global user.email pandawarrior91@gmail.com
@andhie
andhie / PermissionUtil.java
Last active October 23, 2017 17:04
Marshmallow Permission Level
public static void printPermissions(Context context) {
PackageInfo android;
try {
android = context.getPackageManager().getPackageInfo("android", PackageManager.GET_PERMISSIONS);
} catch (PackageManager.NameNotFoundException e) {
e.printStackTrace();
return;
}
PermissionInfo[] permissions = android.permissions;