Skip to content

Instantly share code, notes, and snippets.

View arimolzer's full-sized avatar
🦆

Ari Molzer arimolzer

🦆
View GitHub Profile
@arimolzer
arimolzer / AustralianDriversLicence.php
Last active March 30, 2022 22:25
Laravel 9.* validation rule to check that the format of a provided string matches the required format for Australian drivers licences.
<?php
namespace App\Rules;
use Illuminate\Contracts\Validation\Rule;
class AustralianDriversLicence implements Rule
{
/**
* Determine if the validation rule passes.
title: Blog Post
hide: true
fields:
title:
display: 'Title'
type: text
localizable: true
width: 50
slug:
@arimolzer
arimolzer / RockPaperScissors.php
Last active June 28, 2017 23:28
Play rock, paper, scissors against PHP - Written to help educate a friend.
<?php
// This gist was written for a high school student who told me about a project he was given to write
// a game of rock, paper, scissors. This gist was written to show him my solution to such a problem.
// Obviously, this is a PHP script to be run in the command line.
// Change the $myChoice variable to your choice as per the key below:
// 0 = Rock
// 1 = Paper
@arimolzer
arimolzer / keybase.md
Created November 16, 2016 00:50
Keybase.io Authentication

Keybase proof

I hereby claim:

  • I am arimolzer on github.
  • I am arimolzer (https://keybase.io/arimolzer) on keybase.
  • I have a public key whose fingerprint is 9FE7 2D1D 4582 7BF7 6A9F 11D2 2339 2C99 4A0C 1915

To claim this, I am signing this object: