上一页 1 ··· 193 194 195 196 197 198 199 200 201 ··· 498 下一页
摘要: 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 阅读(181) 评论(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 阅读(332) 评论(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 阅读(179) 评论(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 阅读(262) 评论(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 阅读(304) 评论(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 阅读(177) 评论(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 阅读(183) 评论(0) 推荐(0)
摘要: Let's say we have a command line application: const { Task } = require("../../libs/types"); const { save, all } = require("../../libs/db"); const { la 阅读全文
posted @ 2020-07-07 19:35 Zhentiw 阅读(226) 评论(0) 推荐(0)
摘要: An ancient problem of centering items with CSS is finally (!) solved! In this quick lesson we're going to learn how to use place-items CSS property in 阅读全文
posted @ 2020-07-06 14:31 Zhentiw 阅读(117) 评论(0) 推荐(0)
上一页 1 ··· 193 194 195 196 197 198 199 200 201 ··· 498 下一页