Skip to content

Instantly share code, notes, and snippets.

View snellingio's full-sized avatar

Sam Snelling snellingio

View GitHub Profile
<?php
namespace App\Http\Livewire\Sections;
use Livewire\Component;
use Livewire\TemporaryUploadedFile;
use Livewire\WithFileUploads;
class Photo extends Component
{
<div class="pb-6">
<label for="state" class="w-full block font-semibold pb-1 md:pb-2 select-none text-black dark-mode:text-grey-050">
State
</label>
<div class="w-full block flex">
<div class="relative w-full">
<select class="border border-grey-100 bg-white outline-none px-3 rounded appearance-none outline-none w-full py-3 bg-white text-black focus:border-blue-500" id="state" name="state">
@snellingio
snellingio / keybase.md
Created November 28, 2016 13:11
keybase.md

Keybase proof

I hereby claim:

  • I am snellingio on github.
  • I am snelling (https://keybase.io/snelling) on keybase.
  • I have a public key whose fingerprint is 38E0 0D78 326C F14B C7A1 BA06 3696 BFC7 1915 95E4

To claim this, I am signing this object:

@snellingio
snellingio / DecisionTree.php
Last active May 23, 2020 16:30
Form Validation with Decision Trees
<?php
class DecisionTree
{
protected $root;
public function __construct($options)
{
$optionsArray = [
'trainingSet' => $options['trainingSet'] ?? [],
@snellingio
snellingio / gist:bc13143908ef2dcb0d9d
Last active August 29, 2015 14:22
Status page customers
, cratejoy.statuspage.io
, easypost.statuspage.io
, monkdev.statuspage.io
, ontap.status.io
, pubnub.statuspage.io
, signalfx.statuspage.io
, thinkunified.statuspage.io
, calltrackingmetrics.statuspage.io
, centrastage.statuspage.io
, cityindexlabs.statuspage.io
@snellingio
snellingio / gist:8906a3d3f4966b34b61b
Last active August 29, 2015 14:18
Storing passwords the right way
/**
* Hash a password
*
* @param string $password the password
* @param string $verify the password you want to verify, null just encrypts
*
* @return string the hashed password, the success of verification
*/
public function password_hash($password)
{
@snellingio
snellingio / gist:67b1ebbdd0606c4622c7
Created February 25, 2015 01:47
OkState Hostnames from IP
su-bkst-pbenne.su.okstate.edu
rking.it.okstate.edu
materer1.dhcp.okstate.edu
pm201-pm108.pm.okstate.edu
jhighto-win8.it.okstate.edu
mike-cd2.it.okstate.edu
tirnanog.agh.okstate.edu
fim_si.su.okstate.edu
carries-imac.wh.okstate.edu
ssbc02j91sndrv9.bus.okstate.edu