Skip to content

Instantly share code, notes, and snippets.

View Sammyjo20's full-sized avatar

Sam Carré Sammyjo20

View GitHub Profile
<?php
namespace App\Rules;
use Illuminate\Contracts\Validation\Rule;
class DangerousExtensions implements Rule
{
/**
* @var array
@Sammyjo20
Sammyjo20 / autopopulate.js
Last active September 24, 2020 08:56
Quotehaven Javascript API - Autofilling forms
document.addEventListener('QuotehavenReady', () => {
window.quotehavenApi.populateForm({
client_one: {
title: 'mr', // mr, mrs, miss, ms, dr
first_name: 'John',
last_name: 'Doe',
smoker: false,
sex: 'male',
date_of_birth: '02/11/1980', // d/m/Y
email: '[email protected]',
@Sammyjo20
Sammyjo20 / gist:3e76429f5c4d4fa7285ef82965264385
Created May 14, 2020 08:03
Give composer unlimited power
alias composeroverlord="php -d memory_limit=-1 /usr/local/bin/composer"