Skip to content

Instantly share code, notes, and snippets.

View melkopisi's full-sized avatar
🏠
Working from home

Mohamed Mostafa melkopisi

🏠
Working from home
View GitHub Profile
@emilydelorme
emilydelorme / makepkg.conf
Last active March 3, 2024 17:32
My personal makepkg.conf using wget
#!/hint/bash
#
# /etc/makepkg.conf
#
#########################################################################
# SOURCE ACQUISITION
#########################################################################
#
#-- The download utilities that makepkg should use to acquire sources
@orwir
orwir / SharedPreferencesExtensions.kt
Last active March 12, 2024 09:27
Kotlin extensions for shared preferences
import android.content.Context
import android.content.SharedPreferences
import kotlin.reflect.KProperty
/**
* Creates delegate for property from [prefs] with the key presented as className+propertyName.
* @param T type of the property
* @param defaultValue is used if property not set
* @return wrapper for property accessors
*/
@lopspower
lopspower / README.md
Last active June 27, 2024 14:14
Hexadecimal color code for transparency

Hexadecimal color code for transparency

Twitter

How to set transparency with hex value ?

For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.

Download This sample on Google Play Store