Skip to content

Instantly share code, notes, and snippets.

Brandon Surowiec BrandonSurowiec

  • Flint, MI
Block or report user

Report or block BrandonSurowiec

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

Keybase proof

I hereby claim:

  • I am brandonsurowiec on github.
  • I am brandonsurowiec ( on keybase.
  • I have a public key ASBx2mxBXrfAdqAUA1XtB6tdlE_O98XEGsMbbBlUxa_BQQo

To claim this, I am signing this object:

BrandonSurowiec / stream_file.php
Created Aug 7, 2017 — forked from fideloper/stream_file.php
Stream file from S3 to browser, assume Laravel Filesystem usage
View stream_file.php
* Get File Information
// Assuming these come from some data source in your app
$s3FileKey = 's3/key/path/to/file.ext';
$fileName = 'file.ext';
BrandonSurowiec / countries.php
Created Nov 26, 2016 — forked from ericlbarnes/countries.php
PHP Array of country names
View countries.php
return [
"Antigua and Barbuda",
BrandonSurowiec / Contract Killer
Last active Sep 1, 2015 — forked from malarkey/Contract Killer
The latest version of my ‘killer contract’ for web designers and developers
View Contract Killer

Contract Killer

The popular open-source contract for web designers and developers by Stuff & Nonsense

  • Originally published: 23/12/2008
  • Revised date: 15/12/2013
  • Original post

BrandonSurowiec /
Last active Jul 5, 2016
SublimeText: Autocompletion of $this-> and $this;

Add to Preferences > Key Bindings - User:

Auto replace to $this-> after typing $-

  // Auto replace to $this-> after typing $-
    { "keys": ["-"], "command": "insert_snippet", "args": {"contents": "this->"}, "context":
            { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
            { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
            { "key": "preceding_text", "operator": "regex_contains", "operand": "\\$$", "match_all": true },
You can’t perform that action at this time.