Skip to content

Instantly share code, notes, and snippets.

Avatar

James Moore banshee

View GitHub Profile
View sample.kt
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")
View gist:66462afe0af9ab72274acdc3573f0ba2
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.
View gist:15f1a5fbce0c71af6498656bb02ebc67
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 Apr 12, 2017
xamarin crash report
View report.txt
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 Mar 30, 2017
spark shell errors
View errors.txt
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 Mar 10, 2017
build failure
View build.txt
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
View AndroidManifest.xml
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
View AndroidManifestForFcm.xml
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" />
View fsharpconsumer.fs
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;
View fsharpmodulefile.fs
module FSharpModule
let fn() = 1
type Class1() =
member this.X = "F#"