Skip to content

Instantly share code, notes, and snippets.


Jeffrey Warren jywarren

View GitHub Profile
jywarren / index.html
Last active Apr 27, 2020
Certification mark generator/saver
View index.html
<!doctype html>
<html lang="en">
<meta charset="utf-8">
<title>Cert generator</title>
<link rel="stylesheet" href="" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<body class="container">
jywarren / hazePedal.ino
Last active Mar 10, 2020
View hazePedal.ino
* Jeffrey Yoo Warren & Andy Lee
* digipot
#define chipselect 15
#define updown 14
#define inc 16
View application-precompiled-production.js
function myWindroseMarker(t){var e='<canvas id="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_";;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
View application-precompiled.js
This file has been truncated, but you can view the full file.
/* @preserve
* Leaflet 1.5.1, a JS library for interactive maps.
* (c) 2010-2018 Vladimir Agafonkin, (c) 2010-2011 CloudMade
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
jywarren / hippocratic-license-adaptation.txt
Last active Jan 22, 2020
Hippocratic License adaptations - working doc -
View hippocratic-license-adaptation.txt
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
* No Harm: The software may not be used by anyone for systems or activities that actively and knowingly endanger, harm, or otherwise threaten the physical, mental, economic, or general well-being of other individuals or groups, in violation of the United Nations Universal Declaration of Human Rights (
* Services: If the Software is used to provide a service to
jywarren / plantowerPulse.ino
Last active Mar 23, 2020
View plantowerPulse.ino
Pulse a light on briefly, but speed up pulses as PM2.5 values go up.
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
View flashing-error.log
/home/builder/opt/arduino-builder/arduino-builder -compile -core-api-version 10611 -hardware /home/builder/opt/arduino-builder/hardware -hardware /home/builder/.arduino15/packages -tools /home/builder/opt/arduino-builder/tools -tools /home/builder/.arduino15/packages -built-in-libraries /home/builder/opt/libraries/latest -logger humantags -fqbn arduino:avr:micro -build-cache /tmp -build-path /tmp/091402050/build -verbose -prefs -prefs -prefs -prefs -prefs -prefs