- layout-component (ornament fn)
- handle CSS part
- leverage query syntax to assign CSS to child structure
- widget-component (ornament fn)
- small, reusable, and self-contained UI elements)
- presenter-fn (ordinary fn)
- handle pure html structure (withouth CSS)
- example:
fail-page
- container-fn (ordinary fn)
- handle the data && logic behavior
This file contains hidden or 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
| ## 假設您將書分成三個部分(Part 1, Part 2, Part 3),這是您給第一個部分(Part 1)的提示: | |
| ``` | |
| 以下是一本專業書的第${n}部分。請你閱讀這段內容,並幫助我分析這段文字所預設的「隱含讀者」(implied reader)是什麼樣的人? | |
| 具體來說,請你從以下幾個方面來描述: | |
| 1. **讀者的背景知識:** 這位讀者可能具備哪些專業知識?是初學者、中級學習者還是該領域的專家? | |
| 2. **讀者的學習目標:** 這位讀者想從書中獲得什麼?是想解決特定問題、學習新技能還是獲取宏觀知識? | |
| 3. **讀者的思維模式與偏好:** 讀者可能習慣什麼樣的論證方式?是喜歡條列式說明、圖表輔助還是需要大量實例? | |
| 4. **基於以上分析,請你綜合描述這位「隱含讀者」的完整輪廓。** |
- Q1
如何在 neovim 裡註冊一個新的 filetype
- Q2
如果建立了一個新的 neovim plugin,比方說,叫做 conjure-piglet-client
該 plugin 用 fnl 寫多數的邏輯。
In JVM Clojure, Exceptions are for operating errors ("something went wrong") and Assertions are for programmer and correctness errors ("this program is wrong").
An assert might be the right tool if throwing an Exception isn't enough. Use
them when the assertion failing means
- there's a bug in this program (not a caller)
- what happens next is undefined
This file contains hidden or 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 numpy as np | |
| import matplotlib.pyplot as plt | |
| # 假設參數 | |
| lambda_visits = 5 # 主動拜訪次數的均值 | |
| lambda_leads = 3 # 主動找上門的客戶數均值 | |
| alpha = 0.1 # 主動拜訪轉換率 | |
| beta = 0.5 # 主動找上門轉換率 | |
| # 蒙地卡羅模擬 |
NewerOlder