This variation of a donut chart demonstrates how to add labels with lines. Clicking on the button changes the displayed data. Check Pie Chart with Labels and Missing Data to see how to handle transitions with missing/new data.
This variation of a donut chart demonstrates how to add labels with lines and also works with missing/new data. Clicking on the button changes the displayed data.
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
#!/usr/bin/osascript | |
# Name of the device as visible in Safari->Develop menu | |
set deviceName to "iPhone Simulator" | |
# Number of seconds to wait for the simulator window to show up | |
set maxWait to 30 | |
# --------------------------------------- | |
# You shouldn't modify anything below here |
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
-- Execute -> Install | |
-- Keyboard -> Shortcuts -> Services -> playpause soundcloud -> set your Shortcut | |
set titleString to "" | |
tell application "Google Chrome" | |
activate | |
set window_list to every window # get the windows | |
set the_window_index to 0 | |
repeat with the_window in window_list # for every window | |
set the_window_index to the_window_index + 1 |
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
// Just require this file | |
// [email protected] | |
// npm install colors | |
var ms, oldLog, path, | |
slice = [].slice; | |
require('colors'); | |
path = require('path'); |
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
load = async (url) => { | |
var head= document.getElementsByTagName('head')[0]; | |
var script= document.createElement('script'); | |
script.type= 'text/javascript'; | |
script.src= url; | |
return new Promise(resolve => { | |
script.addEventListener('load', resolve); | |
head.appendChild(script); | |
}); |
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 charset="utf-8"> | |
<body> | |
<script src="//d3js.org/d3.v4.min.js"></script> | |
<script src="https://unpkg.com/@hpcc-js/[email protected]/dist/index.min.js"></script> | |
<script src="https://unpkg.com/[email protected]/build/d3-graphviz.js"></script> | |
<button onclick="run()">RUN</button> | |
<div width="100%"> | |
<div width="100%" style="width: 30%; float: left;"> | |
<div id="comment1"> </div> |
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 charset="utf-8"> | |
<body> | |
<script src="//d3js.org/d3.v4.min.js"></script> | |
<script src="https://unpkg.com/@hpcc-js/[email protected]/dist/index.min.js"></script> | |
<script src="https://unpkg.com/[email protected]/build/d3-graphviz.js"></script> | |
<button onclick="run()">RUN</button> | |
<div> | |
<div style="width: 25%; float: left;"> | |
<div id="comment1"></div> |
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
/* | |
Modified SoftWire.cpp file that: | |
- Uses native stm32 calls to manage GPIO | |
- Removes all delays between gpio calls | |
- Clock working at ~260kHz on an STM32H723VG (SKR 3) | |
Make sure to set the right SCL and SDA port and pin below | |
*/ | |
// If possible disable interrupts whilst switching pin direction. Sadly | |
// there is no generic Arduino function to read the current interrupt |
OlderNewer