Skip to content

Instantly share code, notes, and snippets.

View matthewtrask's full-sized avatar
🏠
Working from home

Matt Trask matthewtrask

🏠
Working from home
View GitHub Profile
protected static function boot()
{
parent::boot();
static::deleting(
function ($model) {
if (!empty($model->image_file_name)) {
dispatch(new RemoveAssetJob($model));
}
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Dog Object</title>
<script type="text/javascript" src="validator.js"></script>
<style type="text/css">
#JS {
display:none;
}
/**
* @var private $awsService
*/
public function __construct(AwsService $awsService)
{
$this->awsService = $awsService;
}
```Matt Trask
[4:04 PM]
not I. you see hobbits, we eat all the time. Breakfast, 2nd breakfast, Elevenses, Lunch, Afternoon Tea, Dinner and Supper.
Marcus Fulbright [4:38 PM]
The issue isn't the eating
function postJobs(){
// we use axios to make the HTTP request
axios.post('/api/jobs')
// if request is successful, this is what needs to happen
.then(response => {
// do success stuff
}.catch((error => {
// we also get to handle errors, so this promise is where we catch the error and handle it gracefully.
console.error(error);
}
<template>
<div class="announcement-sidebar__section">
<p class="strong">{{ state.video.title }}</p>
<p class="text-italic">Announcements for {{ state.video.weekend }}</p>
<div class="announcement-sidebar__ann-list">
<vue-draggable v-model="state.video.announcements" @input="sendSortedArray">
<div v-for="announcement in state.video.announcements" v-bind:key="announcement.weight" :class="getAnnouncementClass(announcement.id)" v-on:click="selectAnnouncement(announcement.id)">
{{ announcement.title }}
<div v-if="state.video.status == 'Draft'" class="remove-announcement" v-on:click="removeAnnouncement(announcement.id, $event)"></div>
</div>
  • SunshinePHP - Miami - February - CFP in October
  • Midwest PHP - Minnesota - March - CFP in December
  • LonghornPHP - April - Austin - CFP in December-ish
  • PHPTek - May - Atlanta - CFP in Jan/Fed
  • Southeast PHP - August - Nashville - CFP in February
  • Wave PHP - Sept - San Diego - CFP in April
  • Madison PHP - Sept - Madison, WI - CFP - May
  • Cascadia PHP - Sept - Portland - CFP in May
  • ZendCon - Oct - Las Vegas - CFP in Summer
  • NortheastPHP - Sept - Boston - CFP in May - Wont pay for travel/hotel
@matthewtrask
matthewtrask / byobuCommands
Created September 9, 2018 22:45 — forked from jshaw/byobuCommands
Byobu Commands
Byobu Commands
==============
byobu Screen manager
Level 0 Commands (Quick Start)
------------------------------
<F2> Create a new window
Route::get('/{vue_capture?}', function () {
return view('home');
})->where('vue_capture', '[\/\w\.-]*');

hot chicken:

  • Hattie B's - Most consistent but longest lines. Skip the Midtown one and go to 8th Ave or 53rd Ave.
  • Pepperfire - Closest to where yall are staying. Pretty good, smallish dining room so try to go a little off hours.
  • Slow Burn - about 20 minutes from where you are staying but so damn good. Tons of food options, never a long line.

drinks:

  • craft cocktails:
    • pinewood social - also good for brunch. you can bowl here too, oddly. (featured on no reservations with anthony bourdain season 7)
    • patterson house - super nice, but super pricey. you will want to call ahead for this place.
  • attayboy - speakeasy not far from 5 points