Skip to content

Instantly share code, notes, and snippets.

@mkarajohn
mkarajohn / collapsed-stacked-inlines.js
Created Jan 11, 2021
Django Collapsed Stacked Inlines
View collapsed-stacked-inlines.js
/* collapsed_stacked_inlines.js */
/* Created in May 2009 by Hannes Rydén */
/* Use, distribute and modify freely */
// Original script
// https://djangosnippets.org/snippets/1492/
// 2021 updates by Dimitris Karagiannis
// @MitchKarajohn
View machine.js
const fileMachine = Machine(
{
id: 'file',
initial: 'idle',
context: null,
states: {
idle: {
on: {
START: 'pending',
},
View machine.js
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
// - XState (all XState exports)
View machine.js
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
// - XState (all XState exports)
@mkarajohn
mkarajohn / cloudSettings
Last active Sep 12, 2018
Visual Studio Code Settings Sync Gist
View cloudSettings
{"lastUpload":"2018-05-05T00:31:17.192Z","extensionVersion":"v2.9.2"}