Skip to content

Instantly share code, notes, and snippets.

View themsaid's full-sized avatar
🚴‍♂️
Just paddling

Mohamed Said themsaid

🚴‍♂️
Just paddling
View GitHub Profile
<?php
namespace App\Console\Commands;
use Illuminate\Filesystem\Filesystem;
use Illuminate\Console\Command;
use Illuminate\Support\Arr;
class ConfigManager extends Command
{
@themsaid
themsaid / .bashrc
Last active April 9, 2016 09:41
My .bashrc file
# ~/.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-}"
@themsaid
themsaid / vueSelect2.js
Created November 17, 2015 11:41
Wrapping the select2 plugin into a Vue.js custom directive.
Vue.directive('select', {
twoWay: true,
priority: 1000,
params: ['options'],
bind: function () {
var self = this;
$(this.el)