Skip to content

Instantly share code, notes, and snippets.

View ramdhanjr11's full-sized avatar
®️
Focusing

M Ramdhan Syahputra ramdhanjr11

®️
Focusing
View GitHub Profile
@zgramming
zgramming / shared.dart
Created October 29, 2021 01:58
SSL Pinning
class Shared {
static Future<HttpClient> customHttpClient({
bool isTestMode = false,
}) async {
SecurityContext context = SecurityContext(withTrustedRoots: false);
try {
List<int> bytes = [];
if (isTestMode) {
bytes = utf8.encode(_certificatedString);
@minhcasi
minhcasi / Flutter Clean.md
Last active September 19, 2025 17:54
These are common issues on Flutter and solutions to fix

Quick Clean Cache

  1. Open android studio Tools->Flutter->Clean
  2. Go to File -> Invalidate Caches / Restart
  3. Or open terminal run "flutter clean"
  4. Remove pubspec.lock
  5. Double check the Flutter SDK Path config correcty - https://tppr.me/qn6dP

Or open the terminal and try this script:

flutter clean
@qoomon
qoomon / conventional-commits-cheatsheet.md
Last active May 6, 2026 16:39
Conventional Commits Cheatsheet
@JoseAlcerreca
JoseAlcerreca / Event.kt
Created April 26, 2018 10:25
An event wrapper for data that is exposed via a LiveData that represents an event.
/**
* Used as a wrapper for data that is exposed via a LiveData that represents an event.
*/
open class Event<out T>(private val content: T) {
var hasBeenHandled = false
private set // Allow external read but not write
/**
* Returns the content and prevents its use again.