Skip to content

Instantly share code, notes, and snippets.

Jeffrey Warren jywarren

Block or report user

Report or block jywarren

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@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 / 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
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. http://leafletjs.com
* (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
jywarren / hippocratic-license-adaptation.txt
Last active Jan 22, 2020
Hippocratic License adaptations - working doc - https://firstdonoharm.dev/
View hippocratic-license-adaptation.txt
Copyright (YEAR) (COPYRIGHT HOLDER)
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 (https://www.un.org/en/universal-declaration-human-rights/).
* Services: If the Software is used to provide a service to
@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
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 runtime.tools.avr-gcc.path=/home/builder/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5 -prefs runtime.tools.avrdude.path=/home/builder/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17 -prefs runtime.tools.nrf5x-cl-tools.path=/home/builder/.arduino15/packages/arduino/tools/nrf5x-cl-tools/9.3.1 -prefs runtime.tools.linuxuploader.path=/home/builder/.arduino15/packages/arduino/tools/linuxuploader/1.5.1 -prefs runtime.tools.i586-poky-linux-uclibc.path=/home/builder/.arduino15/packages/Intel/tools/i586-poky-linux-uclibc/1.6.2+1.0 -prefs runtime.tools.mkspiffs.p
You can’t perform that action at this time.