When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:
main {
max-width: 38rem;
padding: 2rem;
margin: auto;
}| <?php | |
| namespace App\Providers; | |
| use Illuminate\Support\Facades\Blade; | |
| use Illuminate\Support\ServiceProvider; | |
| class AppServiceProvider extends ServiceProvider | |
| { | |
| /** |
| <?php | |
| error_reporting(E_ALL); | |
| $opts = getopt('f:d:rb:', ['ext:', 'php:', 'diff::']); | |
| if ((int)isset($opts['d']) + (int)isset($opts['f']) !== 1) { | |
| $self = basename(__FILE__); | |
| echo <<<EOF | |
| Usage: | |
| php $self -f<php_script> [-b] [--php <path_to_php>] [ --diff [<file>]] |
| #requires -module msterminalsettings,threadjob | |
| ###QUICKSTART | |
| #FIRST: Run this in your Powershell Windows Terminal: Install-Module threadjob,msterminalsettings -scope currentuser | |
| #THEN: iex (iwr git.io/invoketerminalgif) | |
| #THEN: Get-Help Search-Giphy -Examples | |
| #THEN: Get-Help Invoke-TerminalGif -Examples | |
| #THEN: Search-Giphy | Format-List -prop * | |
| #THEN: Invoke-TerminalGif https://media.giphy.com/media/g9582DNuQppxC/giphy.gif |
| import scenegraph from "scenegraph"; | |
| class ConvertOptions { | |
| // skip iterating over nested nodes to prevent infinite loop | |
| public doNotExpandNodes = false; | |
| } | |
| /** | |
| * Converts xd nodes into json object | |
| */ |
| [alias] | |
| start = "!f() { \ | |
| baseTag='1'; \ | |
| startTag=$1; \ | |
| selectedTag=${startTag:-${baseTag:-startTag}}; \ | |
| git reset --hard $selectedTag; \ | |
| git clean -df; \ | |
| git tag -l $selectedTag -n999; \ | |
| }; f" | |
| next = "!f() { \ |
| #!/bin/sh | |
| branch="$(git rev-parse --abbrev-ref HEAD)" | |
| # get computer name to append in Chime message | |
| username=$USER | |
| # a branch name where you want to prevent git push. In this case, it's "master" | |
| if [ "$branch" = "master" ]; then | |
| echo "You can't commit directly to '"${branch}"' branch" # webstorm or intellij will show this as popup |
| { | |
| "AATes123": true, | |
| "AcrylicAndBackground": true, | |
| "AudioInfoSync": true, | |
| "BatteryIndicator": true, | |
| "CallingDiscoveryTimeout": 30, | |
| "CallingEnableOnARM": true, | |
| "CallingFromMessages": true, | |
| "CallingLabelInProd": true, | |
| "CallingNode": true, |
This gist details how to create or restore a disk image in Mac OSX. There are three methods that are described: Carbon Copy Cloner, Disk Utility, and CommandLine.
| <?php | |
| /** | |
| * The table Printer class has no dependencies and generates an array (strings) | |
| * out of an object array / countable and the child properties that should be printed given by an array (strings) | |
| */ | |
| class TablePrinter | |
| { | |
| /** | |
| * @param \Countable|array|object[] $historyItems |