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 | |
| /** | |
| * Classe que implementa o algoritmo do Maior Elemento | |
| * (Método Simples) | |
| * @author George Mendonça | |
| * 16/04/2013 | |
| */ | |
| Class MaiorNumero { | |
| /** | |
| * Método que retorna o maior elemento de um array |
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 | |
| /** | |
| * @author George Mendonça | |
| * www.georgemendonca.com.br | |
| * 16/04/2013 | |
| */ | |
| // Chamando a classe PHPMailer | |
| require_once 'class.phpmailer.php'; |
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
| ~$ cd Downloads/ | |
| ~/Downloads$ tar -xvzf Apache_OpenOffice_incubating_3.4.0_Linux_x86-64_install-deb_en-US.tar.gz | |
| ~/Downloads$ cd en-US/DEBS/ | |
| ~/Downloads/en-US/DEBS$ sudo dpkg -i *.deb | |
| ~/Downloads/en-US/DEBS$ cd desktop-integration/ | |
| ~/Downloads/en-US/DEBS$ sudo dpkg -i *.deb |
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
| ~$ sudo apt-get purge libreoffice* | |
| ~$ sudo apt-get autoclean | |
| ~$ sudo apt-get autoremove |
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
| ~$ sudo add-apt-repository ppa:upubuntu-com/office | |
| ~$ sudo apt-get update | |
| ~$ sudo apt-get install openoffice |
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
| ~$ sudo apt-get autoclean | |
| [sudo] password for george: | |
| Lendo listas de pacotes... Pronto | |
| Construindo árvore de dependências | |
| Lendo informação de estado... Pronto | |
| Del linux-generic 2.6.35.27.35 [5.442B] | |
| Del firefox-branding 3.6.15+build1+nobinonly-0ubuntu0.10.10.1 [211kB] | |
| Del linux-image-generic 2.6.35.27.35 [5.452B] | |
| Del linux-libc-dev 2.6.35-1027.48 [816kB] | |
| Del chromium-browser-inspector 9.0.597.107~r75357-0ubuntu0.10.10.1 [560kB] |
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
| sudo apt-get install chromium-browser chromium-browser-l10n |
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 | |
| /** | |
| * Instanciando os objetos das classes criadas nos exemplos acima | |
| * @author george.mendonca | |
| */ | |
| // Incluindo os arquivos da classes | |
| require_once './class/php4.php'; | |
| require_once './class/php5.php'; | |
| require_once './class/ConstrutorDestrutor.php'; |
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 | |
| /** | |
| * Encapsulamento de atributos e métodos | |
| * @author george.mendonca | |
| */ | |
| Class Encapsulamento | |
| { | |
| // Visível em todo o script | |
| public $atributoPublico; | |
| // Visível nas classes e subclasses |
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 | |
| /** | |
| * Exemplo de construtor e destrutor | |
| * @author george.mendonca | |
| */ | |
| Class ConstrutorDestrutor | |
| { | |
| private $a; | |
| private $b; |
NewerOlder