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
export default class BadCarro | |
{ | |
private _ano: number | |
private _velocidade: number = 0 | |
private _modelo: string | |
private _marca: string | |
private _cor: string | |
constructor(ano: number, modelo: string, marca: string, cor: string){ | |
this._ano = ano |
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
export default class Carro | |
{ | |
private _ano: number | |
private _velocidade: number = 0 | |
private _modelo: string | |
private _marca: string | |
private _cor: string | |
constructor(ano: number, modelo: string, marca: string, cor: string){ | |
this._ano = ano |
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
!#/bin/bash/ | |
sudo apt-get update | |
echo '### Instalando Web Server Nginx ###' | |
sudo apt-get install nginx -y | |
nginx -v | |
echo '### Instalando Mysql' | |
sudo apt-get install mysql -y | |
mysql -v | |
echo '### Prepearando para instalar a última versão do PHP ###' | |
sudo add-apt-repository ppa:ondrej/php |
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
server { | |
listen 80 default_server; | |
listen [::]:80 default_server; | |
root /var/www/html; | |
client_max_body_size 20M; | |
# Add index.php to the list if you are using PHP | |
index index.php index.html index.htm index.nginx-debian.html; |
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
!#/bin/bash | |
apt-get -y install wget git screen | |
git clone https://github.com/lj2007331/lnmp.git | |
cd lnmp && chmod +x install.sh | |
screen -S lnmp | |
./install.sh |
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
Q2Fyb2wgZGUgY3VyaWNpY2EsIFBST01Pw4fDg08gMTAwIHJlYWlzIDIxOTY1NjMzOTAw |
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
const notas = [100, 50, 20, 10, 5, 2, 1] | |
const calcNotas = (notrasTroco) => { | |
if (notas.length > 0) { | |
let calc = 0 | |
notasTroco.forEach((nota, index) => { | |
calc = calc + (nota.nota * nota.qtd) | |
}) |
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
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
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
<template> | |
<div id="auth" class="row-fluid"> | |
<div class="col-sm-4 col-sm-offset-4"> | |
<div class="panel panel-default"> | |
<div class="panel-heading"> | |
<h3 class="panel-title text-center">Bem vindo</h3> | |
</div> | |
<div class="panel-body"> | |
<form class="form-signin" method="post"> | |
<div class="form-group"> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<meta name="description" content=""> | |
<meta name="author" content=""> | |
<title>SocialC</title> | |
</head> |
NewerOlder