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
View keybase.md

Keybase proof

I hereby claim:

  • I am brandonsurowiec on github.
  • I am brandonsurowiec (https://keybase.io/brandonsurowiec) on keybase.
  • I have a public key ASBx2mxBXrfAdqAUA1XtB6tdlE_O98XEGsMbbBlUxa_BQQo

To claim this, I am signing this object:

@BrandonSurowiec
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
<?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
BrandonSurowiec / countries.php
Created Nov 26, 2016 — forked from ericlbarnes/countries.php
PHP Array of country names
View countries.php
<?php
return [
"Afghanistan",
"Albania",
"Algeria",
"Andorra",
"Angola",
"Antigua and Barbuda",
"Argentina",
@BrandonSurowiec
BrandonSurowiec / Contract Killer 3.md
Last active Sep 1, 2015 — forked from malarkey/Contract Killer 3.md
The latest version of my ‘killer contract’ for web designers and developers
View Contract Killer 3.md

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
BrandonSurowiec / sublime-text-php-this-arrow-autocomplete.md
Last active Jul 5, 2016
SublimeText: Autocompletion of $this-> and $this;
View sublime-text-php-this-arrow-autocomplete.md

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.