Skip to content

Instantly share code, notes, and snippets.

@larrybotha
larrybotha / A.markdown
Last active January 27, 2016 14:00
Multiple Bundles With Gulp, WebPack, and React

Multiple Bundles With Gulp, WebPack, and React

@larrybotha
larrybotha / A.markdown
Last active December 2, 2016 21:06
Google Apps Scripts Spreadsheet Submission

Post To Google Sheets -> Scripts Submission Handler

A Google Apps Script to handle submissions sent to a Google Sheet via a webform, and send emails each time a submission is received.

Largely inspired by Google Sheets as a Database – INSERT with Apps Script using POST/GET methods.

This script must be added to your Google Sheet via 'Tools' -> 'Script Editor...'.

Your spreadsheet's column names must match the field names on your firm to properly submit data.

@larrybotha
larrybotha / A.markdown
Last active April 27, 2021 09:02
Mac OS Sierra MySQL my.conf

Fixing Mac OS Sierra MySQL Woes

MySQL throwing ERROR 2006 (HY000): MySQL server has gone away?

mysql -u root -p
# enter password

mysql > SET GLOBAL max_allowed_packet=1073741824;
@larrybotha
larrybotha / A.markdown
Last active April 7, 2017 22:10
Two.js Renderer for PhysicsJS

Two.js Renderer for PhysicsJS

A starting point for a Two.js renderer for PhysicsJS.

@larrybotha
larrybotha / machine.js
Last active September 20, 2019 21:14
LunaMed UI User Machine: https://xstate.js.org/viz
const userMachine = Machine({
id: "user",
initial: "noUser",
states: {
noUser: {
invoke: {
src: "getUser",
onDone: "userFound",
@larrybotha
larrybotha / machine.js
Last active September 20, 2019 21:32
Generated by XState Viz: https://xstate.js.org/viz
const xeroOrgMachine = Machine({
id: 'xeroOrg',
initial: 'noOrg',
states: {
noOrg: {
invoke: {
src: "requestAuthUrl",
onDone: "exchangingToken",
@larrybotha
larrybotha / machine.js
Last active September 30, 2019 03:12
Generated by XState Viz: https://xstate.js.org/viz
const tradingStrategyMachine = Machine({
id: 'three-step-trading-process',
initial: 'backtesting',
context: {
timesRefactored: 0,
},
states: {