Skip to content

Instantly share code, notes, and snippets.

View bumbeishvili's full-sized avatar
🏠
Working from home

David Bumbeishvili bumbeishvili

🏠
Working from home
View GitHub Profile
@bumbeishvili
bumbeishvili / index.html
Created April 22, 2018 15:41 — forked from johnburnmurdoch/index.html
Javascript/canvas city generator
<!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<title>Canvas City</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<canvas></canvas>
function convert(word, toGeorgian) {
var geoToLatinBinding = [
'a', 'b', 'g', 'd', 'e', 'v', 'z', 'T', 'i', 'k', 'l', 'm', 'n', 'o', 'p', 'zh', 'r', 's', 't', 'u', 'f', 'q', 'R', 'y', 'S', 'C', 'c', 'Z', 'w', 'W', 'x', 'j', 'h'
];
var latinToGeoBinding = [
'A', 'B', 'ჩ', 'D', 'E', 'F', 'G', 'H', 'I', 'ჟ', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'ღ', 'შ', 'თ', 'U', 'V', 'ჭ', 'X', 'Y', 'ძ', '[', '\\', ']', '^', '_', '`', 'ა', 'ბ', 'ც', 'დ', 'ე', 'ფ', 'გ', 'ჰ', 'ი', 'ჯ', 'კ', 'ლ', 'მ', 'ნ', 'ო', 'პ', 'ქ', 'რ', 'ს', 'ტ', 'უ', 'ვ', 'წ', 'ხ', 'ყ', 'ზ'
];
this.toLatin = function(geoWord) {
return convert(geoWord, geoToLatinBinding, 'ა', 'ჰ', 4304);
@bumbeishvili
bumbeishvili / .block
Created March 26, 2018 13:06 — forked from rpgove/.block
Group-in-a-box layout
license: gpl-3.0
height: 302
@bumbeishvili
bumbeishvili / .block
Created March 22, 2018 12:14 — forked from mbostock/.block
Convex Hull
license: gpl-3.0
@bumbeishvili
bumbeishvili / README.md
Created March 21, 2018 10:13 — forked from bmershon/README.md
Holes in Sensor Networks

Sensor networks allow for regions to be scanned for the presence of a particular object. Many small devices, each capable of making some measurements, can be distributed over the desired region. The types of measurements a sensor might make include taking temperature readings, detecting electromagnetic frequencies, and recording sound levels. A more complex sensor could process video footage and find valuable information automatically.

A critical consideration for sensor networks is the “blanket” of coverage that is produced. Wherever holes exist in this coverage, it is possible to miss critical information in the region we would like to scan.

If we have sophisticated sensors capable of measuring their exact position, then it is a fairly easy task to compute the coverage of the network. However, if we have simple sensors which can only record local information, then we are

@bumbeishvili
bumbeishvili / .block
Created March 21, 2018 09:57 — forked from bmershon/.block
Polygon Clipping Degeneracies
license: gpl-3.0
height: 600
@bumbeishvili
bumbeishvili / .block
Created March 16, 2018 10:44 — forked from HarryStevens/.block
Bouncing Balls
license: gpl-3.0
@bumbeishvili
bumbeishvili / .block
Created March 15, 2018 10:24 — forked from enjalot/.block
Particle viSFest
license: mit
@bumbeishvili
bumbeishvili / README.md
Created March 14, 2018 10:15 — forked from 1wheel/README.md
rounded-corner-curve

Levin Dixon asked how to create a path with rounded corners. The provided curves in d3 adjust the entire path, not just area around the data points.

This might look a better with an A command instead of C, but circles are hard.

@bumbeishvili
bumbeishvili / .block
Last active March 13, 2018 23:10
Pie charts labels
license: mit