Skip to content

Instantly share code, notes, and snippets.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
/*
Reads a potentiometer on pin 34 and maps the reading to the X axis
Potentiometers can be noisy, so the sketch can take multiple samples to average out the readings
*/
#include <BleGamepad.h>
#include <Arduino.h>
BleGamepad bleGamepad("esp32 gamepad 1", "Bluetooth Device Manufacturer", 100);
function failTest(x,y){
console.log("fail function", {x,y})
if (x===2) x.fakeMethod()
if (x===4) x.fakeMethod()
if (x===5) x.fakeMethod()
if (x===6) x.fakeMethod()
if (x===7) x.fakeMethod()
if (y){
y.fakeMethod()
}
@bcolloran
bcolloran / links.txt
Last active August 15, 2019 18:32
webpack config with commented out stuff to try to get language server WebWorkers to load
const MERMAID = 'https://unpkg.com/mermaid@8.0.0/dist/mermaid.min.js'
const loadResource = url => new Promise((resolve) => {
const head = document.getElementsByTagName('head')[0];
const theScript = document.createElement('script');
theScript.src = url;
theScript.onload = () => {
resolve();
};
head.appendChild(theScript);
actinium(iii) oxide
silver tetrafluoroborate
silver bromide
silver hypobromite
silver bromite
silver bromate
silver perbromate
silver chloride
dicopper silver trichloride
silver chlorate
silver iodide
silver hypoiodite
silver iodite
silver iodate
silver periodate
silver(III) triiodide
aluminium monoiodide
aluminium triiodide
aluminium iodide
arsenic triiodide
@bcolloran
bcolloran / gist:f2dd808018ff007acd8d5254e323508d
Created February 5, 2019 06:52
reps test notebook for PR #1419
%% md
## This notebook demonstrates some of the output handling features
%% md
Scalar values are simply output verbatim
%% js
42
%% js
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>untitled - iodide</title>
<link rel="stylesheet" type="text/css" href="http://localhost:8888/iodide.dev.css">
</head>
<body>
<script id="jsmd" type="text/jsmd">
%% meta
@bcolloran
bcolloran / output-handling.html
Created June 27, 2018 22:26
Output Handling
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Output Handling - iodide</title>
<link rel="stylesheet" type="text/css" href="iodide.iodide-server.css">
</head>
<body>
<script id="jsmd" type="text/jsmd">
%% meta