Skip to content

Instantly share code, notes, and snippets.

View arcdev1's full-sized avatar

Bill Sourour arcdev1

  • Arcnovus
  • Ottawa, Canada
View GitHub Profile
@arcdev1
arcdev1 / machine.js
Created November 25, 2019 06:16
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@arcdev1
arcdev1 / machine.js
Last active November 26, 2019 19:17
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@arcdev1
arcdev1 / NonEmptyString.ts
Last active April 11, 2021 20:20
FP-Value Object in TypeScript
‎‎​
@arcdev1
arcdev1 / register-wet-component.ts
Last active June 24, 2021 17:38
Register WET Component
/**
* Lets WET-BOEW know about a new component that was added to the page so that
* WET-BOEW can apply the WET-BOEW JavaScript to it.
*
* @param {string} selector an HTML selector, usually the class
* name prefixed with a period.
*/
async function registerWbComponent(selector: string): Promise<void> {
if (typeof window !== "undefined") {
const wet: WetBoew = (window as any).wb as WetBoew;
import {
Form,
FormGroup,
TextInput,
SubmitButton,
DefaultTemplate,
} from "@arcnovus/wet-boew-react";
import { MultiCheckboxSelect } from "../../components/MultiCheckboxSelect";
export default function FormExample() {