Skip to content

Instantly share code, notes, and snippets.

View Kryptonit3-zz's full-sized avatar

Jesse Szypulski Kryptonit3-zz

  • Louisville, KY, USA
View GitHub Profile
@Kryptonit3-zz
Kryptonit3-zz / ValidateSSN.php
Last active May 12, 2020 21:00
Validate Social Security Number SSN
/**
* Validate SSN - must be in format AAA-GG-SSSS or AAAGGSSSS
*
* @param $ssn
* @return bool
*/
function validate_ssn($ssn) {
$ssnTrimmed = trim($ssn);
@Kryptonit3-zz
Kryptonit3-zz / AuthController.php
Last active August 29, 2015 14:23
Laravel 5 - Allow user to login with either username or email
<?php
namespace App\Http\Controllers\Auth;
use Illuminate\Http\Request;
use App\Http\Requests;
use App\Http\Controllers\Controller;
class AuthController extends Controller
@Kryptonit3-zz
Kryptonit3-zz / .gitignore
Last active July 13, 2018 18:15
Lightweight image cropping with jQuery
# Ignore everything in this directory
*
# Except this file
!.gitignore