Skip to content

Instantly share code, notes, and snippets.

@GameTheory-
GameTheory- / bash-colors.md
Last active October 3, 2019 23:16 — forked from iamnewton/bash-colors.md
ANSI color codes.

Regular Colors

Value Color
\e[0;30m Black
\e[0;31m Red
\e[0;32m Green
\e[0;33m Yellow
\e[0;34m Blue
\e[0;35m Purple
@GameTheory-
GameTheory- / RealPathUtil.java
Created January 24, 2022 18:49 — forked from ImaginativeShohag/RealPathUtil.java
Real Path Utility class for Android. Tested till API 29. Kotlin version: https://gist.github.com/ImaginativeShohag/4e53572141c017369941bbbaac538576
import android.annotation.SuppressLint;
import android.content.ContentUris;
import android.content.Context;
import android.database.Cursor;
import android.net.Uri;
import android.os.Build;
import android.os.Environment;
import android.provider.DocumentsContract;
import android.provider.MediaStore;