Skip to content

Instantly share code, notes, and snippets.

Avatar

Alastair Lockie larister

  • Brandwatch
  • Brighton
View GitHub Profile
View machine.js
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: [
View machine.js
const toggleSubDialogOpen = assign({
subDialogOpen: context => !context.subDialogOpen
});
const allowOpenSubDialog = assign({
subDialogOpen: () => false
});
const canOpenSubDialog = context => !context.subDialogOpen;
View machine.js
const toggleSubDialogOpen = assign({
subDialogOpen: context => !context.subDialogOpen
});
const canOpenSubDialog = context => !context.subDialogOpen;
const hasSearchStates = {
type: 'parallel',
states: {
unsavedChanges: {
View Async Show'n'Tell 2018.md

[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 Nov 9, 2017
showntell-2017.md
View 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.

View Keybase proof
### 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 Nov 9, 2016
Async International Show'n'Tell 2016
View showntell-2016.md

[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 Apr 28, 2016
Async Spring Show'n'Tell 2016
View spring-showntell-2016.md

[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.

View com.googlecode.iterm2.plist
<?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 Nov 10, 2015
Async International Show'n'tell 2015
View showntell-2015.md

[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.