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
server { | |
listen 80; | |
server_name CHANGEME.app; | |
root /var/www/vhosts/CHANGEME.app/public; | |
index index.html index.htm index.php; | |
charset utf-8; | |
location / { |
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 add-apt-repository ppa:webupd8team/sublime-text-2 | |
sudo apt-get update | |
sudo apt-get install sublime-text |
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
@echo off | |
echo Laravel Installer | |
if "%1" == "init" goto init | |
if "%1" == "new" goto new | |
echo Uso: | |
echo laravel init [versao] - instala uma nova aplicacao na pasta atual (precisa estar vazia a pasta!) | |
echo laravel new [nome] [versao] - instala uma nova aplicacao na pasta 'nome'. Se nome nao for indicado ele criara na pasta 'laravel' por padrao. |
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
@echo off | |
php artisan %* |
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
@echo off | |
set APACHE_DIR=C:\Development\xampp\apache | |
set MYSQL_DIR=C:\Development\xampp\mysql | |
if "%~1" == "stop" goto stop | |
goto start | |
if errorlevel 1 goto error | |
goto finish |
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 | |
/** | |
* Created by PhpStorm. | |
* User: squad | |
* Date: 22/06/16 | |
* Time: 14:33 | |
*/ | |
namespace App\Http\Api; |
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\Http\Controllers; | |
use App\Cliente; | |
use App\Http\Api\RestfulApi; | |
use App\Http\Requests\ClientRequest; | |
class ClienteController extends RestfulApi | |
{ |
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
RewriteEngine On | |
RewriteBase / | |
| |
# Rewrite to pulic | |
RewriteCond %{HTTP_HOST} ^example.com$ [NC,OR] | |
RewriteCond %{HTTP_HOST} ^example.com$ | |
RewriteCond %{REQUEST_URI} !public/ | |
RewriteRule (.*) /public/$1 [L] | |
| |
# Redirect www to domain |
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
// Classe Java para Oracle; | |
public class Fonetica { | |
public static fonetizar (String str) : String { | |
//Fonetiza o string recebido como parametro e devolve | |
//um outro string (que e o primeiro fonetizado) | |
str = str_upper(str); //todas as letras maiusculas | |
str = removePrep(str); //remove as preposições | |
str = removeAccentuation(str); //remove os acentos | |
str = removeStrange(str); //remove caracteres diferentes de |
OlderNewer