Skip to content

Instantly share code, notes, and snippets.

View allencoded's full-sized avatar
🏠
Working from home

Allen Hendricks allencoded

🏠
Working from home
View GitHub Profile
@allencoded
allencoded / machine.js
Last active February 21, 2021 20:47
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@allencoded
allencoded / machine.js
Created October 27, 2020 02:32
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
const introScreen = {
id: "6cdfb4bc-b762-11ea-b3de-0242ac130004",
type: "RECOMMENDATION",
facts: [
{
id: "845cfa0e-b763-11ea-b3de-0242ac130004",
title: "Mild Severity"
}
]
};
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@allencoded
allencoded / TestOurTile.cs
Last active June 4, 2018 07:10
Test our Tile
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Tilemaps;
public class TestOurTile : MonoBehaviour {
private WorldTile _tile;
// Update is called once per frame
private void Update () {
@allencoded
allencoded / GameTile.cs
Last active June 4, 2018 07:16
GameTile
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Tilemaps;
public class GameTiles : MonoBehaviour {
public static GameTiles instance;
public Tilemap Tilemap;
public Dictionary<Vector3, WorldTile> tiles;
@allencoded
allencoded / WorldTile.cs
Last active June 2, 2018 17:44
WorldTile
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Tilemaps;
public class WorldTile {
public Vector3Int LocalPlace { get; set; }
public Vector3 WorldLocation { get; set; }
@allencoded
allencoded / destructure.js
Created June 3, 2017 19:48
Destructure Blog Demo
const response = [
{
type: 'truck',
size: 'large',
},
{
type: 'car',
size: 'small',
},
];
@allencoded
allencoded / app.html
Last active October 31, 2016 18:42 — forked from jdanyow/app.html
Aurelia Gist
<template>
<require from="./test"></require>
<h1>${message}</h1>
<test stuff.bind="stuff"></test>
</template>
@allencoded
allencoded / app.html
Created October 20, 2016 17:12 — forked from m-andrew-albright/app.html
Aurelia Gist
<template>
<form with.bind="create">
<div ref="testElement">
Hi
</div>
</form>
</template>