Skip to content

Instantly share code, notes, and snippets.

View simonpham's full-sized avatar
💻
on duty

Simon Pham simonpham

💻
on duty
View GitHub Profile
@simonpham
simonpham / hosts
Created October 14, 2021 17:14
Medium hosts
162.159.152.4 medium.com
162.159.152.4 api.medium.com
162.159.152.4 glyph.medium.com
162.159.152.4 miro.medium.com
162.159.152.4 cdn-client.medium.com
162.159.152.4 policy.medium.com
162.159.152.4 cdn-static-1.medium.com
162.159.152.4 cdn-images-1.medium.com
162.159.152.4 cdn-images-2.medium.com
/// Use SharedPreferences in Flutter effortlessly
/// https://medium.com/@simonpham/use-sharedpreferences-in-flutter-effortlessly-835bba8f7418
// utils/shared_prefs.dart
class SharedPrefs {
late final SharedPreferences _sharedPrefs;
static final SharedPrefs _instance = SharedPrefs._internal();
factory SharedPrefs() => _instance;
@lopspower
lopspower / README.md
Last active April 25, 2024 12:17
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