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
<?php | |
function getFontIcons() { | |
return array( | |
"icon-home3" => "icon-home3 - Alias: ed4e", | |
"icon-home22" => "icon-home22 - Alias: ed4f", | |
"icon-home32" => "icon-home32 - Alias: ed50", | |
"icon-office" => "icon-office - Alias: ed51", | |
"icon-newspaper" => "icon-newspaper - Alias: ed52", |
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
<?php | |
function getFontIcons() { | |
return array( | |
"icon-home3" => "icon-home3", | |
"icon-home22" => "icon-home22", | |
"icon-home32" => "icon-home32", | |
"icon-office" => "icon-office", | |
"icon-newspaper" => "icon-newspaper", |
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
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<!-- | |
se eu chamar o bootstrap do meu projeto ele nao pega o style. com a cdn abre de boa | |
--> | |
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> | |
</head> | |
<body> | |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <math.h> | |
float calculaSalario(float salario, float perc) | |
{ | |
return (salario + (salario * (perc / 100))); | |
} | |
int main() |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <math.h> | |
float imc (float peso, float altura, char sexo) | |
{ | |
float valorImc; | |
valorImc = peso / (altura * altura); |
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
$estados = array( | |
'AC'=>'Acre', | |
'AL'=>'Alagoas', | |
'AP'=>'Amapá', | |
'AM'=>'Amazonas', | |
'BA'=>'Bahia', | |
'CE'=>'Ceará', | |
'DF'=>'Distrito Federal', | |
'ES'=>'Espírito Santo', | |
'GO'=>'Goiás', |
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
1. Crie uma conta no Digital Ocean; | |
2. Crie um droplet Ubuntu (estas instruções são baseadas em Ubuntu) | |
3. Escolha o pacote LEMP para ser instalado com seu Ubuntu | |
4. Escolha ou associa sua chave publica para acesso ao servidor | |
5. Acesse seu server usando SSH (ssh root@<ip informado pelo DO>) |
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
@servers(['staging' => 'root@192.168.0.99', 'production' => 'root@192.168.0.100']) | |
<?php | |
$app_name = 'l5eka'; | |
$app_path = '/var/www/vhosts/'.$app_name; | |
$repo = 'https://github.com/vedovelli/l5eka'; | |
$branch = 'aula4'; | |
$github_token = ''; // GitHub OAuth token | |
$server_name = '192.168.0.99'; // IP ou domínio válido. Usado no nginx |
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
<?php | |
require_once('nusoap/lib/nusoap.php'); | |
$cpfcnpj = $_GET['cpfcnpj']; | |
$tipo = $_GET['tipo']; | |
$usuario = 'seuUsuario'; | |
$password = 'suaSenha'; | |
$sigla = 'IHBJY'; | |
$wsdl = 'http://consulta.confirmeonline.com.br/Integracao/Consulta?wsdl'; | |
$client = new nusoap_client($wsdl, 'wsdl'); |