Skip to content

Instantly share code, notes, and snippets.

View banshee's full-sized avatar

James Moore banshee

View GitHub Profile
### Keybase proof
I hereby claim:
* I am banshee on github.
* I am jamespb (https://keybase.io/jamespb) on keybase.
* I have a public key ASCUf4s1AZcg36PGd5M3C1pPu6XDolWx0hlw3Xgkrrb8zgo
To claim this, I am signing this object:
package com.banshee.kotlinsamplecode
class KotlinSample {
data class Holder(val x: Int, val s: String)
companion object {
// one of these for all instances of KotlinSample
}
val x = com.banshee.kotlinsamplecode.KotlinSampleObject.fn("whatever")
msbuild is from xamarin:
james@Jamess-MacBook-Pro:~/Projects/CallbackBugRepro/BadTestFile$ which msbuild
/Library/Frameworks/Mono.framework/Versions/Current/Commands/msbuild
Script started on Fri Apr 13 09:26:14 2018
command: msbuild
[?1h=Microsoft (R) Build Engine version 15.4.0.0 (xplat-master/67e8006d Thu Mar 8 17:15:24 EST 2018) for Mono
Copyright (C) Microsoft Corporation. All rights reserved.
ANDROID_LINK_debug_arm64-v8a = -fPIC -isystem $(NDK)/sysroot/usr/include/aarch64-linux-android -D__ANDROID_API__=21 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -Wa,--noexecstack -Wformat -Werror=format-security -std=c++11 -std=c++11 -fexceptions -O0 -fno-limit-debug-info -Wl,--exclude-libs,libgcc.a --sysroot $(NDK)/platforms/android-21/arch-arm64 -Wl,--build-id -Wl,--warn-shared-textrel -Wl,--fatal-warnings -L$(NDK)/sources/cxx-stl/llvm-libc++/libs/arm64-v8a -Wl,--no-undefined -Wl,-z,noexecstack -Qunused-arguments -Wl,-z,relro -Wl,-z,now -shared -Wl,-soname,libnative-lib.so -o $(ANDROID_NDK_TARGET_FILE) -Wl,-whole-archive $(LIBS) $(LDFLAGS) -Wl,-no-whole-archive -llog -lz -lm "$(NDK)/sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libc++.so"
ANDROID_CXX_debug_arm64-v8a_flags = --target=aarch64-none-linux-android --gcc-toolchain=$(NDK)/toolchains/aarch64-linux-android-4.9/prebuilt/$(TOOLS_OS_PLATFORM) --sysroot=$(NDK)/sysroot -isystem $(NDK)/sysroot/usr/include/
@banshee
banshee / report.txt
Created April 12, 2017 18:21
xamarin crash report
Process: VisualStudio [96608]
Path: /Applications/Visual Studio.app/Contents/MacOS/VisualStudio
Identifier: com.microsoft.visual-studio
Version: 7.0.0.2715 (7.0.0.2715)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: VisualStudio [96608]
User ID: 501
Date/Time: 2017-04-12 11:19:18.369 -0700
@banshee
banshee / errors.txt
Created March 30, 2017 15:44
spark shell errors
Script started on Thu Mar 30 08:43:31 2017
command: ./bin/spark-shell --master local[4]
Using Spark's default log4j profile: org/apache/spark/log4j-defaults.properties
Setting default log level to "WARN".
To adjust logging level use sc.setLogLevel(newLevel). For SparkR, use setLogLevel(newLevel).
17/03/30 08:43:39 WARN NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
17/03/30 08:43:39 WARN Utils: Service 'SparkUI' could not bind on port 4040. Attempting port 4041.
17/03/30 08:43:41 WARN General: Plugin (Bundle) "org.datanucleus.api.jdo" is already registered. Ensure you dont have multiple JAR versions of the same plugin in the classpath. The URL "file:/Users/james/spark/jars/datanucleus-api-jdo-3.2.6.jar" is already registered, and you are trying to register an identical plugin located at URL "file:/Users/james/spark-2.1.0-bin-hadoop2.7/jars/datanucleus-api-jdo-3.2.6.jar."
17/03/30 08:43:41 WARN General: Plugin (Bundle) "org.datanucleus" i
@banshee
banshee / build.txt
Created March 10, 2017 22:02
build failure
Building: MultidexTest (Debug)
Build started 3/10/2017 1:57:47 PM.
__________________________________________________
Project "/Users/james/Projects/MultidexTest/MultidexTest/MultidexTest.csproj" (Build target(s)):
Target _SetLatestTargetFrameworkVersion:
Found Android SDK. API levels: 19, 21, 23, 24, 25
This is the manifest that Xamarin creates when you include Xamarin.Firebase.Messaging. It's what you get when you
have this in your base AndroidManifest.xml:
<?xml version="1.0" encoding="utf-8"?>
<manifest
xmlns:android ="http://schemas.android.com/apk/res/android"
android:versionCode="1"
android:versionName="1.0"
package ="com.digium.fcmtest2">
<uses-sdk
There's a version of AndroidManifest.xml that's generated by Xamarin Studio at https://gist.github.com/banshee/eb7cdd94652e21ca0aeaeb3978c9da06.
(That gist does not contain the manual changes for com.google.firebase.iid.FirebaseInstanceIdReceiver and com.google.firebase.iid.FirebaseInstanceIdInternalReceiver.)
<?xml version="1.0" encoding="utf-8"?>
<manifest
xmlns:android="http://schemas.android.com/apk/res/android">
<!--Xamarin.Firebase.Iid/library_project_imports/AndroidManifest.xml-->
<uses-permission
android:name="android.permission.WAKE_LOCK" />
module FSharpConsumer
let a = FSharpNamespace.Class2.Something;
// Notice that in F# we use "open" for both modules and namespaces.
// See the F# spec section 14.1.3 Opening Modules and Namespace Declaration Groups
// for precise details.
open FSharpNamespace
let b = Class2.Something;