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
mkdir drawable drawable-ldpi drawable-mdpi drawable-hdpi drawable-xhdpi drawable-xxhdpi drawable-xxxhdpi drawable-nodpi drawable-tvdpi |
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
<link rel="import" href="../core-scaffold/core-scaffold.html"> | |
<link rel="import" href="../core-header-panel/core-header-panel.html"> | |
<link rel="import" href="../core-menu/core-menu.html"> | |
<link rel="import" href="../core-item/core-item.html"> | |
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../core-menu/core-submenu.html"> | |
<link rel="import" href="../core-pages/core-pages.html"> | |
<polymer-element name="my-element"> |
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 java.util.HashSet; | |
import java.util.Set; | |
/** | |
* https://www.udemy.com/programming-code-interview/#/lecture/2519488 | |
*/ | |
public class TargetSumArray { | |
public static void main(String[] args) { | |
TargetSumArray tsa = new TargetSumArray(); |
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
/* | |
* @author jules | |
* | |
*/ | |
public interface VideoServiceProxy { | |
public static final String DATA_PARAMETER = "data"; | |
public static final String ID_PARAMETER = "id"; | |
public static final String VIDEO_SVC_PATH = "/video"; |
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
You should check the definition of the authors, I'm sharing my answers here to generate discussion if you think is worth it. | |
The questions are on page 43 of my edition this might be different on your edition, | |
I'll only post my answers so please check the questions on the book. | |
1. Split2 is more orthogonal because it hides the details of the implementation to its consumers. | |
2. Modeless in general are less dependant of the context so for me this is more orthogonal, and usually a modal dialog depends on the actions or state of the caller, so if you change the caller code or the actions the caller can perform the modal dialog might have to be updated too, leading this type of dialog to be less orthogonal. | |
3. I'll say procedural,... In theory Object Oriented technology is more orthogonal because it hides the implementation and the state of the code, in procedural more often when you change one of the dependencies it might lead to an undesired impact on the program overall. | |
At the end in my point of view it dep |
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
/* | |
# source: https://www.reddit.com/r/androiddev/comments/3ig3gm/show_us_your_gradle_tasks/cugju7z | |
usage: | |
./gradlew jacocoTestReport -Popeninbrowser=true #opens in browser | |
./gradlew jacocoTestReport #does not open in browser | |
*/ | |
configurations { | |
jacocoReport | |
} |
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 android.content.Intent; | |
import android.os.Bundle; | |
import android.support.v7.app.AlertDialog; | |
import android.support.v7.app.AppCompatActivity; | |
import android.view.View; | |
import android.widget.Button; | |
import android.widget.EditText; | |
import android.widget.ProgressBar; | |
import android.widget.RelativeLayout; |
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 org.rcgonzalezf.onetoten | |
import java.math.BigInteger | |
/** | |
* | |
* https://projecteuler.net/problem=2 | |
* | |
* Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be: | |
* |
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.rcgonzalezf.example.common.network | |
import com.github.kittinunf.fuel.core.Client | |
import com.github.kittinunf.fuel.core.FuelError | |
import com.github.kittinunf.fuel.core.Request | |
import com.github.kittinunf.fuel.core.Response | |
import okhttp3.MediaType | |
import okhttp3.OkHttpClient | |
import okhttp3.RequestBody | |
import java.io.ByteArrayInputStream |
OlderNewer