This file contains hidden or 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
#!/usr/bin/env bash | |
# Your user | |
MY_USER=deploy | |
# Update Package List | |
sudo apt-get update | |
# Update System Packages | |
sudo apt-get -y upgrade |
This file contains hidden or 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
quickSort(List a) { | |
if (a.length <= 1) { | |
return a; | |
} | |
var pivot = a[0]; | |
var less = []; | |
var more = []; | |
var pivotList = []; | |
This file contains hidden or 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 | |
/* ... */ | |
public function render($request, Exception $e) | |
{ | |
if ($request->wantsJson()) { | |
if ( $e instanceof ValidationFailureException ) { | |
$errors = $e->errors; |
This file contains hidden or 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
@include('envoy.config.php'); | |
@servers(['web' => $ssh]) | |
@setup | |
if ( ! isset($ssh) ) { | |
throw new Exception('SSH login usuario/host nao especificado'); | |
} | |
if ( ! isset($repo) ) { |
This file contains hidden or 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 elixir = require('laravel-elixir'); | |
elixir(function(mix) { | |
mix.phpUnit(); | |
}); |