$ git remote add upstream [email protected]:mbedmicro/mbed.git
$ git fetch upstream
$ git merge upstream/master
$ git push
$ git remote add xxx_work [email protected]:mbedmicro/mbed_private_xxx.git
#!/usr/bin/env python | |
""" | |
Run a multi-threaded single-client SCPI Server implemented in Python. | |
Using a single-client server is sensible for many SCPI servers | |
where state would need to be shared between the multiple clients | |
and thus access to it would need to be made thread-safe. | |
In most cases, this doesn't make sense. Everything is | |
simply much easier when allowing only one client at a time. |
シーケンス図とかフローチャートをしごとで描画することになった場合、 テキストから生成できたら楽なので、それ系のツールまとめ
- C製
- Doxygen, Moinmoinなどと連携可能
- ブロック図、クラス図、ネットワーク図など
Git for Windows comes bundled with the "Git Bash" terminal which is incredibly handy for unix-like commands on a windows machine. It is missing a few standard linux utilities, but it is easy to add ones that have a windows binary available.
The basic idea is that C:\Program Files\Git\mingw64\
is your /
directory according to Git Bash (note: depending on how you installed it, the directory might be different. from the start menu, right click on the Git Bash icon and open file location. It might be something like C:\Users\name\AppData\Local\Programs\Git
, the mingw64
in this directory is your root. Find it by using pwd -W
).
If you go to that directory, you will find the typical linux root folder structure (bin
, etc
, lib
and so on).
If you are missing a utility, such as wget, track down a binary for windows and copy the files to the corresponding directories. Sometimes the windows binary have funny prefixes, so
# convert yaml to json | |
# pip3 install pyyaml | |
# http://pyyaml.org/wiki/PyYAMLDocumentation | |
# py3 yaml2json.py < ~/code/manpow/homeland/heartland/puphpet/config.yaml | |
# gist https://gist.github.com/noahcoad/51934724e0896184a2340217b383af73 | |
import yaml, json, sys | |
sys.stdout.write(json.dumps(yaml.load(sys.stdin), sort_keys=True, indent=2)) |
(For English readers: please read https://github.com/sponsors/tk0miya instead)
@tkomiya は、日本在住の OSS 開発者です。
趣味として Sphinx や pycmark、 blockdiag などの OSS の開発やメンテナンスに携わっています。
ここ数年の活動の中心は Sphinx です。 Sphinx は Python や Linux カーネルをはじめとして、数多くの OSS のドキュメントに利用されているドキュメンテーションツールです。 Sphinx プロジェクトはごく少人数のメンテナによって活動しており、(明確な役割として定義はされていないものの) リードメンテナ、メインメンテナとして活動しています。
import Text.Pandoc.JSON | |
import Data.List | |
main :: IO () | |
main = toJSONFilter myfilter | |
myfilter (Link _ text (url, _)) | |
| '#':ref <- url | |
= Span nullAttr $ | |
text <> |
FROM debian:buster | |
ENV DEBIAN_FRONTEND noninteractive | |
RUN apt-get update && \ | |
apt-get install -y --no-install-recommends \ | |
cmake \ | |
build-essential \ | |
binutils-arm-none-eabi \ | |
gcc-arm-none-eabi \ | |
libnewlib-dev \ |