Skip to content

Instantly share code, notes, and snippets.

#Stay Standalone

A short script to prevent internal links to a "webapp" added to iPhone home screen to open in Safari instead of navigating internally.

@reynish
reynish / README.md
Last active August 29, 2015 14:06 — forked from mbostock/.block

This is not a true Dorling cartogram; it lacks links between adjacent features. Instead of trying to preserve connectedness, this pseudo-cartogram tries to preserve locality, putting each circle as close as possible to its origin without overlapping.

@reynish
reynish / README.md
Last active August 29, 2015 14:08 — forked from mbostock/.block

This example uses a custom tween that interpolates the window’s vertical scroll offset.

@reynish
reynish / gist:74eaafcbb6755c02c9ff
Created March 4, 2016 14:28 — forked from justinmc/gist:9149719
Sample Gulpfile
var gulp = require('gulp');
var clean = require('gulp-clean');
var jshint = require('gulp-jshint');
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
var imagemin = require('gulp-imagemin');
var bases = {
app: 'app/',
@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 }),
@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.