Skip to content

Instantly share code, notes, and snippets.

@Faisal-FS
Faisal-FS / MainActivity.kt
Created March 7, 2025 02:40
Jetpack Compose OTP Screen With Animations – Code & Resources
/* 10 Min To Create The PERFECT Jetpack Compose OTP Screen With Animations – Code & Resources
This Gist contains the essential code and resources mentioned in my YouTube tutorial:
Watch the full video tutorial here: https://bit.ly/4ia6Dvq
*/
import android.os.Bundle
import androidx.activity.ComponentActivity
@Faisal-FS
Faisal-FS / LogUtil.java
Last active December 3, 2022 18:44
This is a reference code for the video "https://youtube.com/shorts/-swdK0vKcgM"
public class LogUtil {
public static String getTag(){
StackTraceElement element = new Exception().getStackTrace()[1];
String tag = element.getClassName();
Matcher m = Pattern.compile("(\\$\\d+)+$").matcher(tag);
if (m.find()) {
tag = m.replaceAll("");
}
return tag.substring(tag.lastIndexOf('.') + 1);
}
@Faisal-FS
Faisal-FS / roles_invesitgation.md
Created May 8, 2019 11:08 — forked from facultymatt/roles_invesitgation.md
Roles and permissions system for Nodejs