I hereby claim:
- I am srdjanmarjanovic on github.
- I am srdjanmarjanovic (https://keybase.io/srdjanmarjanovic) on keybase.
- I have a public key ASCfzU7uo-ZIXpR6xL745CBkkh30bondpfJ67vNPzVj__Qo
To claim this, I am signing this object:
| function sum_array(array $params) { | |
| return array_reduce($params, function($sum, $item){ | |
| return $sum += $item; | |
| }, 0); | |
| } |
| #!/bin/bash | |
| type="$1" | |
| title="$2" | |
| max_length="${3:-150}" | |
| slug="$({ | |
| tr '[A-Z]' '[a-z]' | tr -cs '[[:alnum:]]' '-' | |
| } <<< "$title")" |
I hereby claim:
To claim this, I am signing this object:
| alias gl="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" |
| <?php | |
| interface Thing { | |
| public function execute(); | |
| } | |
| class A implements Thing { | |
| public function execute() |
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| # Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
| VAGRANTFILE_API_VERSION = "2" | |
| Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
| config.vm.box = "precise64" | |
| config.vm.box_url = "http://files.vagrantup.com/precise64.box" | |
| config.vm.network :private_network, ip: "192.168.33.21" |
| alias sshkey="cat ~/.ssh/id_rsa.pub | pbcopy && echo 'Copied to clipboard.'" |
| <?php | |
| interface StateInterface { | |
| /** | |
| * Turn the light on. | |
| */ | |
| public function ligthOn(); | |
| /** | |
| * Turn the light off. |
| <?php | |
| interface StrategyInterface { | |
| /** | |
| * Do something. | |
| */ | |
| public function handle(); | |
| } | |
| class Context { |
| <?php | |
| namespace League\Skeleton; | |
| use Illuminate\Support\ServiceProvider; | |
| use Illuminate\Routing\Router; | |
| class SkeletonServiceProvider extends ServiceProvider | |
| { | |
| /** |