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 App\View; | |
use Cake\View\View; | |
use Cake\Event\Event; | |
class AppView extends View | |
{ |
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 | |
/** | |
* Convertendo textos para urlamigavel | |
* @param type $texto | |
* @return String | |
*/ | |
function toamigavel($texto) { | |
$texto = mb_strtolower($texto, 'UTF-8'); |
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 People { | |
public $name; | |
public $birth; | |
} | |
$dad = new People(); | |
$dad->name = 'Gilvan Costa'; | |
$dad->birth = new Datetime('26-03-1971', new DateTimeZone('America/Recife')); |
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
//ubuntu | |
[ | |
{ | |
"key": "ctrl+[slash]", | |
"command": "editor.action.commentLine" | |
}, | |
{ | |
"command": "editor.action.blockComment", | |
"key": "ctrl+shift+[slash]", | |
"when": "editorTextFocus && !editorReadonly" |
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
[ | |
{ "keys": ["ctrl+v"], "command": "paste_and_indent" }, | |
{ "keys": ["ctrl+shift+v"], "command": "paste" } | |
] |
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
version: '2' | |
services: | |
mysqlserver: | |
image: mysql | |
ports: | |
- "3306:3306" | |
volumes: | |
- ./mysql:/var/lib/mysql | |
environment: | |
MYSQL_ROOT_PASSWORD: 123 |
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
sudo apt-get install -y php-pear php5-dev | |
sudo pecl install mongo | |
sudo sh -c "echo 'extension=mongo.so' > /etc/php/7.0/mods-available/mongo.ini" | |
sudo ln -s /etc/php/7.0/mods-available/mongo.ini /etc/php/7.0/apache2/conf.d/mongo.ini | |
sudo service apache2 restart |
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
sudo /Applications/Install\ macOS\ Sierra.app/Contents/Resources/createinstallmedia \ | |
--volume /Volumes/MyVolume \ | |
--applicationpath /Applications/Install\ macOS\ Sierra.app |
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 calcular() { | |
return new Promise((resolve, reject) => { | |
console.log('inicio...') | |
resolve() | |
}) | |
} | |
function um() { |
OlderNewer