Skip to content

Instantly share code, notes, and snippets.

Antonin Stefanutti astefanutti

Block or report user

Report or block astefanutti

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@astefanutti
astefanutti / README.md
Created Dec 23, 2015 — forked from mbostock/.block
Solar Path
View README.md

This chart shows the path of the Sun in the sky today based on your current location. The red dot represents the current apparent position of the Sun in terms of azimuth and elevation.

The outer black circle represents the horizon, where the elevation of the Sun is 0°. If the Sun is outside this circle, it is below the horizon. (This means it’s dark outside, though note that some definitions of twilight extend as far as 18° below the horizon.) Where the path intersects the horizon determines sunrise and sunset. The inner concentric circles represent higher solar elevations.

The radiating lines of the graticule represent azimuth. For example, 0° azimuth means that the Sun is due North of your current location. The azimuth tells you the direction of shadows cast by the Sun, while the elevation determines their length.

@astefanutti
astefanutti / README.md
Created Dec 23, 2015 — forked from mbostock/.block
Solar Oscillator
View README.md

In honor of the vernal equinox, this animation shows the progression of the solar terminator at approximately 5.2 million times its normal rate. Each frame of the animation advances twenty-four hours ahead of real-time so that the seasonal changes of the solar terminator are visible. The blue region is night; the white region is day. Best accompanied with the theme song from Buck Rogers.

@astefanutti
astefanutti / README.md
Created Dec 23, 2015 — forked from mbostock/.block
Solar Analemmas
View README.md

Hourly solar analemmas (ignoring daylight savings time) as seen from San Francisco in 2014.

@astefanutti
astefanutti / doyle.js
Created Dec 23, 2015 — forked from robinhouston/doyle.js
Doyle spiral explorer
View doyle.js
/* Numerics for Doyle spirals.
* Robin Houston, 2013
*/
(function() {
var pow = Math.pow,
sin = Math.sin,
cos = Math.cos,
pi = Math.PI;
@astefanutti
astefanutti / index.html
Created Dec 23, 2015 — forked from robinhouston/index.html
Double stumbling blocks
View index.html
<!DOCTYPE html>
<meta charset="utf-8">
<title>Double stumbling blocks</title>
<script src="http://bl.ocks.org/robinhouston/raw/6096562/rAF.js" charset="utf-8"></script>
<script src="http://bl.ocks.org/robinhouston/raw/6096562/doyle.js" charset="utf-8"></script>
<canvas width=960 height=500></canvas>
<script>
// Initialisation
var canvas = document.getElementsByTagName("canvas")[0],
context = canvas.getContext("2d");
You can’t perform that action at this time.