Sort of fixed table issue with CSS. Draft of Recommenders post.
The post needs the conversion to be handled a little better, but that's about it.
This commit is contained in:
parent
2488406615
commit
4b6ba97e1b
@ -59,3 +59,11 @@ div.info {
|
|||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
table td, table th {
|
||||||
|
padding: 0.5em;
|
||||||
|
# border-bottom: 0.5px solid black
|
||||||
|
}
|
||||||
|
table > thead > tr:last-child > * {
|
||||||
|
border-bottom: 2px solid black
|
||||||
|
}
|
||||||
|
|||||||
@ -48,3 +48,5 @@ wildly impractical, or a mere facade over what is already established.
|
|||||||
foresight.
|
foresight.
|
||||||
- [[https://www.theatlantic.com/magazine/archive/1945/07/as-we-may-think/303881/][As We May Think (Vannevar Bush)]]
|
- [[https://www.theatlantic.com/magazine/archive/1945/07/as-we-may-think/303881/][As We May Think (Vannevar Bush)]]
|
||||||
- "Do you remember a time when..." only goes so far.
|
- "Do you remember a time when..." only goes so far.
|
||||||
|
|
||||||
|
# Tools For Thought
|
||||||
|
|||||||
3824
drafts/2018-04-08-recommender-systems-1-export.md
Normal file
3824
drafts/2018-04-08-recommender-systems-1-export.md
Normal file
File diff suppressed because it is too large
Load Diff
1654
drafts/2018-04-08-recommender-systems-1.md
Normal file
1654
drafts/2018-04-08-recommender-systems-1.md
Normal file
File diff suppressed because it is too large
Load Diff
BIN
images/2018-04-08-recommenders/output_94_0.png
Normal file
BIN
images/2018-04-08-recommenders/output_94_0.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 222 KiB |
BIN
images/2018-04-08-recommenders/output_96_0.png
Normal file
BIN
images/2018-04-08-recommenders/output_96_0.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 232 KiB |
@ -54,39 +54,18 @@ over to some other code, whereas calling "whenever" means retaining
|
|||||||
control but queuing up some code to be run in the background
|
control but queuing up some code to be run in the background
|
||||||
asychronously (as much as possible).
|
asychronously (as much as possible).
|
||||||
|
|
||||||
- Calling within the same thread:
|
|-----------+-----------+-----------------------+-----------------------------------------------|
|
||||||
- Right now (i.e. turning control over):
|
| Call from | Call to | When/where | How |
|
||||||
- Coroutine from a function: Use the event loop's ~.run_*~
|
|-----------+-----------+-----------------------+-----------------------------------------------|
|
||||||
methods.
|
| Either | Function | Now, same thread | Normal function call |
|
||||||
- Coroutine from a coroutine: Use the ~await~ keyword.
|
| Function | Coroutine | Now, same thread | ~.run_*~ in event loop |
|
||||||
- Whenever (i.e. retain control, but run something else when
|
| Coroutine | Coroutine | Now, same thread | ~await~ |
|
||||||
possible or at some later time):
|
| Either | Function | Whenever, same thread | Event loop ~.call_*()~ |
|
||||||
- Calling a function: Use the event loop's ~.call_*()~
|
| Either | Coroutine | Whenever, same thread | Event loop ~.create_task()~ |
|
||||||
methods.
|
| | | | ~asyncio.ensure_future()~ |
|
||||||
- Calling a coroutine from a function: Use the event loop's
|
| Either | Function | Now, another thread | ~.run_in_executor()~ on ~ThreadPoolExecutor~ |
|
||||||
~.create_task()~ method, or ~asyncio.ensure_future()~.
|
| Either | Function | Now, another process | ~.run_in_executor()~ on ~ProcessPoolExecutor~ |
|
||||||
- Calling a function in another thread or another process: Use
|
|-----------+-----------+-----------------------+-----------------------------------------------|
|
||||||
~.run_in_executor()~ on ~ThreadPoolExecutor~ or
|
|
||||||
~ProcessPoolExecutor~, respectively.
|
|
||||||
|
|
||||||
# |-----------+-----------+-----------------------+-----------------------------------------------|
|
|
||||||
# | Call from | Call to | When/where | How |
|
|
||||||
# |-----------+-----------+-----------------------+-----------------------------------------------|
|
|
||||||
# | Either | Function | Now, same thread | Normal function call |
|
|
||||||
# | Function | Coroutine | Now, same thread | ~.run_*~ in event loop |
|
|
||||||
# | Coroutine | Coroutine | Now, same thread | ~await~ |
|
|
||||||
# | Either | Function | Whenever, same thread | Event loop ~.call_*()~ |
|
|
||||||
# | Either | Coroutine | Whenever, same thread | Event loop ~.create_task()~ |
|
|
||||||
# | | | | ~asyncio.ensure_future()~ |
|
|
||||||
# | Either | Function | Now, another thread | ~.run_in_executor()~ on ~ThreadPoolExecutor~ |
|
|
||||||
# | Either | Function | Now, another process | ~.run_in_executor()~ on ~ProcessPoolExecutor~ |
|
|
||||||
# |-----------+-----------+-----------------------+-----------------------------------------------|
|
|
||||||
|
|
||||||
# TODO: How do I make Pandoc render this table better? It's hardly
|
|
||||||
# usable right now because you can't see where a column starts and
|
|
||||||
# ends
|
|
||||||
|
|
||||||
# TODO: Or maybe use http://ditaa.sourceforge.net/ and babel?
|
|
||||||
|
|
||||||
* Futures & Coroutines
|
* Futures & Coroutines
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user