Skip to content

Instantly share code, notes, and snippets.

@victorbutler
victorbutler / XOj8xkeRCUU.en.vtt
Last active March 1, 2024 16:34
Nation Within: The Story of America's Annexation of Hawaiʻi | PBS HAWAIʻI PRESENTS - https://www.youtube.com/watch?v=XOj8xkeRCUU
WEBVTT
Kind: captions
Language: en
1
00:00:00.711 --> 00:00:03.347
The following program was made
possible by the Office of
2
@victorbutler
victorbutler / Hoverable.js
Created July 13, 2020 22:06 — forked from necolas/Hoverable.js
Hover styles in React Native for Web
import createHoverMonitor from './createHoverMonitor';
import { element, func, oneOfType } from 'prop-types';
import React, { Component } from 'react';
const hover = createHoverMonitor();
/**
* Use:
* <Hoverable>
* {(hover) => <View style={hover && styles.hovered} />}
volatile int rate[10]; // used to hold last ten IBI values
volatile unsigned long sampleCounter = 0; // used to determine pulse timing
volatile unsigned long lastBeatTime = 0; // used to find the inter beat interval
volatile int P = 512; // used to find peak in pulse wave
volatile int T = 512; // used to find trough in pulse wave
volatile int thresh = 512; // used to find instant moment of heart beat
volatile int amp = 100; // used to hold amplitude of pulse waveform
volatile boolean firstBeat = true; // used to seed rate array so we startup with reasonable BPM
volatile boolean secondBeat = true; // used to seed rate array so we startup with reasonable BPM