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
// var nomes = [ | |
// "John", | |
// 'João', | |
// 'Marcia', | |
// 'Neide', | |
// 'Gabriel', | |
// 'Silvia', | |
// 'Maicon', | |
// 'daniel' | |
// ]; |
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 Acme\FooBundle\Hateoas; | |
use Doctrine\ORM\EntityManager; | |
use Hateoas\Configuration\Metadata\ClassMetadataInterface; | |
use Hateoas\Configuration as Hateoas; | |
use Symfony\Component\Routing\Route; | |
use Symfony\Component\Routing\RouterInterface; |
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
#!/bin/bash | |
# PhalconPhp with PHP7 installation on ubuntu:16.04 | |
sudo apt-get update | |
sudo apt-get install -y php7.0-fpm \ | |
php7.0-cli \ | |
php7.0-curl \ | |
php7.0-gd \ |
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> | |
<option value="af_NA"> Afrikaans (Namibia)</option> | |
<option value="af_ZA"> Afrikaans (South Africa)</option> | |
<option value="af"> Afrikaans</option> | |
<option value="ak_GH"> Akan (Ghana)</option> | |
<option value="ak"> Akan</option> | |
<option value="sq_AL"> Albanian (Albania)</option> | |
<option value="sq"> Albanian</option> | |
<option value="am_ET"> Amharic (Ethiopia)</option> | |
<option value="am"> Amharic</option> |
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 | |
return [ | |
'debug' => true, | |
'config_cache_enabled' => false, | |
]; |
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 | |
return [ | |
'dependencies' => [ | |
'invokables' => [ | |
'Zend\Expressive\Whoops' => Whoops\Run::class, | |
'Zend\Expressive\WhoopsPageHandler' => Whoops\Handler\PrettyPageHandler::class, | |
], | |
'factories' => [ | |
'Zend\Expressive\FinalHandler' => Zend\Expressive\Container\WhoopsErrorHandlerFactory::class, |
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 | |
$valor = 4; | |
function exemploPonteiro1(&$valor1) | |
{ | |
$valor1++; | |
return $valor1; | |
} | |
$resultado = exemploPonteiro1($valor); |
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
(function () { | |
var self = this; | |
var canvas = document.getElementById('mainCanvas'); | |
var context = canvas.getContext('2d'); | |
var x = 0; | |
var y = 0; | |
var oldX = 0; | |
var oldY = 0; | |
var sqrW = 10; |
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 | |
class MySingleton implements ISubject | |
{ | |
private static $instance = null; | |
private $myObservers = []; | |
private function __construct($param1, $param2, $param3) | |
{ |
NewerOlder