View ad7705-datasheet.c
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
// C code from the AD7705/AD7706 datasheet | |
// https://www.analog.com/media/en/technical-documentation/data-sheets/ad7705_7706.pdf | |
#include <math.h> | |
#include <io6811.h> | |
#define NUM_SAMPLES 1000 /* change the number of data samples */ | |
#define MAX_REG_LENGTH 2 /* this says that the max length of a register is 2 bytes */ | |
Writetoreg(int); | |
Read(int, char); |
View pptx-to-html.py
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
""" | |
This script finds text in a folder of PPT files and saves what is found | |
in a HMTL report that can be easily searched. It separates long phrases | |
from stray words to make important content easier to spot. | |
""" | |
import datetime | |
import collections | |
import collections.abc |
View GenerateColorPalettes.cs
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
// This .NET 6 console app generates XML color palette files compatible with Adobe Illustrator and CorelDraw. | |
// Color palettes are sourced from the ScottPlot package. | |
foreach (var pal in ScottPlot.Palette.GetPalettes()) | |
{ | |
string xml = GetPaletteXml(pal); | |
string saveFolder = Path.GetFullPath("palettes"); | |
if (!Directory.Exists(saveFolder)) | |
Directory.CreateDirectory(saveFolder); |