This is a place for KiCad layouts/schematics for electronics.stackexchange.com.
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
""" | |
An event loop policy that integrates Windows message loop with IOCP-based async processing. | |
Usage: | |
asyncio.set_event_loop_policy(winmsgasyncio.MsgProactorEventLoopPolicy()) | |
To integerate with tkinter, use tk_sync_mainloop(root) or await tk_async_mainloop(root). | |
""" | |
# SPDX-License-Identifier: MIT |
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
import autopep8 | |
from thonny import get_workbench | |
from tkinter.messagebox import showinfo | |
DEBUG = False | |
# Save to: | |
# %APPDATA%\Roaming\Thonny\plugins\Python3.10\site-packages\thonnycontrib\autopep8.py | |
# references: |
There are many ways of solving such circuits. For people who looked at lots of logic diagrams like these - they'll identify them pretty much just by looking at them for a minute. For someone who's just learning it for the first time, it helps to have a process. Here are the steps I'd take. You don't need to take those exact steps, of course!
- Replace the input lines with labels:
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
(kicad_sch (version 20211123) (generator eeschema) | |
(uuid 1a16158f-96b7-446e-9b07-fa7168bd0f9f) | |
(paper "A") | |
(title_block | |
(title "4-20mA circuit IC troubleshooting") | |
(date "2023-03-04") | |
) |
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
# /bin/bash | |
# This removes all replace refs in the current repo, after logging them. | |
set -e | |
cmd=$(basename "$0") | |
logfile="~/.${cmd}.log.txt" | |
tmpfile=$(mktemp "${TMPDIR}/.${cmd}") | |
origin=$(git config --get remote.origin.url) | |
echo "# $(date) BEGIN ${origin}" >> "${logfile}" |
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
// complete compileable example begins | |
#include <assert.h> | |
#include <math.h> | |
#include <stdarg.h> | |
#include <stdbool.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <sys/time.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
## Author: voithos on so | |
## Url: https://stackoverflow.com/a/8319848/1329652 | |
function varargout = coltextread(fname, delim) | |
% Initialize the variable output argument | |
varargout = cell(nargout, 1); | |
% Initialize elements of the cell array to nested cell arrays | |
% This syntax is due to {:} producing a comma-separated | |
[varargout{:}] = deal(cell()); |