Skip to content

Instantly share code, notes, and snippets.

View stoefln's full-sized avatar

Stephan Petzl stoefln

View GitHub Profile
@stoefln
stoefln / graphhopper route converted to mapbox format
Created February 18, 2019 16:53
LatLng(41.406914, 2.156693) LatLng(41.403597, 2.175327)
{
"geometry":"{_h~mAcrsbCs]v[{Tsg@bmAwmA{Og^cQs]~wDgtDw[{m@zsB_zCvt@wcAbt@seAkiA_cB_X{^os@chAwt@{fAju@kdAwy@_oAfm@s{@",
"routeOptions":{
"baseUrl":"dumyUrllllll",
"user":"dummyUserrrrr",
"profile":"dummyProfile....",
"coordinates":[
],
"geometries":"dummyGeometries",
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.toursprung.bikemap, PID: 28576
java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=10, result=-1, data=Intent { (has extras) }} to activity {com.toursprung.bikemap/com.toursprung.bikemap.ui.auth.AuthenticationActivity}: kotlin.KotlinNullPointerException
at android.app.ActivityThread.deliverResults(ActivityThread.java:4491)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:4534)
at android.app.ActivityThread.-wrap20(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1752)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6944)
./gradlew clean;
./gradlew --scan --recompile-scripts --offline --rerun-tasks assembleProductionDebug
Initialized native services in: /Users/steph/.gradle/native
Found daemon DaemonInfo{pid=29332, address=[d65001ce-c44a-46a2-92e6-724289b0d320 port:60443, addresses:[/0:0:0:0:0:0:0:1, /127.0.0.1]], state=Idle, lastBusy=1520253317740, context=DefaultDaemonContext[uid=44505cc5-9a73-43b6-8d1f-6068f0913cb4,javaHome=/Library/Java/JavaVirtualMachines/jdk1.8.0_92.jdk/Contents/Home,daemonRegistryDir=/Users/steph/.gradle/daemon,pid=29332,idleTimeout=10800000,daemonOpts=-XX:MaxPermSize=512m,-Xmx4G,-Dfile.encoding=UTF-8,-Duser.country=AT,-Duser.language=en,-Duser.variant]} however its context does not match the desired criteria.
At least one daemon option is different.
Wanted: DefaultDaemonContext[uid=null,javaHome=/Library/Java/JavaVirtualMachines/jdk1.8.0_92.jdk/Contents/Home,daemonRegistryDir=/Users/steph/.gradle/daemon,pid=36017,idleTimeout=null,daemonOpts=-XX:MaxPermSize=512m,-Xmx4G,-Dfile.encoding=UTF-8,-Duser.country=US,-Duser.language=en,-Duser.variant]
Actual: DefaultDaemonContext[uid=44505cc5-9a73-43b6-8d1f-6068
./gradlew clean;
./gradlew --profile --recompile-scripts --offline --rerun-tasks assembleProductionDebug
// Initializes Fabric for builds that don't use the debug build type.
Crashlytics crashlyticsKit = new Crashlytics.Builder()
.core(new CrashlyticsCore.Builder().disabled(BuildConfig.DEBUG).build())
.build();
Fabric.with(this, crashlyticsKit);
android {
...
buildTypes {
debug {
ext.enableCrashlytics = false
}
}
/*
* Arduino control for a solenoid valve array (currently 8 pieces), which are hooked up to tubes with liquid inside.
* Each solenoid valve controls a stream of air which is blown into the stream of liquid inside the tubes.
* By layouting the tubes on a wall it's possible to create beautiful animations
*/
#define TRACK_NUMBER 8
#define MAX_CHARS_PER_TRACK 80
class Track
@stoefln
stoefln / embed.html
Last active September 1, 2016 12:34
<script type="text/javascript" id="seesmart-embedder-axszsdfas-s813e9-3737-d5a159268ae6" class="seesmart-embedder-axszsdfas-s813e9-3737-d5a159268ae6">
(function() {
function async_load(){
var s = document.createElement('script');
s.type = 'text/javascript';
s.async = true;
__seesmart = {
button_selector: '###button_selector###'
};
s.src = 'https://www.seesmart.at/v1/seesmart-tracking-min.js';