Skip to content

Instantly share code, notes, and snippets.

View wouerner's full-sized avatar
💙
SouJunior

Wouerner Brandão wouerner

💙
SouJunior
View GitHub Profile
@wouerner
wouerner / CSS overflow Property.css
Last active December 18, 2015 12:18
CSS overflow Property
div
{
width:150px;
height:150px;
overflow:scroll;
overflow-x: hidden;
}
<?php
function reducer($total, $elt)
{
return $elt + $total;
}
$arr = array(1, 2, 3, 4, 5);
echo array_reduce($arr, 'reducer', 1);
?>
@wouerner
wouerner / .vimrc
Last active December 19, 2015 02:18
My .vimrc - Wouerner.eti.br || Br-Coding.org
" 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
@wouerner
wouerner / ArrayObject.php
Last active October 1, 2020 16:51
ArrayObject PHP exemplos
<?php namespace livraria;
/**
* Como usar ArrayObject
* OBS: Instale o php xdebug para visualizar os resultados.
**/
/**
* Objeto livro
* @author Wouerner <wouerner@gmail.com>
@wouerner
wouerner / foreach_praticas.php
Last active December 25, 2015 07:19
praticas no foreach.
<?php
//pratica 01
foreach ( $pessoas as $p ){
echo $p;
}
//pratica 02
foreach ( $pessoas as $pessoa ){
{
"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"
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'}
<!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>
http://www.akadia.com/services/ora_date_time.html
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