Skip to content

Instantly share code, notes, and snippets.

@aceslick911
aceslick911 / machine.js
Created April 19, 2023 05:47
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@aceslick911
aceslick911 / README.md
Created September 15, 2022 22:01
Mac Developer Setup Guide

Mac developer setup guide

Purpose:

  • Help install essential tools and productivity tools for developers using MacOS
  • Reccomended additional tools for good dev workflows
@aceslick911
aceslick911 / granboard-ble.md
Last active March 25, 2022 08:34
Granboard Dartboard BLE HEX Codes

Decoding the Granboard BLE read/write hex codes

Please help contribute to this file by installing your favorite BLE app and trying different hex codes.

Here's a few verified by myself to perform certain actions. This gist will start out very ambiguous and hopefully will re-form into something more structured as the system is better understood!

1111 red wave 11111 yellow wave 1111111 white wave 111111111 white then red

@aceslick911
aceslick911 / machine.js
Created January 2, 2022 06:29
Generated by XState Viz: https://xstate.js.org/viz
/* #region Types & Constants */
const AEMO_CONSTANTS = {
testingMessageDelay: 2000,
CATS_CHANGE_REQUEST: 'TRF-REQ',
CATS_CHANGE_REQUEST_REJECTED: 'NACK',
};
/* #endregion */
/* #region Callbacks and Helper Methods */
@aceslick911
aceslick911 / machine.js
Created January 2, 2022 06:28
Generated by XState Viz: https://xstate.js.org/viz
/* #region Types & Constants */
const AEMO_CONSTANTS = {
testingMessageDelay: 2000,
CATS_CHANGE_REQUEST: 'TRF-REQ',
CATS_CHANGE_REQUEST_REJECTED: 'NACK',
};
/* #endregion */
@aceslick911
aceslick911 / machine.js
Created January 2, 2022 06:26
Generated by XState Viz: https://xstate.js.org/viz
/* #region Types & Constants */
AEMO_CONSTANTS = {
testingMessageDelay: 2000,
CATS_CHANGE_REQUEST: 'TRF-REQ',
CATS_CHANGE_REQUEST_REJECTED: 'NACK',
};
/* #endregion */
/* #region Callbacks and Helper Methods */
// const fetchUser = (val) =>
// fetch(`url/to/user/${val}`).then((response) => response.json());
@aceslick911
aceslick911 / SketchSystems.spec
Last active October 21, 2021 22:59
autocomplete
autocomplete
blur
FOCUS -> focused
focused
BLUR -> blur
MOUSE_CLICK_OUTSIDE -> blur
CHANGE_TEXT -> focused_match
match*
-> list_hidden
-> list.non_empty; matches
@aceslick911
aceslick911 / machine.js
Created August 28, 2021 03:50
Generated by XState Viz: https://xstate.js.org/viz
const ONE_SECOND = 1000;
const ONE_MINUTE = ONE_SECOND * 60;
Machine( {
id: 'microwave',
initial: 'idle',
context: {
digits: '',
timer: 0,
@aceslick911
aceslick911 / machine.js
Last active July 1, 2021 00:27
Generated by XState Viz: https://xstate.js.org/viz
const resolveInOneSec = async () => {
return await new Promise(resolve => {
setTimeout(() => {
resolve(true);
console.log("RESOLVED");
}, 1000)
});
};
const BCGServices = {
@aceslick911
aceslick911 / machine.js
Last active June 28, 2021 17:36
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions