Skip to content

Instantly share code, notes, and snippets.

@hadynz
hadynz / ashburton-products.csv
Created July 19, 2023 00:01
Dump of products in Countdown Ashburton — July 2023
We can't make this file beautiful and searchable because it's too large.
SKU,Name,Size,Price,Category
829580,countdown nz beef rump steak grass fed,per kg,24.9,meat-poultry/beef/steak
963001,silver fern farms nz beef flat iron steaks,null,11.5,meat-poultry/beef/steak
795755,countdown nz beef sirloin steak porterhouse grass fed large tray,per kg,25.9,meat-poultry/beef/steak
795598,countdown nz beef cross cut blade steak grass fed medium tray,per kg,24.6,meat-poultry/beef/steak
795766,countdown scotch fillet rib eye steak small tray,per kg,40.9,meat-poultry/beef/steak
795700,countdown nz beef blade steak grass fed medium tray,per kg,25.9,meat-poultry/beef/steak
795757,countdown scotch fillet rib eye steak large tray,per kg,40.5,meat-poultry/beef/steak
840776,countdown nz beef sirloin steak porterhouse whole grass fed,per kg,24.9,meat-poultry/beef/steak
795763,countdown nz beef bbq steak tenderised marinated grass fed,per kg,26.9,meat-poultry/beef/steak
@hadynz
hadynz / countdown-products-sample.json
Created July 18, 2023 22:20
Countdown products sample JSON
{
"products": {
"items": [
{
"type": "Product",
"name": "countdown lamb leg frozen bone in",
"barcode": "0235318000002",
"variety": "frozen bone in",
"brand": "countdown",
"slug": "countdown-lamb-leg-frozen-bone-in",
@hadynz
hadynz / OhMyZsh plugins.md
Last active August 28, 2021 05:54
Hady's favourite OhMyZsh plugins

This is a document that captures instructions for installing and configuring my primary [Oh My Zsh][1] plugins.

Getting Started

Prerequisites

  • [Zsh][2] is installed
  • [Oh My Zsh][1] is installed

Plugins

@hadynz
hadynz / StrapiInstance.ts
Created December 28, 2020 12:46
A Strapi repository that will share header tokens across multiple instances
import axios, {
AxiosInstance,
AxiosRequestConfig,
AxiosResponse,
Method,
} from "axios";
import Cookies from "js-cookie";
import qs from "qs";
export interface Authentication {
@hadynz
hadynz / serverless-deploy.yml
Created May 26, 2020 09:44
Serverless deploy with state management in S3
name: Continuous deploy
on:
push:
branches: [master]
jobs:
serverless-deploy:
runs-on: ubuntu-latest
byte[] ReadFile(string FileName)
{
Byte[] resutl = new Byte[1024];
StreamReader x = new Streamreader("c:\test.txt");
try{
x.Read(results, 64);
}catch(Exception e)
{
//Do nothing
@hadynz
hadynz / searchMovies.js
Created May 21, 2017 07:47
Pact JS blog post example - Given statement
const pactProvider = require('...');
module.exports = function steps() {
this.Given(/^That a user accesses arrives at our amazing app’s homepage$/, () => {
pactProvider.addInteraction({
state: 'querying a movie api service',
uponReceiving: 'a request to search for a given movie',
withRequest: {
method: 'GET',
path: '/',
@hadynz
hadynz / .travis.linux.yml
Created May 2, 2017 11:49 — forked from chitoku-k/.travis.linux.yml
ChromeDriver on Travis CI
os: linux
node_js: '7'
sudo: required
env: DISPLAY=':99.0'
dist: trusty
addons:
apt:
sources:
- google-chrome
packages:
@hadynz
hadynz / WindowsOnMac.ahk
Created October 18, 2015 07:51
AutoHotkey script for remapping Mac keys for better programming on Windows
; Remap Right Windows Key to Alt
RWin::RAlt
; Remap Right Alt to Ctrl
RAlt::RCtrl
; Remap Right Alt + Space to Ctrl + Space
RAlt & Space::Send ^{Space}
@hadynz
hadynz / flex-grid.css
Created May 15, 2015 02:29
Flexbox grid component - inspired by Shopify
.flex-grid {
display: flex;
box-sizing: border-box;
padding-top: 10px;
width: calc(100% - 20px);
margin: 0 auto;
}
.flex-grid:last-of-type {
padding-bottom: 10px;