"Panel references" means we using a unique identifier to track which panel we've selected, whether that be the page name, an element reference, or a panel reference.
"Numeric indices" means we use an integer index.
diff --git b/Modules/Build.lua a/Modules/Build.lua | |
index 5fc85bf2..e84397b6 100644 | |
--- b/Modules/Build.lua | |
+++ a/Modules/Build.lua | |
@@ -602,9 +602,19 @@ function buildMode:Init(dbFileName, buildName, buildXML, convertBuild) | |
-- Initialise class dropdown | |
for classId, class in pairs(self.latestTree.classes) do | |
+ local ascendancies = {} | |
+ -- Initialise ascendancy dropdown |
[data-link-title^="[[interval]]:"], [data-link-title^="[[factor]]:"] { | |
display: none; | |
} | |
[data-link-title^="[[factor]]:"] ~ [data-link-title]:last-child::before { | |
font-style: italic; | |
margin-right: 6px; | |
padding: 3px 6px; | |
border-radius: 12px; | |
font-size: smaller; | |
white-space: nowrap; |
"Panel references" means we using a unique identifier to track which panel we've selected, whether that be the page name, an element reference, or a panel reference.
"Numeric indices" means we use an integer index.
import {findLast, last} from 'lodash' | |
import {Selectors} from 'src/core/roam/selectors' | |
import {assumeExists} from 'src/core/common/assert' | |
import {BlockElement, BlockId, RoamBlock} from 'src/core/features/vim-mode/roam/roam-block' | |
import {relativeItem} from 'src/core/common/array' | |
export type PanelId = number | |
type PanelElement = HTMLElement |
import Control.Monad | |
main = putStrLn $ show $ powerset "abc" | |
-- prints ["abc","ab","ac","a","bc","b","c",""] | |
powerset :: [a] -> [[a]] | |
powerset = filterM (const [True, False]) | |
-- see http://evan-tech.livejournal.com/220036.html |
main = putStrLn $ merge_sort "0553241" -- prints 0123455 | |
merge_sort :: (Ord a) => [a] -> [a] | |
merge_sort [] = [] | |
merge_sort [x] = [x] | |
merge_sort xs = merge (merge_sort $ evens xs) (merge_sort $ odds xs) | |
merge :: (Ord a) => [a] -> [a] -> [a] | |
merge xs [] = xs | |
merge [] ys = ys |
import Data.Char (toUpper) | |
-- space is high priority function application: | |
-- f x = f(x) in other languages | |
-- functions are defined like this: | |
-- f x = x * 2 | |
-- is equivalent to | |
-- def f(x): return x * 2 |
# This Dockerfile starts from a base ubuntu 12.04 image and installs | |
# a full desktop ROS hydro. | |
# | |
# It also creates a catkin workspace for a single user named YOURNAME | |
# with password YOURPASSWORD. | |
# | |
# GUI applications in the container will connect to the host's X11 server | |
# by mounting the .X11-unix folder on the host OS. I have no idea if this | |
# works on Mac if Windows. | |
# (http://fabiorehm.com/blog/2014/09/11/running-gui-apps-with-docker/) |