Skip to content

Instantly share code, notes, and snippets.

View jameshulse's full-sized avatar

James Hulse jameshulse

View GitHub Profile
@dimitur2204
dimitur2204 / MUIRadioCardGroup.tsx
Last active September 9, 2024 01:15
MUI Radio Group using MUI Card as buttons (also accessible <3)
import React from 'react'
import {
Card,
CardProps,
FormControl,
FormControlLabel,
Radio,
RadioGroup,
RadioGroupProps,
Stack,
@barryvdh
barryvdh / HttpClientEventsMiddleware.php
Created September 7, 2021 12:52
Middleware to log Guzzle requests with Telescope
<?php
namespace App\Http\Client;
use GuzzleHttp\Promise;
use Illuminate\Http\Client\Events\ConnectionFailed;
use Illuminate\Http\Client\Events\RequestSending;
use Illuminate\Http\Client\Events\ResponseReceived;
use Illuminate\Http\Client\Request;
use Illuminate\Http\Client\Response;
@mitchwongho
mitchwongho / Docker
Last active September 23, 2024 12:09
Docker 'run' command to start an interactive BaSH session
# Assuming an Ubuntu Docker image
$ docker run -it <image> /bin/bash