Skip to content

Instantly share code, notes, and snippets.

View petrosh's full-sized avatar

Alex Petrosh petrosh

View GitHub Profile
{}
{}
/*******************
* intoTheWoods.js *
*******************
*
* Ah, you're out of the woods now. Or into the woods, as the
* case may be.
*
* So take a deep breath, relax, and remember what you're here
* for in the first place.
*
@petrosh
petrosh / player
Last active May 4, 2018 11:46
Traveller
Nemo Shagal
@petrosh
petrosh / README.md
Created September 7, 2017 09:18 — forked from glebm/RenderWhitespace.md
Render whitespace on GitHub

Are they tabs? Are they spaces? How many? Never wonder again!

Copy-paste the file below into the console to see the whitespace like this:

whitespace

Also available as a bookmarklet:

Farmhouse holiday: Piana delle Selve
Type: Farm
Nation: Italy
Region: Umbria
Common: Amelia
Location: Piana delle Selve (lat 42.515773, long 12.366911)
Buildings size: 1530 sqm
Land size: 40.91 ha
Description:
@petrosh
petrosh / index.html
Last active July 15, 2017 21:05
prova jquery
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('p').append($().jquery);
$.ajax({
@petrosh
petrosh / .block
Last active November 8, 2019 08:18 — forked from TBD/.block
timeline chart with zoom
license: mit
@petrosh
petrosh / README.md
Created May 27, 2017 11:29 — forked from dwtkns/README.md
Faux-3d Shaded Globe

Faux-3d SVG globe using d3.geo.orthographic and a few radial gradients. Labels offset or hidden based on radians from current map center to enhance the effect.

Uncomment svg.append("g").attr("class","countries") for hover-able country outlines.

@petrosh
petrosh / README.md
Last active May 18, 2017 15:32 — forked from mbostock/README.md
Quadtree

This example demonstrates accelerated two-dimensional filtering enabled by d3-quadtree. A quadtree recursively subdivides square cells into four equal-sized subcells. Each leaf node of the quadtree contains a single point. If a given quadtree cell does not intersect the brush extent, then none of the points contained in that subtree can be selected, and thus do not need to be scanned. Above, orange indicates points that are scanned but not selected. Without a quadtree, all points would need to be scanned!