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
Vue.directive('select', { | |
twoWay: true, | |
priority: 1000, | |
params: ['options'], | |
bind: function () { | |
var self = this; | |
$(this.el) |
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
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# get the git branch .. from https://gist.github.com/wolever/6525437 | |
gitbranch() { | |
export GITBRANCH="" | |
local repo="${_GITBRANCH_LAST_REPO-}" |
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 Illuminate\Filesystem\Filesystem; | |
use Illuminate\Console\Command; | |
use Illuminate\Support\Arr; | |
class ConfigManager 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
trait HasEnums | |
{ | |
/** | |
* The array of enumerators of a given group. | |
* | |
* @param null|string $group | |
* @return array | |
*/ | |
static function enums($group = null) | |
{ |
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
// Delete all except multiple | |
git branch | grep -v "master\|dev" | xargs git branch -D | |
// Delete all except 1 | |
git branch | grep -v "master" | xargs git branch -D |
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
alias art="php artisan" | |
alias dracarys="git reset --hard && git clean -df" | |
alias phpfix="php php-cs-fixer.phar fix" | |
alias weather='curl -s wttr.in/Hurghada | sed -n "2,7p"' | |
alias usd='curl -s "https://www.google.com/finance/converter?a=1&from=USD&to=EGP" | LC_CTYPE=C sed "/res/!d;s/<[^>]*>//g"' | |
alias shrug="echo '¯\_(ツ)_/¯' | pbcopy"; | |
alias fight="echo '(ง'̀-'́)ง' | pbcopy"; | |
alias happy="echo 'ᕕ( ᐛ )ᕗ' | pbcopy"; | |
# Commit all the current changes with a message |
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 | |
function(){ | |
echo "Hello"; | |
} |
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
machine: | |
pre: | |
- sudo apt-get update; USE_PRECOMPILE=true sudo -E circleci-install php 7.1.0 | |
php: | |
version: 7.1.0 | |
dependencies: | |
override: | |
- composer install --no-interaction |
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
@if ($paginator->hasPages()) | |
<ul class="uk-pagination"> | |
@if ($paginator->onFirstPage()) | |
<li class="uk-disabled"><a href="#"><span uk-pagination-previous></span></a></li> | |
@else | |
<li><a href="{{ $paginator->previousPageUrl() }}"><span uk-pagination-previous></span></a></li> | |
@endif | |
{{-- Pagination Elements --}} | |
@foreach ($elements as $element) |
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 openpr() { | |
br=`git branch | grep "*"` | |
repo=$1 | |
parentBranch=$2 | |
open -a /Applications/Google\ Chrome.app https://github.com/${repo/* /}/compare/${parentBranch/* /}...themsaid:${br/* /}\?expand\=1 | |
} |
OlderNewer