Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
learning

Alexander Milevski w8r

💭
learning
View GitHub Profile
@w8r
w8r / README.md
Created Dec 14, 2019 — forked from benzguo/README.md
Force Editor + Pan/Zoom
View README.md

Drag from an existing node to add a new node or link. Click to select/deselect nodes/links. Hit the DELETE key to remove the selected node or link. Drag to pan. Scroll to zoom.

Built with D3.js.

@w8r
w8r / Bunny.js
Created Jul 30, 2019 — forked from bberak/Bunny.js
How to use regl in React or React Native
View Bunny.js
import React, { PureComponent } from "react";
import { StyleSheet } from "react-native";
import ReglView from "./ReglView";
import mat4 from "gl-mat4";
import bunny from "bunny";
export default class Bunny extends PureComponent {
drawCommand = regl => {
return regl({
vert: `
View turf_intersect_issue.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@w8r
w8r / .gitignore
Created Jan 10, 2018
OpenLayers, Rollup, and Closure Compiler
View .gitignore
/node_modules/
bundle.js
@w8r
w8r / bresenham.c
Created Jan 10, 2018 — forked from lyjia/bresenham.c
bresenham.c
View bresenham.c
/********************************************************************
* *
* Curve Rasterizing Algorithm *
* *
********************************************************************/
/**
* @author Zingl Alois
* @date 22.08.2016
* @version 1.2
@w8r
w8r / .block
Created Sep 26, 2017 — forked from mbostock/.block
Collision Detection
View .block
license: gpl-3.0
@w8r
w8r / README.md
Created Sep 26, 2017 — forked from eweitnauer/README.md
Quadtree 3
View README.md

This example demonstrates how to take the size of objects into account when selecting objects efficiently with a quadtree. Selected objects are shown in red, visited but not selected objects are shown in yellow. The efficiency depends on the biggest width and biggest height among all object. It is assumed that all objects are rectangle-shaped.

Example series:

Based on Mike Bostock's quadtree example.

@w8r
w8r / README.md
Created Sep 13, 2017 — forked from nitaku/README.md
Stability of Peano curve
View README.md

This example shows the stability of the Peano space-filling curve: each order of the curve can be overlapped to each other (click the canvas to see it).

By stability, we indicate the property of the curve to yield stable layouts, suitable for treemaps that follow our data cartography methodology. According to it, a slight change in input data should be reflected only by a slight change in the map. An unstable curve (like the classical Hilbert curve, see this example) could cause a map to flip even if a single cell is added.

@w8r
w8r / .block
Created Aug 21, 2017 — forked from mbostock/.block
Bonne
View .block
license: gpl-3.0
height: 900
@w8r
w8r / .block
Created Feb 23, 2017 — forked from enjalot/.block
Rainbow Pack (adapted for d3.unconf badge)
View .block
license: gpl-3.0
height: 960
You can’t perform that action at this time.