-
A `class_getter` with a block usually runs exactly once:
```crystal
module Foo
class_getter(x : Int32) { 1 }
# same as:
def self.x : Int32
if (x = @@x).nil?
@@x = 1
els…
-
I want a Slack channel (or whatever we are going to use the next time) where I can see a post saying "I've implemented data_files.py that has a lightning_problem(n) function that gives you the data, y…
fj128 updated
6 years ago
-
Taken from https://build.openmodelica.org/Documentation/FindFiles.log
```
Modelica_LinearSystems2.DiscreteStateSpace.'+'.html: Not found: Icons/Modelica_LinearSystems2.DiscreteStateSpace.' '.svg
…
tbeu updated
5 months ago
-
Running "dotnet test" with a test filter for a test case with spaces the following exception occurs:
dotnet test --settings ../../../build/.runsettings --no-build --logger "trx;LogFileName=C:\Temp\…
-
One thing I'd like to do with my justfiles is gating recipes like one use feature gating in rust.
```rust
#[cfg(feature="categories")]
```
I'd like to do the following in just:
```just
#[c…
-
This is the code from `ReactFiberNewContext.old.js`
https://github.com/facebook/react/blob/19092ac8c354b92c2e0e27b73f391571ad452505/packages/react-reconciler/src/ReactFiberNewContext.old.js#L319…
-
## 前言
前文提到了一个简单的 react 例子,结构如下所示
```javascript
ReactDOM.render(
Hello World!,
document.getElementById('container')
);
```
只是实在简单呀,缺少 state,缺少状态的变化,于是用另外一个例子来继续研究:
```javascript
class H…
-
# IndeterminateComponent
- 未指定类型的 `Component`
- 创建时期
- 调用 `ReactDOM.render App` 组件时会创建 `FiberRoot -> createHostRootFiber`,标记这个 `fiber` 的 `tag` 为 `HostRoot`
```js
function createFiberRoot(…
-
# React 톺아보기 - 05. Reconciler_2 | Deep Dive Magic Code
모든 설명은 v16.12.0 버전 함수형 컴포넌트와 브라우저 환경을 기준으로 합니다. 버전에 따라 코드는 변경될 수 있으며 클래스 컴포넌트는 설명에서 제외됨을 알려 드립니다. 6. Render phase Render phase는 변경된 상태 값을 반영한 wo…
-
![image](https://user-images.githubusercontent.com/17950406/108968557-e5206700-76bb-11eb-875d-7771daf8d4ae.png)
![image](https://user-images.githubusercontent.com/17950406/108968577-e94c8480-76bb-11e…