Skip to content

Instantly share code, notes, and snippets.

View spetrey's full-sized avatar
🤠

Stephen Petrey spetrey

🤠
View GitHub Profile
@spetrey
spetrey / cloudSettings
Last active March 27, 2020 14:10
VS code config: TypeScript + Php (PSalm) setup
{"lastUpload":"2020-03-27T14:10:08.719Z","extensionVersion":"v3.4.3"}
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡐⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⡠⢄⠴⠶⢶⠶⢧⠧⠷⠶⠶⢖⠔⢄⠄⡄⠂⠀⠈⠐⢄⠨⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣠⣴⣿⣿⡿⢗⡱⣝⣦⡲⣔⢦⢧⡳⣅⠑⢟⢿⢿⣿⣯⣦⡰⡀⡀⠄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⣴⣿⣿⣿⡿⠫⣐⣞⢮⣗⣗⡯⡯⡯⣯⣻⣺⢢⠈⢝⣕⢯⡻⣽⢿⣻⣾⣢⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢤⢘⢻⠻⠻⠟⠗⢁⢜⢞⢮⡳⣳⢳⡫⡯⣻⢺⡺⣪⢳⢅⠀⢓⠗⠝⠎⠏⠓⠋⠓⢉⠢⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡠⡜⡜⢜⢐⠁⡁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠂⠩⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⢤⢣⠧⡣⣱⣰⢤⢄⡄⣄⣀⣀⡀⡀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠐⠠⢑⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⢪⢪⡪⣵⣿⣿⣿⣿⣷⣝⢮⡺⣾⡽⡦⣇⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠌⡂⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⢧⠣⣣⣻⣿⣿⣫⣷⢿⣽⣗⢗⢽⣿⣽⣟⡆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠌⡂⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
@spetrey
spetrey / embed-unsplash-photos.php
Created September 10, 2017 20:51
Embed your Unsplash photos with this easy-bake PHP snippet.
<?php
// The Unsplash API URL that we want to GET.
// Get YOUR_APPLICATION_ID here:
// https://unsplash.com/developers
$url = 'https://api.unsplash.com/users/smpetrey/photos/?client_id=YOUR_APPLICATION_ID';
// Use file_get_contents to GET the URL in question.
// the True parameter makes this array as associative.
$contents = json_decode(file_get_contents($url), TRUE);
{"assets":[],"fonts":{"list":[{"fName":"GothamBlack","fFamily":"Gotham Black","fStyle":"Regular","ascent":72.9995727539062}]},"layers":[{"ddd":0,"ind":0,"ty":5,"nm":"B","ks":{"o":{"k":100},"r":{"k":0},"p":{"k":[736,696,0]},"a":{"k":[0,0,0]},"s":{"k":[248.248,248.248,100]}},"ao":0,"t":{"d":{"k":[{"s":{"s":212,"f":"GothamBlack","t":"B","j":0,"tr":0,"lh":254.4,"fc":[0.91,0.24,0.24]},"t":0}]},"p":{},"m":{"g":1,"a":{"k":[0,0]}},"a":[]},"ip":0,"op":900.000036657751,"st":0,"bm":0,"sr":1}],"v":"4.5.0","ddd":0,"ip":0,"op":900.000036657751,"fr":29.9700012207031,"w":1920,"h":1080,"chars":[{"ch":"B","size":212,"style":"Regular","w":71.5,"data":{"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"k":{"i":[[25.1,-15.6],[25.1,-28.5],[39.9,-28.5],[45.566,-27.933],[49.4,-24.133],[49.4,-22],[48.6,-18.35],[43.1,-15.6]],"o":[[25.1,-15.6],[25.1,-28.5],[43.166,-28.5],[48.633,-25.666],[49.4,-22.2],[49.4,-19.933],[45.4,-16.15],[40.1,-15.6]],"v":[[25.1,-15.6],[25.1,-28.5],[39.9,-28.5],[47.1,-26.8],[49.4,-22.2],[49.4,-22],[47,-17.25]
@spetrey
spetrey / NewMacConfig.md
Last active August 26, 2015 20:07 — forked from offsky/NewMacConfig.md
Setup new mac for web development (Updated for Yosemite)