nustack

Snippets

What / inserts. Grouped as the menu groups them.

What / inserts. Grouped as the menu groups them.

Content

NameWhat
TextText a person reads and edits, markdown kept in the cell's state.
TableAn editable data table, rows and columns kept in the cell's state.

Text

text · searchable · module nuverse.snippets.prose

Text a person reads and edits, markdown kept in the cell's state.

The text snippet: a text editor cell, its text kept in the cell's state.

Registered under TEXT, it is the space's text snippet: typing into an empty line starts one, and its cells are the plane's text cells.

Ops

OpWhat
set_textReplace a text cell's text, markdown. A no-op when the cell is missing.
text_ofA text cell's text, "" before anything is written. Bare: wrap it in ops.snapshot.

Table

table · module nuverse.snippets.table

An editable data table, rows and columns kept in the cell's state.

The table snippet: an editable data table, its rows kept in the cell's state.

Inputs

NameWhat
Text inputA line of text kept in the cell's state.
NumberA number kept in the cell's state, with its bounds and step under Config.
SliderA number on a slider kept in the cell's state, its range under Config.
SwitchAn on or off kept in the cell's state.
SelectOne option of a list kept in the cell's state, its options under Config.
DateA date kept in the cell's state, picked from a calendar.

Text input

text_input · searchable · module nuverse.snippets.text_input

A line of text kept in the cell's state.

The text_input snippet: a text input cell, its value kept in the cell's state.

Ops

OpWhat
set_valueSet a text input cell's value. A no-op when the cell is missing.
value_ofA text input cell's value, "" before one is set. Bare: wrap it in ops.snapshot.

Number

number · searchable · module nuverse.snippets.number

A number kept in the cell's state, with its bounds and step under Config.

The number snippet: a number input cell, its value kept in the cell's state.

Ops

OpWhat
set_valueSet a number cell's number. A no-op when the cell is missing.
value_ofA number cell's number, 0.0 before one is set. Bare: wrap it in ops.snapshot.

Slider

slider · searchable · module nuverse.snippets.slider

A number on a slider kept in the cell's state, its range under Config.

The slider snippet: a slider cell, its value kept in the cell's state.

Ops

OpWhat
set_valueSet a slider cell's value. A no-op when the cell is missing.
value_ofA slider cell's value, 0.0 before one is set. Bare: wrap it in ops.snapshot.

Switch

switch · searchable · module nuverse.snippets.switch

An on or off kept in the cell's state.

The switch snippet: a switch cell, its value kept in the cell's state.

Ops

OpWhat
set_valueSet a switch cell's value. A no-op when the cell is missing.
value_ofA switch cell's value, False before one is set. Bare: wrap it in ops.snapshot.

Select

select · searchable · module nuverse.snippets.select

One option of a list kept in the cell's state, its options under Config.

The select snippet: a select cell, its value kept in the cell's state.

Ops

OpWhat
set_valueSet a select cell's value. A no-op when the cell is missing.
value_ofA select cell's value, "" before one is set. Bare: wrap it in ops.snapshot.

Date

date · searchable · module nuverse.snippets.date

A date kept in the cell's state, picked from a calendar.

The date snippet: a date cell, its value kept in the cell's state.

Ops

OpWhat
set_valueSet a date cell's value. A no-op when the cell is missing.
value_ofA date cell's value, EMPTY before one is set. Bare: wrap it in ops.snapshot.

Code

NameWhat
ProgramA code cell that writes one key in its own state and ends.

Program

program · module nuverse.snippets.program

A code cell that writes one key in its own state and ends.

The program snippet: what a fresh code cell starts as.

Debugging

NameWhat
LensBrowses the whole space, or any shape in it, as cascading columns.
Plane lensBrowses the plane the cell sits on as cascading columns.
Cell lensBrowses one cell of this plane, picked from a dropdown.

Lens

lens · module nuverse.snippets.lens

Browses the whole space, or any shape in it, as cascading columns.

The lens snippet: a cell that browses a shape as cascading columns.

Plane lens

plane_lens · module nuverse.snippets.plane_lens

Browses the plane the cell sits on as cascading columns.

The plane_lens snippet: a lens on the plane the cell sits on.

Built on the lens snippet's code, pointed at its own plane.

Cell lens

cell_lens · module nuverse.snippets.cell_lens

Browses one cell of this plane, picked from a dropdown.

The cell_lens snippet: a lens on one cell of this plane, picked from a dropdown.

Examples

NameWhat
TickerA stat tile counting the seconds its plane was open.
Password generatorA strong password, drawn again whenever its length or characters change.
Unit converterLength, mass, temperature and time: type on either side, the other follows.

Ticker

ticker · module nuverse.snippets.ticker

A stat tile counting the seconds its plane was open.

The ticker snippet: a cell that draws and counts.

Password generator

password · module nuverse.snippets.password

A strong password, drawn again whenever its length or characters change.

The password snippet: a password generator kept in the cell's state.

Unit converter

converter · module nuverse.snippets.converter

Length, mass, temperature and time: type on either side, the other follows.

The converter snippet: a unit converter, either side editable.

On this page