This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2020-08-26 12:19:10.755 32271-32271/? I/.ux.beta.sampl: Late-enabling -Xcheck:jni | |
2020-08-26 12:19:10.824 32271-32271/? E/.ux.beta.sampl: Unknown bits set in runtime_flags: 0x8000 | |
2020-08-26 12:19:10.957 32271-32271/com.dji.ux.beta.sample I/.ux.beta.sampl: The ClassLoaderContext is a special shared library. | |
2020-08-26 12:19:10.971 32271-32271/com.dji.ux.beta.sample I/.ux.beta.sampl: The ClassLoaderContext is a special shared library. | |
2020-08-26 12:19:12.088 32271-32271/com.dji.ux.beta.sample W/.ux.beta.sampl: Accessing hidden field Ldalvik/system/BaseDexClassLoader;->pathList:Ldalvik/system/DexPathList; (greylist, reflection, allowed) | |
2020-08-26 12:19:12.088 32271-32271/com.dji.ux.beta.sample W/.ux.beta.sampl: Accessing hidden method Ldalvik/system/DexPathList;->makeInMemoryDexElements([Ljava/nio/ByteBuffer;Ljava/util/List;)[Ldalvik/system/DexPathList$Element; (greylist, JNI, allowed) | |
2020-08-26 12:19:12.338 32271-32271/com.dji.ux.beta.sample W/.ux.beta.sampl: Accessing hidden field Ldalvik/system/DexPathList |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright (c) 2018-2020 DJI | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
* copies of the Software, and to permit persons to whom the Software is | |
* furnished to do so, subject to the following conditions: | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var libUrl = null; | |
var scriptTag = Array.prototype.slice | |
.call(document.getElementsByTagName("script")) | |
.filter(x => /\?proxy?/.test(x.src)); | |
if (scriptTag.length > 0) { | |
libUrl = scriptTag[0].src.split("m.js")[0]; | |
} else { | |
throw new Error("missing '?proxy' query parameter in your proxy url!"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var bitcoin = require('bitcoinjs-lib'); | |
var network = bitcoin.networks.testnet; | |
var bip39 = require('bip39'); | |
var mnemonic = 'Insert mnemonics' | |
var seed = bip39.mnemonicToSeed(mnemonic) | |
var root = bitcoin.HDNode.fromSeedBuffer(seed, network); | |
var master = root.derivePath("m/44'/1'/0'"); | |
var xpub = master.neutered().toBase58(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.jernejerin.traffic.helper; | |
import java.util.Comparator; | |
import java.util.PriorityQueue; | |
import java.util.Queue; | |
// Given a stream of unsorted integers, find the median element in sorted order at any given time. | |
// http://www.ardendertat.com/2011/11/03/programming-interview-questions-13-median-of-integer-stream/ | |
public class MedianOfIntegerStream { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.jernejerin.reactor.samples; | |
import reactor.Environment; | |
import reactor.core.DispatcherSupplier; | |
import reactor.rx.Streams; | |
import java.util.Arrays; | |
import java.util.List; | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.jernejerin.reactor.samples; | |
import reactor.Environment; | |
import reactor.fn.Consumer; | |
import reactor.io.codec.json.JsonCodec; | |
import reactor.io.net.ChannelStream; | |
import reactor.io.net.NetStreams; | |
import reactor.io.net.tcp.TcpClient; | |
import reactor.io.net.tcp.TcpServer; | |
import reactor.rx.Streams; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.jernejerin; | |
import reactor.Environment; | |
import reactor.core.Dispatcher; | |
import reactor.core.dispatch.ThreadPoolExecutorDispatcher; | |
import reactor.rx.broadcast.Broadcaster; | |
public class ReactorHelloWorld { | |
public static void main(String[] args) throws InterruptedException { | |
// If using Reactor’s static Environment instance, it must be |