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
<?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 [email protected] | |
*/ | |
class MyDateAnalytics { |
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
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 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 datahora.util; | |
import java.text.SimpleDateFormat; | |
import java.util.Calendar; | |
import java.util.Locale; | |
/** | |
* Created by Marcus Eduardo - [email protected] on 11/09/2017. | |
*/ | |
public class ResumoHorario { |
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 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 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 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; |
NewerOlder