Skip to content

Instantly share code, notes, and snippets.

View larister's full-sized avatar

Alastair Lockie larister

  • Shopify
  • Lewes
  • 21:32 (UTC)
View GitHub Profile
@larister
larister / machine.js
Last active April 30, 2020 13:57
Generated by XState Viz: https://xstate.js.org/viz
const canOpenUnsavedChanges = (context, event, { state }) => !state?.matches('open.hasSearch.searchResults.hasSearchResults.saveAsOpen');
const canOpenSaveAsSubDialog = (context, event, { state }) => !state?.matches('open.hasSearch.unsavedChanges.unsavedOpen');
const hasSearchResultsStates = {
initial: 'saveAsClosed',
states: {
saveAsClosed: {
on: {
TOGGLE_SAVE_AS: [
@larister
larister / machine.js
Last active March 6, 2020 17:33
Generated by XState Viz: https://xstate.js.org/viz
const toggleSubDialogOpen = assign({
subDialogOpen: context => !context.subDialogOpen
});
const allowOpenSubDialog = assign({
subDialogOpen: () => false
});
const canOpenSubDialog = context => !context.subDialogOpen;
@larister
larister / machine.js
Created March 6, 2020 15:58
Generated by XState Viz: https://xstate.js.org/viz
const toggleSubDialogOpen = assign({
subDialogOpen: context => !context.subDialogOpen
});
const canOpenSubDialog = context => !context.subDialogOpen;
const hasSearchStates = {
type: 'parallel',
states: {
unsavedChanges: {

[Async's][async] [2018 International Show n' Tell][event]

Wednesday 7th November, 2018

  • [Full info on the Async website][event]

Speakers gist

Would you like to speak on the night? You'll have five minutes to tell us about something: a project, a library, a technique, a story, or anything else about JavaScript, related tech (HTML, CSS, SVG, etc), or the wider world of web.

@larister
larister / showntell-2017.md
Last active November 9, 2017 15:54
showntell-2017.md

[Async's][async] [2017 International Show n' Tell][event]

Wednesday 8th November, 2017

  • [Full info on the Async website][event]

Speakers gist

Would you like to speak on the night? You'll have five minutes to tell us about something: a project, a library, a technique, a story, or anything else about JavaScript, related tech (HTML, CSS, SVG, etc), or the wider world of web.

### Keybase proof
I hereby claim:
* I am larister on github.
* I am larister (https://keybase.io/larister) on keybase.
* I have a public key whose fingerprint is F89E 2091 465D 75E1 5EF0 C993 2673 FC79 8513 BBC6
To claim this, I am signing this object:
@larister
larister / showntell-2016.md
Last active November 9, 2016 20:17
Async International Show'n'Tell 2016

[Async's][async] [2016 International Show n' Tell][event]

Wednesday 9th November, 2016

  • [Full info on the Async website][event]
  • Sign up to attend [on the event's Lanyrd page][event-lanyrd].

Speakers gist

Would you like to speak on the night? You'll have five minutes to tell us about something: a project, a library, a technique, a story, or anything else about JavaScript, related tech (HTML, CSS, SVG, etc), or the wider world of web.

@larister
larister / spring-showntell-2016.md
Last active April 28, 2016 12:51
Async Spring Show'n'Tell 2016

[Async's][async] [Spring 2016 Show n' Tell][event]

Thursday 28th April, 2016

  • [Full info on the Async website][event]
  • Sign up to attend [on the event's Lanyrd page][event-lanyrd].

Speakers gist

Would you like to speak on the night? You'll have five minutes to tell us about something: a project, a library, a technique, a story, or anything else about JavaScript, related tech (HTML, CSS, SVG, etc), or the wider world of web.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>AdjustWindowForFontSizeChange</key>
<true/>
<key>AllowClipboardAccess</key>
<false/>
<key>AnimateDimming</key>
<false/>
@larister
larister / showntell-2015.md
Last active November 10, 2015 09:56
Async International Show'n'tell 2015

[Async's][async] [2015 International Show n' Tell][event]

Thursday 5th November, 2015

  • [Full info on the Async website][event]
  • Sign up to attend [on the event's Lanyrd page][event-lanyrd].

Speakers gist

Would you like to speak on the night? You'll have five minutes to tell us about something: a project, a library, a technique, a story, or anything else about JavaScript, related tech (HTML, CSS, SVG, etc), or the wider world of web.