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
function finaliza(id){ | |
$.post("finalizaTarefa", {"id": id}, function(){ | |
$("#tarefa_"+id).html("Finalizado"); | |
}); | |
} |
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
function finalizaAgora(id) { | |
$.post("finalizaTarefa", {'id' : id}, function(tarefa){ | |
$("#tarefa_"+id).html("Finalizado!"); | |
var dataFinalizacao = new Date(tarefa.dataFinalizacao); | |
var dataFormatada = formataData(dataFinalizacao); | |
$('#dataFim_'+id).html(dataFormatada); | |
}, "json"); | |
} | |
function formataData(dataFinalizacao){ |
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 javax.servlet.*; | |
import javax.servlet.http.HttpServletResponse; | |
import java.io.IOException; | |
public class CacheBustingFilter implements Filter { | |
private static final String CACHE_CONTROL = "Cache-Control"; | |
private static final String CACHE_SETTINGS = "must-revalidate,no-cache,no-store"; | |
@Override |
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
interface ComparacaoDeDesenhos { | |
boolean valePara(Desenho desenho); | |
} |
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
interface ComparacaoDeDesenhos { | |
boolean valePara(Desenho desenho); | |
} |
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.*; | |
class ProgramaComForEach { | |
public static void main(String[] args){ | |
List<String> personagens = Arrays.asList("Pato Donald", "Mickey", "Pateta", "Pluto"); | |
for(int i = 0; i < personagens.size(); i++){ | |
String personagem = personagens.get(i); | |
System.out.println(personagem); |
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
interface Interface { | |
static void i(){ | |
System.out.println("interface"); | |
} | |
} | |
class ClasseMae { | |
static void a(){ | |
System.out.println("mãe"); | |
} |
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.time.DayOfWeek; | |
import java.time.Month; | |
import java.time.YearMonth; | |
import java.util.function.Function; | |
import java.util.stream.Collectors; | |
import java.util.stream.Stream; | |
public class DiasUteisComCollectToMap { | |
public static void comCollectToMap(int ano) { | |
Stream.of(Month.values()) |
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 br.com.caelum.argentum.bean; | |
//outros imports continuam... | |
import br.com.caelum.argentum.grafico.GeradorModeloGraficoCandle; | |
import org.primefaces.model.chart.OhlcChartModel; | |
@ManagedBean | |
@ViewScoped | |
public class ArgentumBean implements Serializable { |
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 br.com.caelum.argentum; | |
import org.junit.After; | |
import org.junit.Assert; | |
import org.junit.Before; | |
import org.junit.Test; | |
import org.openqa.selenium.By; | |
import org.openqa.selenium.WebDriver; | |
import org.openqa.selenium.WebElement; | |
import org.openqa.selenium.firefox.FirefoxDriver; |
OlderNewer