Skip to content

Instantly share code, notes, and snippets.

View OlukaDenis's full-sized avatar
🚀
Availbale for Hire

Oluka Denis OlukaDenis

🚀
Availbale for Hire
View GitHub Profile
.list-item:nth-of-type(odd){
background-color: slategrey;
}
.list-item::after {
background-image: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="none" stroke="black" stroke-width="4" stroke-miterlimit="10" d="M4.75 1.5l6.5 6.5-6.5 6.5"/></svg>');
background-size: 8px 8px;
background-repeat: no-repeat;
content: '';
display: inline-block;
height: 8px;
margin-left: 4px;
width: 16px;
}
@OlukaDenis
OlukaDenis / AppSignatureHashHelper.kt
Last active January 6, 2023 12:34
A helper that generates an 11 alphanumeric hash for SMS Retriever API
import android.annotation.TargetApi
import android.content.Context
import android.content.ContextWrapper
import android.content.pm.PackageManager
import android.util.Base64.*
import timber.log.Timber
import java.nio.charset.StandardCharsets
import java.security.MessageDigest
import java.security.NoSuchAlgorithmException