Skip to content

Instantly share code, notes, and snippets.

Erick Massa Sprengel ericksprengel

Block or report user

Report or block ericksprengel

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ericksprengel
ericksprengel / Giphy.java
Created Oct 20, 2016
Retrofit - Giphy API
View Giphy.java
package br.com.ericksprengel.aa.retrofit.model;
import java.util.Map;
public class Giphy {
public String id;
public String type;
public Map<String, GiphyImage> images;
View ArrayAdapterActivity.java
package br.com.comschool.aula02b;
import android.app.ListActivity;
import android.os.Bundle;
import android.widget.ArrayAdapter;
public class ArrayAdapterActivity extends ListActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
@ericksprengel
ericksprengel / http_gist.txt
Created Oct 8, 2016
AndroidA03T03 - HTTP Request/Response
View http_gist.txt
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Trying 192.30.253.116...
* Connected to api.github.com (192.30.253.116) port 443 (#0)
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
* Server certificate: *.github.com
* Server certificate: DigiCert SHA2 High Assurance Server CA
* Server certificate: DigiCert High Assurance EV Root CA
@ericksprengel
ericksprengel / layout_padding_vs_margin.xml
Created Sep 30, 2016
AndroidA02ApB - Padding vs Margin
View layout_padding_vs_margin.xml
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/activity_main"
android:orientation="vertical"
android:background="#fcc"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:id="@+id/imageView"
View AsyncTaskActivity.java
package br.com.ericksprengel.androidaula03;
import android.app.Activity;
import android.os.AsyncTask;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
public class AsyncTaskActivity extends Activity {
@ericksprengel
ericksprengel / AndroidA02T02Activity.java
Created Sep 22, 2016
Android - Aula 02 - Tópico 02 - Activity
View AndroidA02T02Activity.java
package br.com.ericksprengel.aula04;
import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
public class AndroidA02T02Activity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
@ericksprengel
ericksprengel / JavaA01E01Fibonacci.java
Created Sep 20, 2016
Aula Java - A01E01 - Fibonacci
View JavaA01E01Fibonacci.java
class JavaA01E01Fibonacci {
public static void main(String[] args) {
// Reference: https://pt.wikipedia.org/wiki/Sequ%C3%AAncia_de_Fibonacci
int f0 = 0;
int f1 = 1;
int aux;
System.out.println("0: " + f0);
System.out.println("1: " + f1);
View Conta.java
class Conta {
String nome;
int cc
int agencia;
double saldo;
}
You can’t perform that action at this time.