Skip to content

Instantly share code, notes, and snippets.

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

Rui ruisilva450

🏠
Working from home
View GitHub Profile
@ruisilva450
ruisilva450 / txt
Created November 8, 2017 18:41
Xamarin Settings java.lang.Boolean cannot be cast to java.lang.String
{Java.Lang.ClassCastException: java.lang.Boolean cannot be cast to java.lang.String
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <896ad1d315ca4ba7b117efb8dacaedcf>:0
at Java.Interop.JniEnvironment+InstanceMethods.CallObjectMethod (Java.Interop.JniObjectReference instance, Java.Interop.JniMethodInfo method, Java.Interop.JniArgumentValue* args) [0x00069] in <7cfbebb561c54efc9010b018c0846c7e>:0
at Android.Runtime.JNIEnv.CallObjectMethod (System.IntPtr jobject, System.IntPtr jmethod, Android.Runtime.JValue* parms) [0x0000e] in <e975227ac8644a30bb0866117325de0d>:0
at Android.Content.ISharedPreferencesInvoker.GetString (System.String key, System.String defValue) [0x0006c] in <e975227ac8644a30bb0866117325de0d>:0
at Plugin.Settings.SettingsImplementation.GetValueOrDefaultCore[T] (Android.Content.ISharedPreferences sharedPreferences, System.String key, T defaultValue, System.String fileName) [0x00179] in C:\projects\settingsplugin\src\Plugin.Settings.Android\Settings.cs
@ruisilva450
ruisilva450 / cloudSettings
Last active December 16, 2020 17:20
Vscode settings
{"lastUpload":"2020-12-16T17:22:08.188Z","extensionVersion":"v3.4.3"}
const exec = require('child_process').exec;
const fs = require('fs');
const path = require('path');
var pathPrefix = process.argv.slice(2)[0];
// find the styles css file
const files = getAllFiles(`./${pathPrefix}/`, '.css');
let data = [];