React + D3 exploration with the force layout:
- React for structure
- D3 for data calculation
- D3 for rendering
Pro:
- The viz scales!
- Use all the d3 functions!
Con:
| scrolling: yes | |
| license: MIT |
| import bpy | |
| from random import randint | |
| class Monkey(object): | |
| def __init__(self, location=(0,0,0)): | |
| self.location = location |
| import bpy | |
| import math | |
| class flower(object): | |
| def __init__(self): | |
| # mesh arrays | |
| verts = [] | |
| faces = [] |
| import bpy | |
| class Robot(object): | |
| def __init__(self): | |
| pass | |
| def addBody(self, value=(0, 0, 0)): | |
| #body |
| sqlite3 | |
| .read schema.sql | |
| .read insert.sql | |
| .tables | |
| .schema | |
| .save sakila.db | |
| .quit | |
| SELECT name FROM sqlite_master WHERE type='table' ORDER BY name; |
| @startuml | |
| skinparam classFontName Century | |
| start | |
| :canvas = document.getElementById("canvas"); | |
| note left: <canvas id="canvas"></canvas> | |
| :gl = canvas.getContext("webgl");; |
React + D3 exploration with the force layout:
Pro:
Con:
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <title>Add React in One Minute</title> | |
| </head> | |
| <body> | |
| <h2>Add React in One Minute</h2> | |
| <p>This page demonstrates using React with no build tooling.</p> |
| -- A basic GDSII reader that reads from standard input and writes serialized | |
| -- text to standard output | |
| local gdsii = {} | |
| gdsii.types = { | |
| [0] = "HEADER", | |
| [1] = "BGNLIB", | |
| [2] = "LIBNAME", | |
| [3] = "UNITS", |
| @startuml | |
| sprite $businessProcess [16x16/16] { | |
| FFFFFFFFFFFFFFFF | |
| FFF000000000FFFF | |
| FFFFFFFFFFFFFFFF | |
| FFFFFFFFFFFFFFFF | |
| FFFFFFFFFF0FFFFF | |
| FFFFFFFFFF00FFFF | |
| FF00000000000FFF | |
| FF000000000000FF |