Skip to content

Instantly share code, notes, and snippets.

View nedgar's full-sized avatar

Nick Edgar nedgar

View GitHub Profile
@nedgar
nedgar / Ottawa-airport-climate.csv
Last active August 30, 2015 19:46
Ottawa Airport historical temperatures
Year Month Mean Max Temp Mean Min Temp Mean Temp Extr Max Temp Extr Min Temp
1938 11 7.4 -4.1 1.7 23.9 -16.1
1938 12 -2.3 -10.4 -6.4 7.2 -23.9
1939 1 -5.0 -16.7 -10.9 6.7 -30.6
1939 2 -4.6 -17.8 -11.2 5.0 -28.9
1939 3 -1.8 -11.7 -6.8 6.7 -23.9
1939 4 5.5 -2.1 1.7 16.7 -11.1
1939 5 19.1 6.3 12.7 30.6 -1.7
1939 6 23.7 11.9 17.8 30.0 6.1
1939 7 26.4 14.4 20.4 33.3 7.8
@nedgar
nedgar / Ottawa-airport-climate.csv
Created September 8, 2015 18:30
Bar Graph exercise - Temps @ Ottawa airport
year month meanMaxTemp meanMinTemp meanTemp extrMaxTemp extrMinTemp
1938 11 7.4 -4.1 1.7 23.9 -16.1
1938 12 -2.3 -10.4 -6.4 7.2 -23.9
1939 1 -5.0 -16.7 -10.9 6.7 -30.6
1939 2 -4.6 -17.8 -11.2 5.0 -28.9
1939 3 -1.8 -11.7 -6.8 6.7 -23.9
1939 4 5.5 -2.1 1.7 16.7 -11.1
1939 5 19.1 6.3 12.7 30.6 -1.7
1939 6 23.7 11.9 17.8 30.0 6.1
1939 7 26.4 14.4 20.4 33.3 7.8
@nedgar
nedgar / index.html
Last active September 11, 2015 20:35 — forked from rsimmon/index.html
NSIDC Arctic Sea Ice Colors
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Arctic Sea Ice Area D3</title>
<script type="text/javascript" src="http://d3js.org/d3.v3.js"></script>
<style type="text/css">
body {
background-color: black;
1938 11 7.4 -4.1 1.7 23.9 -16.1
1938 12 -2.3 -10.4 -6.4 7.2 -23.9
1939 1 -5.0 -16.7 -10.9 6.7 -30.6
1939 2 -4.6 -17.8 -11.2 5.0 -28.9
1939 3 -1.8 -11.7 -6.8 6.7 -23.9
1939 4 5.5 -2.1 1.7 16.7 -11.1
1939 5 19.1 6.3 12.7 30.6 -1.7
1939 6 23.7 11.9 17.8 30.0 6.1
1939 7 26.4 14.4 20.4 33.3 7.8
@nedgar
nedgar / Ottawa-airport-climate.csv
Last active September 22, 2015 02:32
Ottawa airport temp anomoly
1938 11 7.4 -4.1 1.7 23.9 -16.1
1938 12 -2.3 -10.4 -6.4 7.2 -23.9
1939 1 -5.0 -16.7 -10.9 6.7 -30.6
1939 2 -4.6 -17.8 -11.2 5.0 -28.9
1939 3 -1.8 -11.7 -6.8 6.7 -23.9
1939 4 5.5 -2.1 1.7 16.7 -11.1
1939 5 19.1 6.3 12.7 30.6 -1.7
1939 6 23.7 11.9 17.8 30.0 6.1
1939 7 26.4 14.4 20.4 33.3 7.8
@nedgar
nedgar / Ottawa-airport-climate.csv
Created September 27, 2015 21:17
Temp trend at Ottawa Airport
1938 11 7.4 -4.1 1.7 23.9 -16.1
1938 12 -2.3 -10.4 -6.4 7.2 -23.9
1939 1 -5.0 -16.7 -10.9 6.7 -30.6
1939 2 -4.6 -17.8 -11.2 5.0 -28.9
1939 3 -1.8 -11.7 -6.8 6.7 -23.9
1939 4 5.5 -2.1 1.7 16.7 -11.1
1939 5 19.1 6.3 12.7 30.6 -1.7
1939 6 23.7 11.9 17.8 30.0 6.1
1939 7 26.4 14.4 20.4 33.3 7.8
@nedgar
nedgar / Ottawa-airport-climate.csv
Created September 28, 2015 00:53
Monthly mean temps in 20 year bands
1938 11 7.4 -4.1 1.7 23.9 -16.1
1938 12 -2.3 -10.4 -6.4 7.2 -23.9
1939 1 -5.0 -16.7 -10.9 6.7 -30.6
1939 2 -4.6 -17.8 -11.2 5.0 -28.9
1939 3 -1.8 -11.7 -6.8 6.7 -23.9
1939 4 5.5 -2.1 1.7 16.7 -11.1
1939 5 19.1 6.3 12.7 30.6 -1.7
1939 6 23.7 11.9 17.8 30.0 6.1
1939 7 26.4 14.4 20.4 33.3 7.8
@nedgar
nedgar / .gist
Created February 16, 2018 17:17
HQ Master water level and flow rate
height: 960
border: no
@nedgar
nedgar / README.md
Last active July 20, 2019 10:35 — forked from xavriley/README.md
Original NES Mario Theme for Sonic Pi

Making Chiptune Music using Sonic Pi v2.0

Warning: this might not work on a RaspberryPi yet

I was curious about making retro gaming sounds using Sonic Pi. A couple of months and a lot of Googling later, here's the original Mario Bros theme as it was heard on the NES console.

I'm (just about) old enough to remember rushing home from school to play this game at Philip Boucher's house, sitting cross-legged in front of the TV till my feet got pins and needles. Working out how to recreate it for Sonic Pi was a lot of fun!

Getting the sounds of the NES chip

@nedgar
nedgar / roam_prefix_title.txt
Last active December 17, 2020 17:51
Roam Research roam/js extension to show "Roam: " as browser window prefix
- Copy/paste the JS code block below under a `{{[[roam/js]]}}` block on any page (import does not format it correctly).
- Doc on roam/js extensions: https://roamresearch.com/#/app/help/page/3l_9j6aAv
- {{[[roam/js]]}}
- ```javascript
function checkTitle() {
const t = document.title, r = 'Roam: ';
if (!t.startsWith(r)) { document.title = r + t; }
};
new MutationObserver(checkTitle).observe(
document.querySelector('title'),