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
.btn:focus, .btn.focus, .btn:active:focus, .btn:active.focus, .btn.active:focus, .btn.active.focus { | |
color: white; | |
} | |
&:focus, &.focus, &:active:focus, &:active.focus, &.active:focus, &.active.focus { | |
color: white; | |
} |
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
public static function stripXSS() | |
{ | |
$sanitized = static::cleanArray(Input::get()); | |
Input::merge($sanitized); | |
} | |
public static function cleanArray($array) | |
{ | |
$result = array(); | |
foreach ($array as $key => $value) { |
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; | |
use Exception; | |
class ImageUtils | |
{ | |
public static $_JPG = "jpg"; | |
public static $_PNG = "png"; |
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\Middleware; | |
use Closure; | |
use Illuminate\Contracts\Foundation\Application; | |
use Symfony\Component\HttpKernel\Exception\HttpException; | |
class CheckForMaintenanceMode | |
{ |
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
/* | |
* disable auto-zoom on iphone input field focus | |
* http://www.456bereastreet.com/archive/201212/ios_webkit_browsers_and_auto-zooming_form_controls/ | |
*/ | |
input[type='text']:focus, | |
input[type='number']:focus, | |
textarea:focus { | |
font-size: 16px; | |
} |
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\Console\Commands; | |
use Carbon\Carbon; | |
use Exception; | |
use Illuminate\Console\Command; | |
require_once app_path('simple_html_dom.php'); |
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\Console\Commands; | |
use Carbon\Carbon; | |
use Illuminate\Console\Command; | |
require_once app_path('simple_html_dom.php'); | |
class FrDown extends Command |
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 | |
set -x #echo on | |
remote_url=$(git config --get remote.origin.url) | |
for branch in $(git branch --all | grep '^\s*remotes' | egrep --invert-match '(:?HEAD|master)$'); do | |
branch_name=$(echo $branch| cut -d'/' -f 3) | |
git clone -b $branch_name $remote_url $branch_name | |
done |
OlderNewer