This file contains hidden or 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
| org.gradle.api.ProjectConfigurationException: A problem occurred configuring project ':app'. | |
| at org.gradle.configuration.project.LifecycleProjectEvaluator.wrapException(LifecycleProjectEvaluator.java:79) | |
| at org.gradle.configuration.project.LifecycleProjectEvaluator.addConfigurationFailure(LifecycleProjectEvaluator.java:72) | |
| at org.gradle.configuration.project.LifecycleProjectEvaluator.access$600(LifecycleProjectEvaluator.java:53) | |
| at org.gradle.configuration.project.LifecycleProjectEvaluator$NotifyAfterEvaluate.run(LifecycleProjectEvaluator.java:198) | |
| at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:402) | |
| at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:394) | |
| at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165) | |
| at org.gr |
This file contains hidden or 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.android.build.gradle.AppExtension | |
| import com.android.build.gradle.AppPlugin | |
| import com.android.build.gradle.BaseExtension | |
| import com.android.build.gradle.LibraryPlugin | |
| import org.gradle.api.Plugin | |
| import org.gradle.api.Project | |
| class MercariAndroidPlugin : Plugin<Project> { | |
| override fun apply(project: Project) { |
https://www.metaltoad.com/blog/beginners-guide-git-bisect-process-elimination
(1d0cd2c65) git bisect start
(1d0cd2c65) git bisect good 1d0cd2c65
(1d0cd2c65) git bisect bad ef33d3b4b
Bisecting: 492 revisions left to test after this (roughly 9 steps)
[bb7505a5fd2da7284f8dcc1a423bbfcc20165ce8] [Nazca] fix tutorial text resource (#1105)
This file contains hidden or 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 CaptorToArgumentMatcher { | |
| @Test | |
| fun captor() { | |
| ArgumentCaptor.forClass(JSONObject::class.java).also { captor -> | |
| verify(tracker).view(eq("screen event"), captor.capture()) | |
| assertThat(captor.value.length()).isEqualTo(3) | |
| assertThat(captor.value.get("number")).isEqualTo(12.3) | |
| assertThat(captor.value.get("string")).isEqualTo("value") |
This file contains hidden or 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
| buildscript { | |
| repositories { | |
| jcenter() | |
| } | |
| dependencies { | |
| classpath 'com.android.tools.build:gradle:3.1.2' | |
| classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" | |
| classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3' | |
| classpath 'com.github.dcendents:android-maven-gradle-plugin:2.0' // generate Android friendly POM | |
| } |
After login, go to your app Dashboard to discover:
-
APP_ID is your app authentication. Using the same accross all your Android/iOS clients is allowing to access same content.
-
API_TOKEN or in other words your Master API Token. This token is like your Bitcoin private key. NEVER SEND IT TO YOUR CLIENTS!
This file contains hidden or 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 fr.pgreze.app.ui.product | |
| import android.content.Context | |
| import android.util.AttributeSet | |
| import android.view.View | |
| import android.widget.FrameLayout | |
| import kotlinx.android.synthetic.main.item_product.view.* | |
| class ProductLayout(context: Context, attrs: AttributeSet) : FrameLayout(context, attrs) { |
This file contains hidden or 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.example; | |
| public class Iterations { | |
| static int solution_BinaryGap(int N) { | |
| if (N < 2) return 0; | |
| boolean isInGap = false; | |
| int maxGap = 0, currentGap = 0; | |
| for (int i = Integer.SIZE - 1; i >= 0; --i) { | |
| if ((N & (1 << i)) != 0) { |
This file contains hidden or 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 "stdio.h" | |
| // Best solution. Complexity: 2N | |
| int solution(int A[], int N) { | |
| if (N == 0) return -1; | |
| if (N == 1) return 0; | |
| int equilibriumIdx = -1; | |
| // Compute sum or array except first element | |
| int rightSum = 0; |