
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
tessellatron
Advanced tools
Tessellatron creates graphs (represented by json structures) with tesselating spacial patterns.
Maze.map.dimensions
This property shows how long each dimension is.
For example, a 2D-square map might be 17 cells wide and 17 cells long, represented by the array [17,17]
.
Maze.map.degree
Maze.map.degree
notes the number of dimensions.
It is equal to the length of the Maze.map.dimension
array.
Maze.map.magnitudes
For each dimension, there is a magnitude associated with it. This represents how far apart each Cell is for a row, column, stack etc. For example, moving east or west one unit requires offsetting a Cell ID by ±1. Moving north or south one unit might require offsetting a Cell ID by ±17.
Maze.map.size
Maze.map.size
equals the product of all the dimensions.
It is also equal to the length of the Maze.map.data
array.
Maze.map.data
This property holds all the cells in a particular order.
Using the index of the cell, the Maze
class can calculate its neighbors,
its coordinates, and whether or not has a boundary nearby.
Maze.compass.rose
The Compass Rose takes magnitudes and assigns them to various directions, and their reverse magnitude to respective antipodes.
Maze.compass.directions
This property describes all valid directions in a Set. A direction is a specially named vector. For example, North and South are both directions, and are also antipodes of one another.
Maze.compass.antipodes
Usually, a direction can be associated with an antipode. An antipode is also a direction. Literally speaking, an antipode is the "Polar Opposite" of something, especially when dealing with directions or coordinates.
Maze.holdsIndex()
Confirms that a Cell ID fits within the boundaries of the maze.
Maze.holdsNeighbors()
Confirms that two Cell IDs represent adjoined Cells.
Maze.connectPassage()
Adds a passageway between two cells. It takes in a direction and two Cell IDs. The first cell, cell01, gains a passage in the given direction. Likewise, cell02 gains a passage in the antipode of the given direction.
Maze.connectNeighbor()
Adjoins two cells as neighbors. It takes in a direction and two Cell IDs. The given id02 index becomes a neighbor of cell01 in the given direction. Likewise, id01 becomes a neighbor of cell02 in the antipode of the given direction.
Maze.findNeighborsOf()
Calculates and returns all the valid neighbors of a given Cell ID.
Maze.findCoordinates()
Calculates and returns the coordinates of the given Cell IDs.
Maze.findTensorSlice()
Calculates valid Cell IDs based on the given coordinates.
Cell.id
Each cell has a unique ID. The ID matches the Cell's index or location in a map-data array, which holds all the cells.
Cell.status
This property is for use with algorithms.
When initialized, Cell.status
starts as "unvisited".
As the algorithm processes each cell, the status switches between "active" and "passive".
There can only be one or zero "active" cells at a time.
When the status switches to "complete", the Cell's properties should not change again.
In summary, Cell.status
can be one of four values:
Cell.neighbors
Cell.neighbors
is a dictionary of nearby Cell IDs.
The keys in this dictionary are directions, as in north, south, east, and west.
Thus, a neighboring Cell ID is associated with a direction in which it can be accessed.
If the neighboring Cell in question is out-of-bounds, then a nulls value is used instead of a Cell ID.
Cell.passages
Cell.passages
is a dictionary of truthy values that represent passages.
The keys in this dictionary are directions, as in north, south, east, and west.
Thus, a passage is associated with a direction.
A true value indicates an accessible neighbor. Using the direction-passage pair, we know whether a neighbor is accessible or not.
Cell.hasPath()
Determines if there are any true values in passages.
Cell.hasWall()
Determines if there are any false values in passages.
FAQs
Tessellatron creates graphs (represented by json structures) with tesselating spacial patterns.
The npm package tessellatron receives a total of 0 weekly downloads. As such, tessellatron popularity was classified as not popular.
We found that tessellatron demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.