How do you store JD data in exportable plain-text?
000 Project
----------- // Optional, semantically ignored.
10-19 Area
// Linked to play.jd.com. | |
// Do not delete or edit. | |
const jdLanguage = Machine({ | |
id: 'jdLanguage', | |
initial: 'start', | |
states: { | |
start: { | |
on: { | |
FIND_AREA: 'area_detected', |
// Working version, i.e. not v1.2.0 | |
// Updated 2020-01-23 11:14 | |
// This is the plain-JS version for easy copy/pasting & linter | |
// formatting. Copy back to 22.14.md for publishing. | |
// https://xstate.js.org/viz/?gist=e22371fb0c8da1521f5e2873076395cb | |
const engineRoom = Machine({ | |
id: "application", |
// v1.2.0 2019-12-15 | |
const engineRoom = Machine({ | |
id: 'application', | |
type: 'parallel', | |
states: { | |
Application: { | |
initial: 'start', |
Add or Edit an Area | |
Start - blank fields - Return & button are disabled | |
user types a character -> checkInput running | |
Start* | |
No error shown - Return & button are enabled | |
user types a character or presses Return or button -> checkInput running | |
checkInput running | |
number is blank -> Number is blank | |
number is a duplicate -> Number is a duplicate | |
number is badly formatted -> Number is badly formatted |
// I'll explain what Rebase is for later | |
import Rebase from 're-base'; | |
// Note we import from 'firebase/app' not just 'firebase'. This avoids a nagging console | |
// warning ("It looks like you're using the development build of the Firebase JS SDK.") | |
import firebase from 'firebase/app'; | |
// Similarly, on line 15 we need the database module, so that's exactly what we specify here. | |
require('firebase/database'); |
# https://johnnydecimal.com | |
cjdfunction() { | |
pushd ~/Dropbox/*/*/${1}* # ~/Dropbox is my root folder, change to suit yours. | |
} | |
export cjdfunction | |
alias cjd='cjdfunction' # Or any other alias you prefer. |
I hereby claim:
To claim this, I am signing this object: