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
-- phpMyAdmin SQL Dump | |
-- version 3.4.5deb1 | |
-- http://www.phpmyadmin.net | |
-- | |
-- Servidor: localhost | |
-- Tempo de Geração: 02/12/2011 às 02h04min | |
-- Versão do Servidor: 5.1.58 | |
-- Versão do PHP: 5.3.6-13ubuntu3.2 | |
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; |
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
select | |
a.codigo, a.nome as aluno, p.nome as responsavel, d.seqd, d.vencimento, d.valor, d.juros, | |
d.multa, d.outros, d.desconto, d.total, d.pagto, d.parcela, e.descricao as evento, | |
c.descricao as curso, cb.cod_bx as codigobaixa, u.nome, cb.cheque, cb.dinheiro, cb.cartdeb, | |
cb.cartcred, cb.permuta, cb.outros as outrosbx | |
from | |
alunos a, pessoas p, divialu d, eventos e, histalu h, cursos c, codbx cb, usuarios u | |
where p.codigo = a.cod_mae and | |
d.seqd = 38924 and | |
d.cod_alud = a.codigo and |
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
[TestMethod] | |
public void DeveInserirUmaPessoa() | |
{ | |
//Instancio uma nova pessoa, e atribuo alguns valores a suas propriedades. | |
var pessoa = new Pessoa | |
{ | |
Id = Guid.NewGuid(), | |
Nome = "Derpina Derpasio", | |
DataNascimento = new DateTime(1995, 06, 30), | |
Cpf = "00900900923" |
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
static void Main(string[] args) | |
{ | |
//Coloca o programa em loop para que ele continue sempre executando essa instrução | |
while (true) | |
{ | |
//Recebe uma entrada do usuário | |
Console.Write("Digite um numero: "); | |
int numero; | |
//Tenta converter a entrada em um inteiro, caso dê erro o valor da variável resultado será false, ou se conseguir converter o resultado da variavel será true e a variável numero receberá o valor. | |
var resultado = Int32.TryParse(Console.ReadLine(), out numero); |
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 | |
//Primeiramente o controller usuarios, que é onde vou utilizar os selects de cidades e estados | |
class UsuariosController extends AppController { | |
public function cadastro() { | |
$this->set('estados', $this->Estado->find('list')); | |
} | |
} | |
//No controller CidadesController: |
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 | |
//Declaro o uso do helper na AppController | |
public $helpers = array('Html', 'Thumbnail'); | |
//Exemplo de uso na view | |
echo $this->Html->image('myimage.jpg', array( | |
'path' => 'uploads/Model/picturefield', | |
'newWidth' => '250', | |
'newHeight' => '150', | |
'resizeOption' => 'portrait', |
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 | |
//app/Controler/AppControler.php | |
public $helpers = array('Html', 'Video'); |
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
using System.Linq; | |
using System; | |
using Microsoft.Data.Schema.Tools.DataGenerator; | |
using Microsoft.Data.Schema.Extensibility; | |
using Microsoft.Data.Schema.Sql; | |
using System.Text.RegularExpressions; | |
namespace SampleDataGenerator | |
{ | |
[DatabaseSchemaProviderCompatibility(typeof(SqlDatabaseSchemaProvider))] |
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
$ git rm -r --cached . | |
$ git add . |
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
git branch -d minhabranch |
OlderNewer