Skip to content

Instantly share code, notes, and snippets.

@garygreen
garygreen / GdDifferenceHash.php
Created May 28, 2020 13:00
GD Difference Hash for jenssegers / imagehash package (around 4x quicker than Intervention)
<?php
namespace App\Image;
use Jenssegers\ImageHash\Hash;
use Jenssegers\ImageHash\Implementation;
class GdDifferenceHash implements Implementation
{
/**
@garygreen
garygreen / 2018_02_13_142413_add_renews_at_column_to_subscriptions.php
Last active January 24, 2024 00:20
Sync Stripe Renewal Date for all subscriptions - Laravel Console Command
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddRenewsAtColumnToSubscriptions extends Migration
{
/**
* Run the migrations.

PHPExcel Cheat Sheet

Documentation

Snippets

Install.

composer require phpoffice/phpexcel
@garygreen
garygreen / mouseflow.js
Created May 22, 2015 10:16
Detect if mouseflow recording and get original path
(function(window) {
function MouseflowRecording(playback) {
this.playback = playback;
}
/**
* Get original path
*
* @return {string}