Skip to content

Instantly share code, notes, and snippets.

View adam-paterson's full-sized avatar

Adam Paterson adam-paterson

View GitHub Profile
Homebrew build logs for ampersandhq/php/[email protected] on macOS 14.1
Build date: 2023-12-08 13:39:00
@adam-paterson
adam-paterson / interceptor-return-type.patch
Created April 19, 2018 10:17 — forked from AydinHassan/interceptor-return-type.patch
Magento 2 Interceptor with return type hints patch
From d5951cd822ae615c8ae56e1c92aae0a921ad611c Mon Sep 17 00:00:00 2001
From: Aydin Hassan <[email protected]>
Date: Thu, 11 Aug 2016 13:00:42 +0200
Subject: [PATCH] Patch interceptor generator to add return types, bring in
some zend-code 3 features
---
Generation/ClassGenerator.php | 37 +++++++++++++
Generation/Interceptor.php | 42 +++++++++++++++
Generation/MethodGenerator.php | 112 ++++++++++++++++++++++++++++++++++++++

Contract Killer

The popular open-source contract for web designers and developers by Stuff & Nonsense

  • Originally published: 23/12/2008
  • Revised date: 15/12/2013
  • Original post

Contract Killer

The popular open-source contract for web designers and developers by Stuff & Nonsense

  • Originally published: 23/12/2008
  • Revised date: 15/12/2013
  • Original post

@adam-paterson
adam-paterson / customers.sql
Last active August 29, 2015 14:05 — forked from leek/_Magento1_DeleteTestData.md
Clear Magento test data
SET FOREIGN_KEY_CHECKS=0;
-- Customers
DELETE FROM `customer_address_entity`;
DELETE FROM `customer_address_entity_datetime`;
DELETE FROM `customer_address_entity_decimal`;
DELETE FROM `customer_address_entity_int`;
DELETE FROM `customer_address_entity_text`;
DELETE FROM `customer_address_entity_varchar`;
DELETE FROM `customer_entity`;
@adam-paterson
adam-paterson / 0_reuse_code.js
Created November 7, 2013 17:16
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@adam-paterson
adam-paterson / Shipping.php
Created September 27, 2013 14:34
some shit
public function getEstimateRates()
{
if (empty($this->_rates)) {
$groups = $this->getAddress()->getGroupedAllShippingRates();
$this->_rates = $groups;
}
return $this->_rates;
}