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 | |
$sql = "SELECT * FROM bsw_usuario WHERE ds_login = '".$_SESSION['ses_login']."' AND ds_senha = '".$_SESSION['ses_senha']."'"; | |
$db->query('Usuario', $sql); | |
$numRow = $db->num_rows('Usuario'); | |
if($numRow == 0) echo "<script>top.location.replace('../_logoff/');</script>"; | |
/** Qual exatamente o motivo dessa implementação? **/ | |
if(!$_SESSION['ses_permissao'][$PASTALOCALBSW]) header('Location: ../' ); | |
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
// Closure | |
(function(){ | |
/** | |
* Decimal adjustment of a number. | |
* | |
* @param {String} type The type of adjustment. | |
* @param {Number} value The number. | |
* @param {Integer} exp The exponent (the 10 logarithm of the adjustment base). | |
* @returns {Number} The adjusted value. |
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
select * from bsw_transportadora t | |
cross join bsw_regiao r | |
left join bsw_produto_frete pf on (pf.cd_regiao = r.regiao and pf.cd_transportadora = t.cd_transportadora and pf.cd_produto = 6) |
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
<link rel="import" href="../paper-button/paper-button.html"> | |
<link rel="import" href="../paper-checkbox/paper-checkbox.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; |
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
<link rel="import" href="../core-scaffold/core-scaffold.html"> | |
<link rel="import" href="../core-header-panel/core-header-panel.html"> | |
<link rel="import" href="../core-menu/core-menu.html"> | |
<link rel="import" href="../core-item/core-item.html"> | |
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../core-menu/core-submenu.html"> | |
<polymer-element name="my-element"> |
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 | |
require 'recipe/common.php'; | |
/* | |
* Servers | |
*/ | |
// Set up production server | |
server('production-server', 'host.com') | |
->user('root') |
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
http://www.daveperrett.com/projects/ |
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
"Programa": { | |
"Processos": { | |
"definição": "Programa em execução", | |
"concorrencias": "Dois processos tentando gravar no mesmo arquivo" | |
"Escalonador": "Gerencia os processos na fila de processamento", | |
}, | |
"Fork": { | |
"Definição": "Clona o processo" | |
} | |
"Memoria", |
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
SOLID: | |
- Single responsability principle | |
- Open/Closed principle | |
- Liskov substituition principle | |
- Interface segregation principle | |
- Dependence inversion principle | |
Object Calisthenics: | |
- Only One Level Of Indentation Per Method | |
- Don't Use The ELSE Keyword |
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
Never do again: | |
- Project withou version control, never. | |
- Local documents, google drive it. | |
- |
OlderNewer