Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
create table users ( | |
id bigserial not null, | |
full_name varchar(100) not null, | |
email varchar(100) not null unique, | |
nickname varchar(50) not null, | |
password varchar(255) not null, | |
created_at timestamp not null default now(), | |
primary key (id) | |
); |
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 | |
use CV\CascadeClassifier, CV\Scalar; | |
use function CV\{imread, imwrite, cvtColor, equalizeHist, rectangleByRect}; | |
use const CV\{COLOR_BGR2GRAY}; | |
// Setando o classificador | |
$faceClassifier = new CascadeClassifier(); | |
$faceClassifier->load('models/lbpcascades/lbpcascade_frontalface.xml'); |
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 com.challenge.desafio; | |
import java.math.BigDecimal; | |
public class Main { | |
public static void main(String args[]) { | |
Produtos produto = new Produtos(new BigDecimal("15"), new BigDecimal("-15"), new BigDecimal("30"), new BigDecimal("10")); | |
CalculadorDeClasses cc = new CalculadorDeClasses(); | |
System.out.println(cc.totalizar(produto)); |
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.codenation; | |
import java.math.BigDecimal; | |
import java.time.LocalDate; | |
public class Main { | |
public static void main(String args[]) { | |
DesafioMeuTimeApplication desafio = new DesafioMeuTimeApplication(); | |
// Incluir Time |
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> | |
<head> | |
<meta charset="utf-8"> | |
<title>Jasmine Spec Runner v3.4.0</title> | |
<link rel="shortcut icon" type="image/png" href="lib/jasmine-3.4.0/jasmine_favicon.png"> | |
<link rel="stylesheet" href="lib/jasmine-3.4.0/jasmine.css"> | |
<script src="lib/jasmine-3.4.0/jasmine.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
void setup() { | |
// initialize digital pin LED_BUILTIN as an output. | |
pinMode(LED_BUILTIN, OUTPUT); | |
} | |
// the loop function runs over and over again forever | |
void loop() { | |
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level) | |
delay(1000); // wait for a second | |
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW |
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
describe("Matemática", function() { | |
it("Deve ser capaz de somar dois números", function() { | |
var a = 1; | |
var b = 2; | |
expect(somar(a,b)).toEqual(3); | |
}); | |
it("Deve ser capaz de subtrair dois números", function() { | |
var a = 8; | |
var b = 2; |
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
const somar = (a, b) => a + b; | |
const subtrair = (a, b) => a - b; | |
const multiplicar = (a, b) => a * b; | |
const dividir = (a, b) => a / b; |
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
# update / upgrade | |
sudo apt-get update > /dev/null | |
sudo apt-get -y -q upgrade > /dev/null | |
# install jre 1.8 | |
sudo apt-get install -y -q default-jre &> /dev/null | |
echo `java -version` | |
# install tomcat8 | |
sudo apt-get install -y tomcat8 |
NewerOlder