摘要:
Garuded Transitions, it prevents the state goes from current sate to its target state is condition is falsy. const machine = createMachine( { initial: 阅读全文
摘要:
Right now, we're getting the ID route parameter off the of the parent route. This is because we want the info and items components to use the ID of th 阅读全文
摘要:
Using the https://developer.mozilla.org/en-US/docs/Web/API/Web_Speech_API(Web Speech API) it is possible to use speech synthesis in the browser withou 阅读全文
摘要:
Let's we want to keep tracking how many times on element was click inside Machine model. We can use 'context' & 'assign' function. import { assign, cr 阅读全文
摘要:
Let's say we have a State Machine Model: import { createMachine, interpret } from "xstate"; const elBox = document.querySelector("#box"); const setPoi 阅读全文
摘要:
The k-means algorithm captures the insight that each point in a cluster should be near to the center of that cluster. It works like this: first we cho 阅读全文
摘要:
#!/usr/bin/python import random import numpy import matplotlib.pyplot as plt import pickle from outlier_cleaner import outlierCleaner from sklearn.lin 阅读全文