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
| #!/bin/sh | |
| # | |
| # | |
| # Poderiamos usar o bower | |
| # Porem muitos pacotes nao tem a ultima versao da lib | |
| # ~/ direciona para pasta do seu usário | |
| # diferente de / q vai para raiz | |
| cd ~/ | |
| mkdir myApp |
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
| <!-- | |
| Criar um site | |
| O corpo ter que ter 960px e centralizado | |
| Pagina 1 | |
| No corpo o contendo tera titulo e font de 30px | |
| Uma imagem abaixo do titulo pegando toda a pagina | |
| Deve conter três paragrafos cada um com um tamanho de font, 16, 14, 12 | |
| Lista com o link para a primeira e segunda página |
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
| { | |
| "name": "XHMLHTTPRequest" | |
| } |
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
| // clera a funcão do callback | |
| // no caso deixei vazia [undefined] | |
| // para atgribuir em tempo de execução | |
| // deve estar no escopo glogal; | |
| // acessivel por window.jsonpCallback | |
| window.jsonpCallback = undefined; | |
| // no load da pagina | |
| $(document).ready(function () { |
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
| /** */ | |
| gulp.task('dev-es6', function() { | |
| gulp.src('src/scripts/**/*.js') | |
| .pipe(babel({ | |
| plugins: ['transform-runtime'] | |
| })) | |
| .pipe(gulp.dest('public_html/app_current/js')) |
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
| /* Categoria Painel */ | |
| INSERT INTO omb10_db.acl_categoria(descricao) VALUES('manager-blog'); | |
| SET @id_categoria = LAST_INSERT_ID(); | |
| /* blog */ | |
| INSERT INTO omb10_db.acl_resource(resource, id_acl_categoria) VALUES('manager-blog', @id_categoria); | |
| SET @id_resource = LAST_INSERT_ID(); | |
| INSERT INTO omb10_db.route (id_acl_resource, name) VALUES (@id_resource, 'admin-painel-blog'); | |
| /* blog news */ |
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
| <!-- Style inline --> | |
| <h2 style="color: red; font-size: 2em;">Esse texto tem style</h2> | |
| <!-- Lista nao ordenada --> | |
| <ul> | |
| <li>Item 1</li> | |
| <li>Item 2</li> | |
| </ul> | |
| <!-- Lista ordenada --> |
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 | |
| echo "Hello World \n"; | |
| echo "Contanto com PHP \n"; | |
| echo "25 + 65 -" . 40; | |
| echo 25 + 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
| <?php | |
| $items = []; | |
| for($x = 0, $len = count($items); $x < $len; $x++) { | |
| echo $items[$x]; | |
| } |
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 ~/workspace | |
| mkdir path_project | |
| touch index.php | |
| mkdir public_html && mkdir js css img | |
| php -S localhost:8080 |