Skip to content

Instantly share code, notes, and snippets.

View marcoleonardini's full-sized avatar
:octocat:
Flutter Dev

Marco Leonardini marcoleonardini

:octocat:
Flutter Dev
View GitHub Profile
@marcoleonardini
marcoleonardini / debug session log
Last active July 27, 2023 21:34
Iterable Debug session
[log] Init Iterable
[log] Iterable stage
[log] iterableApiPlatform: GCM
E/IterableAuth(31148): ❤️ Error while parsing JWT for the expiration
E/IterableAuth(31148): java.lang.ArrayIndexOutOfBoundsException: length=1; index=1
E/IterableAuth(31148): at com.iterable.iterableapi.IterableAuthManager.decodedExpiration(IterableAuthManager.java:120)
E/IterableAuth(31148): at com.iterable.iterableapi.IterableAuthManager.queueExpirationRefresh(IterableAuthManager.java:80)
E/IterableAuth(31148): at com.iterable.iterableapi.IterableApi.retrieveEmailAndUserId(IterableApi.java:1071)
E/IterableAuth(31148): at com.iterable.iterableapi.IterableApi.initialize(IterableApi.java:295)
E/IterableAuth(31148): at com.schelly.iterable.IterablePlugin.initialize$lambda-2$lambda-1$lambda-0(IterablePlugin.kt:117)
@marcoleonardini
marcoleonardini / privacy-policy.md
Created August 25, 2022 20:21 — forked from federicoiosue/privacy-policy.md
Android App Privacy Policy

Privacy Policy

Privacy image

Introduction

Thank you for using my software! This document is the main privacy policy for Omni Notes Android and desktop applications. I respects your privacy rights and care about protecting your information collected by my apps.

@marcoleonardini
marcoleonardini / app_preferences.dart
Last active March 29, 2022 20:41
get preferences
static Future getKeyPreference(String key) async {
SharedPreferences? prefs;
try {
prefs = await SharedPreferences.getInstance();
return prefs.getString(key) ?? '';
} catch (e) {
throw Exception();
}
}
@marcoleonardini
marcoleonardini / MeasureSize.dart
Created January 25, 2022 15:03
MeasureSize.dart
class MeasureSizeRenderObject extends RenderProxyBox {
Size? oldSize;
final ValueChanged<Size> onChange;
MeasureSizeRenderObject(this.onChange);
@override
void performLayout() {
super.performLayout();
@marcoleonardini
marcoleonardini / launch.json
Last active July 7, 2021 15:45
VScode launch json ResortPass
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "flutter_mobile_frontend",
"request": "launch",
@marcoleonardini
marcoleonardini / credential.js
Last active June 16, 2021 03:05
Credentials
final credential = GoogleAuthProvider.credential(
accessToken: googleAuth.accessToken,
idToken: googleAuth.idToken,
);
// accessToken
ya29.a0AfH6SMA1X3UC0SoXBy3VcNdUjaxrhx-K8iHtffRQ2p5w7DJANoFhvR4YqMYVQUo8juj1x0o-Q4VUB3VQYKGLQRYXc5imcRuGqYyQFj7X5-KCfwI3AyiwtqktwavuAeGJB9nFAynJENCWYpRfLcHhVY5MLCzlHw
// idToken
eyJhbGciOiJSUzI1NiIsImtpZCI6IjE5ZmUyYTdiNjc5NTIzOTYwNmNhMGE3NTA3OTRhN2JkOWZkOTU5NjEiLCJ0eXAiOiJKV1QifQ.eyJpc3MiOiJodHRwczovL2FjY291bnRzLmdvb2dsZS5jb20iLCJhenAiOiI1NjI4ODU2MjAyOC1mZmoydDRvN3NtcG12Z3A0MTU0MGsxYTMwbWVsZGdoMi5hcHBzLmdvb2dsZXVzZXJjb250ZW50LmNvbSIsImF1ZCI6IjU2Mjg4NTYyMDI4LTUxcTZzMGducWl1aGwzbjNjb2t0YmNpZ3YzdXZpYTlsLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwic3ViIjoiMTE2NzY3NTYxMzMyNDczNjMxMTcyIiwiZW1haWwiOiJtYXJjby5ydWJlbi5sZW9uYXJkaW5pQGdtYWlsLmNvbSIsImVtYWlsX3ZlcmlmaWVkIjp0cnVlLCJuYW1lIjoiTWFyY28gTGVvbmFyZGluaSIsInBpY3R1cmUiOiJodHRwczovL2xoMy5nb29nbGV1c2VyY29udGVudC5jb20vYS0vQU9oMTRHakxtWWhTRWNTLWhhLTllNlFKNzU1aU5sb2d4NXRsVzNWX0Y1NG1VUT1zOTYtYyIsImdpdmVuX25hbWUiOiJNYXJjbyIsImZhbWlseV9u