- use docker
- add env lines in .bashrc
export DOCKER_TLS_VERIFY="1" export DOCKER_HOST="tcp://192.168.99.100:2376" export DOCKER_CERT_PATH="$HOME\.docker\machine\machines\default" export DOCKER_MACHINE_NAME="default"
$ docker run alpine:edge /bin/sh
This file contains hidden or 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/env python | |
# -*- coding: utf-8 -*- | |
""" | |
opens a docx file, replace ALL table style(*) and save on same file | |
mainly for pandoc exported docx file | |
(*) the applying style must be pre-defined in given file | |
Applies MIT License - 2017 K4ZUKI([email protected]) | |
""" |
This file contains hidden or 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/env bash | |
ln -nfs $PWD ~/workspace/mylibdir |
<project_name>
myPCBlib/
submodule to specific version of myPCBlibupdate_link/
submodule to update symlink to local lib directorygit submodule add https://gist.github.com/8dcf8faa12d411bc8090d22c11dbfc8c.git update_link
eagle.epf
<project>.sch
schematic file<project>.brd
board layout file
/
cam output directory
This file contains hidden or 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/env python3 | |
# -*- coding: utf-8 -*- | |
""" | |
python3.5 works as-is | |
json lib does not work as expected with python2.7 | |
seems utf-8 string related | |
pandoc -t docx -o <docx filename> <input filename> | |
--filter=pandoc-crossref --filter=./listing_test.py | |
""" |
This file contains hidden or 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/env python3 | |
# -*- coding: utf-8 -*- | |
""" | |
Do nothing but get properties from a docx | |
requires python-docx >= 0.8.6 | |
MIT licence (c) Kazuki Yamamoto ([email protected]) | |
""" | |
import docx | |
doc = docx.Document(outfile) |
This file contains hidden or 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 docx | |
""" | |
Col span | |
+----+----+----+----+ | |
|hoge|piyo|foo |bar | | |
+----+----+----+----+ | |
|baz | |foo |bar | | |
+----+----+----+----+ |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<GPDProject version="9" oldestCompatibleVersion="9" GPDVersion="6.19.004" lastChange="2019/08/07 1:40"> | |
<generalProjectSettings/> | |
<chip family="04" type="06" friendlyName="GreenPAK 6" partNumber="36" package="16"> | |
<nvmData registerLenght="2048">12 90 39 EB B5 A6 9C 14 6D 8E BF 69 FE 96 F9 1B E6 AB 56 FA 47 1 60 55 D4 4 0 51 45 4D 56 45 59 15 65 55 94 55 51 56 45 5 1A 0 0 0 0 0 0 0 0 40 10 0 0 0 0 40 7 F9 A7 EF FA 8F DF FA AC 7F F9 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3 0 80 30 30 30 0 0 30 80 3 0 3 3 3 3 3 3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 14 22 30 C 0 0 0 0 0 0 0 15 71 0 0 40 0 0 10 0 15 D0 2B 78 6E 0 0 0 71 73 20 0 1 0 2 0 43 1F 0 1 2 0 1 0 10 2 1 0 80 2 0 1 0 9F 2 1 0 FB 2 0 1 0 45 2 0 1 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 A5</nvmData> | |
<checksum crc32="0x1A16B46A" version="7"/> | |
<asmModel> | |
<stateMachine> | |
<asmMode |
pandoc + pandoc-crossrefフィルタを使ってdocxドキュメントを作ろうとしてちょっとめんどくさかったこととその解決策
このあたりを参考に、複数の画像に小番号を つけて並べたかったんだけど、縦積みはともかく横に並べるのはうまくいかない。