Welcome to the interactive tutorial on how to use side-effect "operators" in MobX! Over the course of the next three samples, you'll learn (and be able to explore) exactly how autorun
, when
and reaction
work, and when/why you would use them when building reactive applications.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"scripts": [ | |
"react", | |
"react-dom" | |
], | |
"styles": [ | |
"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.css" | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
// import React from 'react'; | |
const REACT_VERSION = React.version; | |
function Todo({ todo, index, markTodo, removeTodo }) { | |
return ( | |
<div className="todo"> | |
<span style={{ textDecoration: todo.isDone ? "line-through" : "" }}> | |
{todo.text} - {todo.type} |
understand routing table entry
An explanation on the USB virtual ethernet
Knowing simultaneously
these three things for failing and working circumstances would be quite useful.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env awk -f | |
# Get the Min, Max, Median, and Mean of a Dataset | |
NR==1 { max=$1; min=$1 } | |
{ | |
sum += $1 | |
sumsq += ($1)^2 | |
$1 < min ? min = $1 : 0 | |
$1 > max ? max = $1 : 0 | |
} | |
END { |
Some day, I was building plyvel
in macOS(Apple Silicon). plyvel
is the interface to LevelDB
and build a Python Extension
for using the leveldb
C++ library. In that building process, I found:
❯ python setup.py build_ext -i -n
running build_ext
skipping 'src/plyvel/_plyvel.cpp' Cython extension (up-to-date)
building 'plyvel._plyvel' extension
creating build
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
So you've cloned somebody's repo from github, but now you want to fork it and contribute back. Never fear! | |
Technically, when you fork "origin" should be your fork and "upstream" should be the project you forked; however, if you're willing to break this convention then it's easy. | |
* Off the top of my head * | |
1. Fork their repo on Github | |
2. In your local, add a new remote to your fork; then fetch it, and push your changes up to it | |
git remote add my-fork git@github...my-fork.git |