Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@sbine
sbine / Main.sublime-menu
Created November 14, 2012 17:54
Custom 3-pane Sublime Text window layouts
[{
"id": "view",
"children": [{
"id": "layout",
"children": [
{
"command": "set_layout",
"caption" : "Custom: 3 Pane (2T 1B)",
"mnemonic": "C",
"args": {
@sbine
sbine / dependencyResolution.sh
Last active August 29, 2015 14:17
Identify namespace dependency issues (Laravel 4 to Laravel 5 upgrade)
#!/bin/bash
folder='*'
exclude='--exclude-dir=vendor --exclude-dir=bower_components --exclude-dir=node_modules --exclude-dir=storage --exclude-dir=public'
statics=`grep -Eo $exclude "([A-Z][a-zA-Z0-9]+)::" $folder -R`
classes=`grep -Eo $exclude 'new ([A-Z][a-zA-Z0-9]+)' $folder -R | sed -n 's/new //p'`
exceptions=`grep -Eo $exclude 'catch \((([A-Z][a-zA-Z0-9]+)?Exception)' $folder -R | sed -n 's/catch (//p'`
combined=("${statics[@]}" "${classes[@]}" "${exceptions[@]}")

Keybase proof

I hereby claim:

  • I am sbine on github.
  • I am sbine (https://keybase.io/sbine) on keybase.
  • I have a public key whose fingerprint is 496E 7B9E CD5D 6562 87AA 50E2 4C2E C775 A3B5 1BDC

To claim this, I am signing this object: