Skip to content

Instantly share code, notes, and snippets.

View jeskew's full-sized avatar

Jonny Eskew jeskew

  • Falls Church, VA
View GitHub Profile
@jeskew
jeskew / user-defined-types.md
Last active April 19, 2023 16:14
Overview of the user-defined types preview feature
@jeskew
jeskew / Form.js
Created May 19, 2017 17:15
Presigned POST
const s3 = new AWS.S3({region: 'us-west-2'});
s3.createPresignedPost({
Bucket: 'bucket',
Fields: {
key: 'user_files/${filename}',
},
Conditions: [
['starts-with', '$key', '']
]

Keybase proof

I hereby claim:

  • I am jeskew on github.
  • I am jeskew (https://keybase.io/jeskew) on keybase.
  • I have a public key whose fingerprint is 46C7 102E F153 F6B3 514F C89B E15F F3C0 001A 6F26

To claim this, I am signing this object:

@jeskew
jeskew / SnsBroadcaster.php
Last active July 28, 2020 19:14
Laravel broadcasting with SNS
<?php
use Aws\Sns\SnsClient;
use Illuminate\Contracts\Broadcasting\Broadcaster;
class SnsBroadcaster implements Broadcaster
{
/** @var SnsClient */
private $sns;
/** @var array */
<?php
namespace Libraries\Abbreviations;
class States
{
public static function getTitleCase()
{
$titleCaseHash = array();