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::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 / stair-case.js
Created August 17, 2019 09:49
A simplest method to solve Hackerrank stairCase problem.
function stairCase(n){
let arr = Array(n-1).fill(' ')
for (let i = n-1; i >= 0; i--) {
arr[i] = '#';
console.log(arr.join(''));
}
}
stairCase(6)
@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