#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.
#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.
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.
This example uses a custom tween that interpolates the window’s vertical scroll offset.
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/', |
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 }), |
# 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. |