- 1c
- actionscript
- as
- apache
- apacheconf
- applescript
- osascript
- asciidoc
- autohotkey
- avrasm
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
angular.module('alurapic') | |
.controller('EstadosController', function($scope, $http) { | |
$http.get('/v1/estados') | |
.success(function(estados) { | |
$scope.estados = estados; | |
}); | |
$scope.escolheuEstado = function() { | |
$scope.cidadeEscolhida = undefined; | |
console.log($scope.estadoEscolhido); | |
if($scope.estadoEscolhido) { |
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
<!DOCTYPE html> | |
<html ng-app="imcApp"> | |
<head> | |
<script src="https://code.angularjs.org/1.3.5/angular.min.js"></script> | |
</head> | |
<body ng-controller="ImcController"> | |
<label>Peso <input ng-model="peso"/> kg</label><br/> | |
<label>Altura <input ng-model="altura"/> m</label><br/> | |
<button ng-click="calculaImc()">Calcular IMC</button> | |
<div ng-show="exibeResultados"> |
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
<!DOCTYPE html> | |
<html ng-app> | |
<body> | |
<label>Peso <input ng-model="peso"/> kg</label><br/> | |
<label>Altura <input ng-model="altura"/> m</label><br/> | |
<div id="resultado"> | |
<hr/> | |
<span>IMC: {{ peso / (altura * altura) | number }}</span> | |
</div> | |
<script src="https://code.angularjs.org/1.3.5/angular.min.js"></script> |
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
<!DOCTYPE html> | |
<html> | |
<body> | |
<label>Peso <input id="peso"/> kg</label><br/> | |
<label>Altura <input id="altura"/> m</label><br/> | |
<button id="botao">Calcular IMC</button> | |
<div id="resultado"> | |
</div> | |
<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script> | |
<script> |
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
<!DOCTYPE html> | |
<html> | |
<body> | |
<label>Peso <input id="peso"/> kg</label><br/> | |
<label>Altura <input id="altura"/> m</label><br/> | |
<button id="botao">Calcular IMC</button> | |
<div id="resultado"> | |
</div> | |
<script> | |
document.querySelector('#botao').addEventListener('click', function () { |
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
<!DOCTYPE html> | |
<html lang="en" ng-app> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Oi, Angular JS!</title> | |
<script src="https://code.angularjs.org/1.5.8/angular.min.js"></script> | |
</head> | |
<body> | |
<h1>Oi, {{texto}}</h1> | |
<input ng-model="texto"> |
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
<script id="cartoes-template" type="text/x-mustache-template"> | |
<div class="cartao {{cartao.tipo}}" id="{{cartao.id}}" style="background-color: {{cartao.cor}}"> | |
<div class="opcoesDoCartao"> | |
<button class="opcoesDoCartao-opcao opcoesDoCartao-remove" data-cartao="{{cartao.id}}">Remover</button> | |
<div class="opcoesDoCartao-cores"> | |
{{#cores}} | |
<input type="radio" class="opcoesDoCartao-radioCor" name="corDoCartao-{{cartao.id}}" id="cor{{nome}}-{{cartao.id}}" value="{{codigo}}"> | |
<label class="opcoesDoCartao-opcao opcoesDoCartao-cor" for="cor{{nome}}-{{cartao.id}}" style="color: {{codigo}}">{{nome}}</label> | |
{{/cores}} | |
</div> |
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 br.com.caelum.financas.teste; | |
import java.sql.Connection; | |
import java.sql.DriverManager; | |
import java.sql.PreparedStatement; | |
import java.sql.SQLException; | |
import javax.swing.JOptionPane; | |
public class TesteInsereConta { |
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
@Provider | |
public class JacksonJavaTimeConfiguration implements ContextResolver<ObjectMapper> { | |
private final ObjectMapper mapper; | |
public JacksonJavaTimeConfiguration() { | |
mapper = new ObjectMapper(); | |
mapper.registerModule(new JSR310Module()); | |
mapper.configure(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS, false); | |
} |