Skip to content

Instantly share code, notes, and snippets.

@reynish
reynish / vega-lite-means-and-stdev.json
Created May 19, 2023 10:45
Vega-lite means and stdev
{
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"description": "Vega-lite means and stdev",
"width": "container",
"data": {
"values": [
{"date": "2023-05-19T10:16:59.509Z", "weight": "0.10"},
{"date": "2023-05-19T09:16:59.509Z", "weight": "0.49"},
{"date": "2023-05-19T08:16:59.509Z", "weight": "0.54"},
{"date": "2023-05-19T07:16:59.509Z", "weight": "0.95"},
@reynish
reynish / index.html
Created June 30, 2022 10:12
Question 1
<div id="root"></div>
@reynish
reynish / fireworks.py
Created October 12, 2021 15:17 — forked from tuftii/fireworks.py
Raspberry Pi Sense Hat Fireworks
# This example gist makes fireworks appear on the Raspberry Pi Sense Hat. This could be adapted for other LED based Raspberry Pi Hats.
from sense_hat import SenseHat
from time import sleep
from random import randint
import threading
DECAY = 0.7 # Colour decay of firework head.
SPEED = 0.1 # Speed of firework explosion.
DISPLAY_SPEED = 0.6 # Speed of firework launches.
@reynish
reynish / links.md
Created September 8, 2021 10:29
[Observable Links]
<main draggable="true">
<div class="title">
<div class="titlebtn titlebtn_left">C</div>
<span>alexreynish.com</span>
<div class="titlebtn titlebtn_right">M</div>
</div>
<div class="content">
<h1>Alex Reynish</h1>
<p>Something about me</p>
</div>
.sq.sq-main
.sq-inner.sq_red
.sq-inner.sq_green
.sq-inner.sq_blue

Keybase proof

I hereby claim:

  • I am reynish on github.
  • I am reynish (https://keybase.io/reynish) on keybase.
  • I have a public key ASA8_wsDEchgxa4UitFD_nNnc6Wxx6I0p9tOeg4YoT2jyQo

To claim this, I am signing this object:

@reynish
reynish / .gitlab-ci.yml
Created April 9, 2019 09:01
GitLab CI for create-react-app
image: node:10.8
stages:
- build
cache:
paths:
- node_modules/
before_script:
@reynish
reynish / axios-instance-config.js
Created November 21, 2017 10:10 — forked from ccnokes/axios-instance-config.js
Good default configuration for axios in node.js
const axios = require('axios');
const http = require('http');
const https = require('https');
module.exports = axios.create({
//60 sec timeout
timeout: 60000,
//keepAlive pools and reuses TCP connections, so it's faster
httpAgent: new http.Agent({ keepAlive: true }),
npm config set proxy http://proxy.company.com:8080
npm config set https-proxy http://proxy.company.com:8080