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
| 9:-) Faça um algoritmo que receba a idade de uma pessoa em anos, calcule e exiba essa idade em: | |
| • Meses; | |
| • Dias; | |
| • Horas; | |
| • Minutos. | |
| Inicio | |
| idadeEmAnos = Leia(IdadeEmAnos); | |
| idadeEmMeses = idadeEmAnos * 12; //10 * 12 = 120 meses |
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
| 2:-) Dados dois números inteiros e distintos (ENTRADA), construa um algoritmo que seja capaz de definir qual é o | |
| maior elemento. | |
| Entrada / Processamento / Saída | |
| Início | |
| Ler(N1); | |
| Ler(N2); | |
| SE (N1 > N2) | |
| Exibir(N1 "é o maior"); |
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
| 1:-) Faça um algoritmo que receba três notas de um aluno, calcule a média aritmética entre as três | |
| notas e exiba mensagem de ’Aprovado’ ou ’Reprovado’, considerando a média de aprovação maior | |
| ou igual a 7,0. | |
| //Entrada | |
| //Processamento | |
| //Saída | |
| Início | |
| Ler(N1); |
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
| # Expires map | |
| map $sent_http_content_type $expires { | |
| default off; | |
| text/html epoch; | |
| text/css max; | |
| application/javascript max; | |
| ~image/ max; | |
| } | |
| server { |
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
| var | |
| real na,nb,nc,media; | |
| #subRotina | |
| inicio | |
| var inteiro x,y ; | |
| letra z[10] ; | |
| y recebas 5; |
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
| syntax on | |
| set number | |
| set shiftwidth=4 | |
| set softtabstop=4 | |
| set expandtab | |
| set laststatus=2 | |
| set autoindent | |
| highlight ExtraWhitespace ctermbg=red guibg=red | |
| match ExtraWhitespace /\s\+$/ |
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
| // Reference: http://www.blackdogfoundry.com/blog/moving-repository-from-bitbucket-to-github/ | |
| // See also: http://www.paulund.co.uk/change-url-of-git-repository | |
| $ cd $HOME/Code/repo-directory | |
| $ git remote rename origin bitbucket | |
| $ git remote add origin https://github.com/mandiwise/awesome-new-repo.git | |
| $ git push origin master | |
| $ git remote rm bitbucket |
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 | |
| class Customer { | |
| private $name; | |
| public function setName(string $name) { | |
| $this->name = $name; | |
| } | |
| public function getName(): string { |
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 | |
| class ZendEntityMapperQueue extends SImQueueInterface | |
| { | |
| public function __construct(ZendEntityMapperQueueOptions $options, $name, JobPluginManager $jobPluginManager) | |
| { | |
| $this->queueOptions = $options; | |
| $this->name = $name; | |
| parent::__construct($name, $jobPluginManager); |
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
| set nocompatible " Disable vi-compatibility | |
| set t_Co=256 | |
| colorscheme xoria256 | |
| set guifont=menlo\ for\ powerline:h16 | |
| set guioptions-=T " Removes top toolbar | |
| set guioptions-=r " Removes right hand scroll bar | |
| set go-=L " Removes left hand scroll bar | |
| set linespace=15 |