A Pen by Mulia Arifandy Nasution on CodePen.
Copy RouteListFilterCommand.php
to app/Console/Commands
Edit app/Console/Kernel.php
, then add 'App\Console\Commands\RouteFilterCommand',
to $commands
, like so
protected $commands = [
'App\Console\Commands\Inspire',
'App\Console\Commands\RouteFilterCommand',
];
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
require 'mina/git' | |
# Fix the SSH password prompt problem | |
set :term_mode, nil | |
# Basic settings: | |
# domain - The hostname to SSH to. | |
# deploy_to - Path to deploy into. | |
# repository - Git repo to clone from. (needed by mina/git) | |
# branch - Branch name to deploy. (needed by mina/git) |
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 Calc { | |
protected $value; | |
public static function create() | |
{ | |
return new self; | |
} |
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
#!/usr/bin/env sh | |
alias ping8='ping 8.8.8.8' | |
alias pingg='ping google.com' | |
alias ls='ls --group-directories-first --color -F --time-style=long-iso' | |
alias lsd='ls -l | grep "^d"' | |
alias lsf='ls -l | grep "^-"' | |
alias mkdir='mkdir -p' |
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 Gregwar\Image\Image; | |
use Symfony\Component\HttpFoundation\File\UploadedFile; | |
trait ImageTrait | |
{ | |
protected $imageWidth, $imageHeight; |
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 lang = { | |
required => "{{ trans('required') }}", | |
email => "{{ trans('email') }}", | |
}; |
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
#!/usr/bin/env sh | |
find . -maxdepth 2 -type d -name node_modules -name bower_components -print0 | xargs -0 rm -rf |
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
http://regexr.com/3cbrm | |
^http(?:s?):\/\/(?:www\.|web\.|m\.)?facebook\.com\/([A-z0-9\.]+)\/videos(?:\/[0-9A-z].+)?\/(\d+)(?:.+)?$ |