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
ext.versions = [ | |
buildTools : '28.0.3', | |
compileSdk : 28, | |
targetSdk : 28, | |
minSdk : 19, | |
androidGradlePlugin : '3.4.0-rc03', | |
dexcountGradlePlugin : '0.8.6', | |
fabricGradlePlugin : '1.28.1', | |
firebaseGradlePlugin : '1.2.0', |
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
traceroute atlassian.com | |
traceroute: Warning: atlassian.com has multiple addresses; using 18.234.32.153 | |
traceroute to atlassian.com (18.234.32.153), 64 hops max, 52 byte packets | |
1 192.168.230.1 (192.168.230.1) 54.758 ms 55.670 ms 56.407 ms | |
2 * * * | |
3 * * * | |
4 * * * | |
5 * * * | |
6 * * * | |
7 54.239.109.228 (54.239.109.228) 148.536 ms |
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
class AppsflyerInstanceIdListener : FirebaseMessagingService() { | |
override fun onNewToken(token: String) { | |
AppsFlyerLib.getInstance().updateServerUninstallToken(applicationContext, token) | |
} | |
} |
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
class FrescoSphericalPanoramaView(context: Context, attrs: AttributeSet) : SphericalPanoramaView(context: Context, attrs: AttributeSet) { | |
private val multiDraweeHolder: MultiDraweeHolder<GenericDraweeHierarchy> = MultiDraweeHolder() | |
fun bindTo(tileUris: List<Uri>) = post { | |
multiDraweeHolder.clear() | |
val imagesSetter = getImagesSetter(...) | |
tileUris.forEachIndexed { index, uri -> | |
val holder = DraweeHolder.create(GenericDraweeHierarchyBuilder(resources).build(), context) | |
val imageRequest = ImageRequestBuilder.newBuilderWithSource(uri) |
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
import com.google.android.gms.tasks.OnCompleteListener | |
import com.google.android.gms.tasks.Task | |
import io.reactivex.Completable | |
import io.reactivex.CompletableEmitter | |
import io.reactivex.CompletableOnSubscribe | |
import io.reactivex.Single | |
import io.reactivex.SingleEmitter | |
import io.reactivex.SingleOnSubscribe |
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.denison; | |
import org.openjdk.jmh.annotations.*; | |
import org.openjdk.jmh.runner.Runner; | |
import org.openjdk.jmh.runner.RunnerException; | |
import org.openjdk.jmh.runner.options.Options; | |
import org.openjdk.jmh.runner.options.OptionsBuilder; | |
import java.util.ArrayList; | |
import java.util.Collections; |
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
#set($paramName = $helper.getParamName($field, $project)) | |
public ## | |
#if($field.modifierStatic) | |
static ## | |
#end | |
void set$StringUtil.capitalizeWithJavaBeanConvention($StringUtil.sanitizeJavaIdentifier($helper.getPropertyName($field, $project)))($field.type $paramName) { | |
checkReadOnly(); | |
#if (!$field.primitive) | |
checkIfNull($paramName); | |
#end |
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
#include <vector> | |
#include <cstdlib> | |
#include <iostream> | |
#include <iomanip> | |
#include <string> | |
#include <ctime> | |
#include <cstdio> | |
#include <cmath> | |
using namespace std; |
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 2010 Square, Inc. | |
package com.squareup.seismic; | |
import android.hardware.Sensor; | |
import android.hardware.SensorEvent; | |
import android.hardware.SensorEventListener; | |
import android.hardware.SensorManager; | |
import java.util.ArrayList; | |
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
// Update to get Worker-0 -> Worker-1 -> Worker-0... order | |
public class Main { | |
public static void main(String[] args) { | |
new Thread(new Worker()).start(); | |
new Thread(new Worker()).start(); | |
} | |
static class Worker implements Runnable { | |
@Override |
NewerOlder