This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Copyright (c) 2014-2020 Electronic Cats SAPI de CV. All right reserved. | |
This library is free software; you can redistribute it and/or | |
modify it under the terms of the GNU Lesser General Public | |
License as published by the Free Software Foundation; either | |
version 2.1 of the License, or (at your option) any later version. | |
This library is distributed in the hope that it will be useful, | |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<meta name="robots" content="noindex"> | |
<html> | |
<head> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.6/d3.min.js"></script> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>Sequence Diagram</title> | |
</head> | |
<body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Joystick.h> | |
#define ThrottlePin 2 | |
#define SteeringPin 3 | |
int ThrottleValue; | |
int SteeringValue; | |
Joystick_ Joystick; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="Basic annotation UI"> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<p> | |
I will arise and go now, and go to Innisfree, | |
And a small cabin build there, of clay and wattles made; | |
Nine bean-rows will I have there, a hive for the honey-bee, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let html = "<img src='"+temp1.toDataURL()+"' alt='from canvas'/>"; | |
let tab = window.open(); | |
tab.document.write(html); |
We can make this file beautiful and searchable if this error is corrected: It looks like row 4 should actually have 1 column, instead of 11. in line 3.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# View in 3table | |
# https://3table.glitch.me/ | |
# https://3table.glitch.me/#url=https://gist.githubusercontent.com/joegaffey/aacfd2438b83411e38bdff322aeeac72/raw/958e71de02b2c9eedada7d330a2c3269f55a4841/profile_cube.csv | |
4040, side, 1, 1, 5, 230, 0, -250, 0, 0, 0 | |
4040, side, 1, 1, 5, -230, 0, -250, 0, 0, 0 | |
4040, side, 1, 1, 4.2, 210, 0, -230, 0, -90, 0 | |
4040, side, 1, 1, 4.2, 210, 0, 230, 0, -90, 0 | |
c4040, side, 1, 1, 1, -210, 20, -210, 90, 0, 0 | |
c4040, side, 1, 1, 1, 210, -20, -210, 90, 180, 0 | |
c4040, side, 1, 1, 1, -210, -20, 210, -90, 0, 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Video: https://www.youtube.com/watch?v=oCMOYS71NIU | |
Based on Neil Kolban example for IDF: https://github.com/nkolban/esp32-snippets/blob/master/cpp_utils/tests/BLE%20Tests/SampleNotify.cpp | |
Ported to Arduino ESP32 by Evandro Copercini | |
Gamepad coding by Game Dragon | |
*/ | |
#include <BLEDevice.h> | |
#include <BLEServer.h> | |
#include <BLEUtils.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const LOCAL_FEED_URL = `./feed.rss`; | |
const FEED_ERROR_TXT = `Feed unavailble, check back later`; | |
const postsEl = document.querySelector('.posts'); | |
function showRSS(RSS_URL) { | |
fetch(RSS_URL) | |
.then((response) => { | |
if (response.ok) { return response.text(); } | |
else throw new Error('Something went wrong'); }) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#%RAML 0.8 | |
title: World Music API | |
baseUri: http://example.api.com/{version} | |
version: v1 | |
schemas: | |
- halLink: | | |
{ "$schema": "http://json-schema.org/schema", | |
"type": "object", | |
"description": "a Hypertext Application Language link", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const linksSelector = '.link-selector'; | |
const itemSelectors = ['.item1', '.item1', '.item1']; | |
const anchors = document.querySelectorAll(linksSelector); | |
const links = []; | |
anchors.forEach((anchor) => { links.push(anchor.href) }); | |
const results = []; | |
links.forEach((link) => { |
NewerOlder