Skip to content

Instantly share code, notes, and snippets.

View bennylb's full-sized avatar

Ben Backhouse bennylb

  • Melbourne, Australia
View GitHub Profile
@bennylb
bennylb / Makefile
Last active October 26, 2018 05:11
HOST_UID=1000
HOST_GID=100
COMPOSE_DEV=docker-compose -f docker-compose.dev.yml
EXEC_WEB=exec web gosu saleor
define BUILD_STATIC_CMD
'npm run build-assets --production &&\
npm run build-emails --production'
endef
@bennylb
bennylb / pnix-shell.sh
Created August 21, 2018 12:56 — forked from aherrmann/pnix-shell.sh
Fully persistent Nix shell
# This is free and unencumbered software released into the public domain.
# Anyone is free to copy, modify, publish, use, compile, sell, or
# distribute this software, either in source code form or as a compiled
# binary, for any purpose, commercial or non-commercial, and by any
# means.
# In jurisdictions that recognize copyright laws, the author or authors
# of this software dedicate any and all copyright interest in the
# software to the public domain. We make this dedication for the benefit
@bennylb
bennylb / categoryTree.js
Last active December 10, 2015 17:59
PURE.js rendering product category hierarchy from json object tree.
$(document).ready(function () {
var jsonTree =
"use strict";
$.getJSON('/categories/json', function(jsonTree) {
var rootDir = {
'a' : 'data.name',
'a@id' : 'data.id'
};