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
angular.module('cursoAngular').controller('curso1Controller', | |
[ | |
'$scope', | |
'$log', | |
'$http', | |
'aula3Factory', | |
'aula3Service', | |
function($scope, $log, $http, aula3Factory, aula3Service) { | |
$scope.aula = 'Dia 2'; | |
$scope.filtro = { nome: 'Meu dedo'} |
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
<!DOCTYPE html> | |
<html lang="en" ng-app="cursoAngular"> | |
<head> | |
<meta charset="utf-8"/> | |
<script src="js/angular.min.js"> | |
</script> | |
<script src="js/app.js"> | |
</script> | |
<script src="js/controllers.js"></script> | |
<script src="js/services.js"></script> |
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
http://www.akadia.com/services/ora_date_time.html |
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
composer create-project laravel/laravel --prefer-dist foo2 | |
sudo vim /etc/hosts | |
add 192.168.33.11 foo2.local.dev | |
cd ~/Dev/maquina/vagrant | |
vagrant up | |
vagrant ssh | |
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 * FROM dba_tab_privs WHERE GRANTEE ='Name of user' ; |
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
//criando um controller restful | |
artisan controller:make FooController | |
//criando um controller restful com criação opcional dos metodos. | |
artisan controller:make FooController --only="index,show" | |
//criando um controller restful menos os metodos. | |
artisan controller:make FooController --except="destroy" |
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
//Rota para resourceful controller ([nome da rota],[namespace]) | |
Route::resource('artista', 'artista\\ArtistaController'); |
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
# Can ignore specific files | |
.DS_Store | |
# Use wildcards as well | |
*~ | |
*.swp | |
# Can also ignore all directories and files in a directory. | |
tmp/**/* |
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
// executar este comando para registar os namespace das classes criadas. | |
composer.phar dump-autoload |
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
// http://four.laravel.com/docs/migrations | |
//criando migrations para tabela | |
php artisan migrate:make create_foo_table | |
//populando/semeando as tabela do banco de dados. | |
artisan db:seed | |
OlderNewer