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 contract.manager.login; | |
import android.os.Bundle; | |
import android.support.v7.app.AppCompatActivity; | |
import contract.manager.R; | |
public class LoginActivity extends AppCompatActivity { | |
private Contracts.Presenter presenter; |
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 contract.manager.novocontrato; | |
import android.support.design.widget.TextInputLayout; | |
import android.util.Log; | |
import android.view.LayoutInflater; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import android.widget.BaseExpandableListAdapter; | |
import android.widget.ImageView; | |
import android.widget.LinearLayout; |
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 datahora.util; | |
import java.text.SimpleDateFormat; | |
import java.util.Calendar; | |
import java.util.Locale; | |
/** | |
* Created by Marcus Eduardo - marcusedu7@gmail.com on 11/09/2017. | |
*/ | |
public class ResumoHorario { |
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
public class ExemploPaginacaoFirebaseDoUltimoParaOPrimeiro{ | |
private DatabaseReference listaRef = FirebaseDatabase.getInstance().getReference("suaLista"); | |
private int numItensPorPagina = 15; | |
private ArrayList<SeuItem> itens = new ArrayList(); | |
private ChildEventListener meuChildEventListener = new ChildEventListener() { | |
@Override | |
public void onChildAdded(DataSnapshot dataSnapshot, String s) { | |
// Aqui ele registra a ultima key recebida e | |
// compara se a key atual é mais velha se for guardamos ela | |
if (ultimoItem == null) |
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
<?php | |
/** | |
* Description of MyDateAnalytics | |
* Esta classe é uma ajuda ao comparar se uma data, | |
* está nesse semana, semana passada, neste mês ou | |
* no mês passado | |
* @author marcus eduardo marcusedu7@gmail.com | |
*/ | |
class MyDateAnalytics { |
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 'dart:math'; | |
void main() { | |
sorteio(); | |
sorteio(); | |
sorteio(); | |
sorteio(); | |
sorteio(); | |
sorteio(); | |
} |
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
main(){ | |
//Vai compilar | |
dynamic numero = 10; | |
print('Agora a variavel numero é um ${numero.runtimeType} e possui o valor "$numero"'); | |
//Agora vai compilar | |
numero = "Dez"; | |
print('Agora a variavel numero é um ${numero.runtimeType} e possui o valor "$numero"'); | |
//Vai lançar uma exceção em tempo de execução | |
int resultadoSoma = 19 + numero; | |
print('"Dez" + 19 = $resultadoSoma'); |
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
main(){ | |
exemploParametroNomeadoOpcional("Olá viajante!"); | |
exemploParametroNomeadoOpcional("Olá undead!", sujeito: "Crestfallen Warrior"); | |
} | |
void exemploParametroNomeadoOpcional(String msg/*Parâmetro obrigatorio*/, | |
{String sujeito/*Parâmetro opcional*/}){ | |
print('$sujeito: $msg'); | |
} |
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
main(){ | |
funcaoParametroPosicionadoOpcional("Eu gosto de Video Games!",'Raul'); | |
funcaoParametroPosicionadoOpcional('As vezes sonho que estou caindo e acordo assustado', | |
'Eu Sonhando', 2); | |
funcaoParametroPosicionadoOpcional("Você aqui de novo?"); | |
} | |
void funcaoParametroPosicionadoOpcional(String msg, | |
[String sujeito = "Nameless King", | |
int repetirXVezes=1]){ |
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
main(){ | |
var marcusFala = pessoaFala("Marcus"); | |
print(marcusFala("É muito legal uma função retornar outra função")); | |
var claudioFala = pessoaFala("Claudio"); | |
print(claudioFala("Você só fica pronto fazendo!")); | |
} | |
Function pessoaFala(String nome) => (String msg) => "$nome: $msg"; |
OlderNewer