Skip to content

Instantly share code, notes, and snippets.

@makkinga
makkinga / Headless RPI.md
Last active August 31, 2020 13:23
Preparing SD card for headless pi
@makkinga
makkinga / Laravel Pluralisation for Tranlation Strings.md
Last active November 1, 2021 08:39
Laravel Pluralisation for Tranlation Strings

Laravel Pluralisation for Tranlation Strings

Add this to your helpers file

if (! function_exists('__choice')) {
    /**
     * @param string $key
     * @param int $count
 *

Example

This code adds tickers for BTC, ETH, ONE, XYA, and JEWEL to your MacBook's Touch Bar

image

Usage

Download and install BetterTouchTool

@makkinga
makkinga / LotDrawer.php
Created December 5, 2022 14:26
Draw lots for your Christmas surprises!
<?php
/*
* LotDrawer::draw([
* 'Frank' => '[email protected]',
* 'John' => '[email protected]',
* 'Nathan' => '[email protected]',
* 'Jane' => '[email protected]',
* ]);
*/
{
"name": "Tipper",
"address": "0xb356b4ff874e5a6402e485b0c1b19a60d5a21ba2",
"abi": [
{
"inputs": [
{
"internalType": "contract TipBank",
"name": "_bank",
"type": "address"