上一页 1 ··· 186 187 188 189 190 191 192 193 194 ··· 491 下一页
摘要: import { createMachine, assign, interpret } from "xstate"; const elBox = document.querySelector("#box"); const elBody = document.body; const assignPoi 阅读全文
posted @ 2020-07-21 18:46 Zhentiw 阅读(196) 评论(0) 推荐(0)
摘要: 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 阅读全文
posted @ 2020-07-21 15:43 Zhentiw 阅读(212) 评论(0) 推荐(0)
摘要: 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 阅读全文
posted @ 2020-07-21 15:35 Zhentiw 阅读(171) 评论(0) 推荐(0)
摘要: We have a message app: function App() { const messageDisplayRef = React.useRef() .... const scrollToTop = () => messageDisplayRef.current.scrollToTop( 阅读全文
posted @ 2020-07-21 15:26 Zhentiw 阅读(331) 评论(0) 推荐(0)
摘要: 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 阅读全文
posted @ 2020-07-20 22:36 Zhentiw 阅读(192) 评论(0) 推荐(0)
摘要: Let's say we have a State Machine Model: import { createMachine, interpret } from "xstate"; const elBox = document.querySelector("#box"); const setPoi 阅读全文
posted @ 2020-07-20 22:25 Zhentiw 阅读(174) 评论(0) 推荐(0)
摘要: 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 阅读全文
posted @ 2020-07-17 20:52 Zhentiw 阅读(259) 评论(0) 推荐(0)
摘要: #!/usr/bin/python import random import numpy import matplotlib.pyplot as plt import pickle from outlier_cleaner import outlierCleaner from sklearn.lin 阅读全文
posted @ 2020-07-16 23:25 Zhentiw 阅读(301) 评论(0) 推荐(0)
摘要: import { createMachine, interpret } from "xstate"; const elBox = document.querySelector("#box"); const machine = { initial: "inactive", states: { inac 阅读全文
posted @ 2020-07-16 18:48 Zhentiw 阅读(173) 评论(0) 推荐(0)
摘要: State + Event + Interpreter: const machine = { initial: "idle", states: { idle: { on: { FETCH: "pending", }, }, pending: { on: { RESOLVE: "resolved", 阅读全文
posted @ 2020-07-15 03:17 Zhentiw 阅读(180) 评论(0) 推荐(0)
上一页 1 ··· 186 187 188 189 190 191 192 193 194 ··· 491 下一页