Skip to content

Instantly share code, notes, and snippets.

View lukebouch's full-sized avatar
🤒
Recovering from Cubital Tunnel Syndrome

Luke Bouch lukebouch

🤒
Recovering from Cubital Tunnel Syndrome
View GitHub Profile
// Super Secret Spy Award
$people = '{"data":[{"first_name":"jake","last_name":"bennett","age":31,"email":"jake@bennett.com","secret":"VXNlIHRoaXMgc2VjcmV0IHBocmFzZSBzb21ld2hlcmUgaW4geW91ciBjb2RlJ3MgY29tbWVudHM="},{"first_name":"jordon","last_name":"brill","age":85,"email": "jordon@brill.com","secret":"YWxidXF1ZXJxdWUuIHNub3JrZWwu"},]}';
$correctedJSON = preg_replace_callback("/(?:}(,)[^{])/", function($matches) {
return str_replace(",", "", $matches[0]);
}
, $people);
$data = collect(json_decode($correctedJSON)->data);
{
"version": "https://jsonfeed.org/version/1",
"title": "Luke Bouch",
"icon": "https://micro.blog/lukebouch/avatar.jpg",
"home_page_url": "https://lukebouch.com/",
"feed_url": "https://lukebouch.com/feed.json",
"items": [
{
"id": "http://LukeBouch.micro.blog/2022/04/25/i-got-tired.html",
@lukebouch
lukebouch / tailwind.config.js
Created March 11, 2022 16:30
A good starting point for Tailwindcss
const defaultTheme = require("tailwindcss/defaultTheme");
module.exports = {
purge: ["source/**/*.blade.php", "source/**/*.md", "source/**/*.html"],
theme: {
extend: {
fontFamily: {
sans: ["Work Sans", ...defaultTheme.fontFamily.sans],
},
fontSize: {
@lukebouch
lukebouch / twig-xl.json
Last active February 28, 2022 14:55
BetaFPV Twig XL BetaFlight Backup
{
"generatedBy": "10.7.1",
"apiVersion": "1.43.0",
"profiles": [
{
"PID": {
"controller": 1
},
"PIDs": [
[