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
div | |
{ | |
width:150px; | |
height:150px; | |
overflow:scroll; | |
overflow-x: hidden; | |
} |
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 | |
function reducer($total, $elt) | |
{ | |
return $elt + $total; | |
} | |
$arr = array(1, 2, 3, 4, 5); | |
echo array_reduce($arr, 'reducer', 1); | |
?> |
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
" be iMproved | |
set nocompatible | |
" colorscheme molokai | |
colorscheme solarized | |
set background=dark | |
set spell | |
set number | |
set encoding=utf-8 | |
set guifont=Source\ Code\ Pro\ Regular\ 12 |
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 namespace livraria; | |
/** | |
* Como usar ArrayObject | |
* OBS: Instale o php xdebug para visualizar os resultados. | |
**/ | |
/** | |
* Objeto livro | |
* @author Wouerner <wouerner@gmail.com> |
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 | |
//pratica 01 | |
foreach ( $pessoas as $p ){ | |
echo $p; | |
} | |
//pratica 02 | |
foreach ( $pessoas as $pessoa ){ |
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
{ | |
"name": "My App", | |
"description": "My elevator pitch goes here", | |
"launch_path": "/", | |
"icons": { | |
"128": "/img/icon-128.png" | |
}, | |
"developer": { | |
"name": "Your name or organization", | |
"url": "http://your-homepage-here.org" |
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 | |