Skip to content

Instantly share code, notes, and snippets.

Avatar

Jeffrey Warren jywarren

View GitHub Profile
View how-to-cry.md

INSTRUCTIONS ON HOW TO CRY

Putting the reasons for crying aside for the moment, we might concentrate on the correct way to cry, which, be it understood, means a weeping that doesn’t turn into a big commotion nor proves an affront to the smile with its parallel and dull similarity. The average, everyday weeping consists of a general contraction of the face and a spasmodic sound accompanied by tears and mucus, this last toward the end, since the cry ends at the point when one energetically blows one’s nose.

View nytimes-covid-cases-July 10.txt
https://www.nytimes.com/article/coronavirus-county-data-us.html
Marion Correctional Institution — Marion, Ohio 2,439
San Quentin State Prison — San Quentin, Calif. 1,842
Pickaway Correctional Institution — Scioto Township, Ohio 1,792
Harris County jail — Houston, Texas 1,558
Trousdale Turner Correctional Center — Hartsville, Tenn. 1,382
North County jail — Castaic, Calif. 1,368
Smithfield Foods pork processing facility — Sioux Falls, S.D. 1,098
Chuckawalla Valley State Prison — Blythe, Calif. 1,094
View thermal-fishing-tinkercad.ino
/*
* Thermal fishing
* https://www.circuitbasics.com/arduino-thermistor-temperature-sensor-tutorial/
*/
// Pins 3, 5, and 6 are the red, green and blue LEDs on the Arduino board.
// give them names:
int redPin = 3;
int greenPin = 5;
int bluePin = 6;
@jywarren
jywarren / index.html
Last active Apr 27, 2020
Certification mark generator/saver
View index.html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Cert generator</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
</head>
<body class="container">
<!--
https://yoksel.github.io/url-encoder/
@jywarren
jywarren / plantowerPulse.ino
Last active Mar 23, 2020
plantowerPulse.ino
View plantowerPulse.ino
/*
Pulse a light on briefly, but speed up pulses as PM2.5 values go up.
https://learn.adafruit.com/pm25-air-quality-sensor/arduino-code
*/
int led = 10; // the PWM pin the LED is attached to
int brightness = 0; // how bright the LED is
int fadeAmount = 5; // how many points to fade the LED by
@jywarren
jywarren / hazePedal.ino
Last active Mar 10, 2020
hazePedal.ino
View hazePedal.ino
/*
* Jeffrey Yoo Warren & Andy Lee
* https://learn.adafruit.com/pm25-air-quality-sensor/arduino-code
* digipot https://forum.arduino.cc/index.php?topic=430818.0
*/
#define chipselect 15
#define updown 14
#define inc 16
View application-precompiled-production.js
function myWindroseMarker(t){var e='<canvas id="id_'+t.id+'" width="50" height="50"></canvas>',i=L.divIcon({html:e,iconSize:[50,50],className:"owm-div-windrose"});return L.marker([t.coord.Lat,t.coord.Lon],{icon:i,clickable:!1})}function myWindroseDrawCanvas(t,e){var i=document.getElementById("id_"+t.id);i.title=t.name;var n=0,o=0,r=0;if("undefined"!=typeof t.wind&&("undefined"!=typeof t.wind.speed&&(i.title+=", "+t.wind.speed+" m/s",i.title+=", "+e._windMsToBft(t.wind.speed)+" BFT",o=t.wind.speed),"undefined"!=typeof t.wind.deg&&(i.title+=", "+e._directions[(t.wind.deg/22.5).toFixed(0)],n=t.wind.deg),"undefined"!=typeof t.wind.gust&&(r=t.wind.gust)),i.getContext&&o>0){var s=0,a=0;o<=10?(a=10*o+155,s=255*o/10):(s=255,a=255-255*(Math.min(o,21)-10)/11);var l=i.getContext("2d");l.translate(25,25),l.rotate(n*Math.PI/180),l.fillStyle="rgb("+Math.floor(s)+","+Math.floor(a)+",0)",l.beginPath(),l.moveTo(-15,-25),l.lineTo(0,-10),l.lineTo(15,-25),l.lineTo(0,25),l.fill(),r>0&&r!=o&&(r<=10?(a=10*r+155,s=255*r/10):(s=255,a