dev で開発環境で確認して mainブランチを本番に反映する。dev ブランチには本番に反映してはいけない雑多なブランチが含まれる。
- dev: 開発用ブランチ
- main: 本番用ブランチ
graph TD
A[main] --> B[dev]
A[main] --> C[topic]
C --> D[topic: Commit]
A --> E[main]
D --> |①| Bdev で開発環境で確認して mainブランチを本番に反映する。dev ブランチには本番に反映してはいけない雑多なブランチが含まれる。
graph TD
A[main] --> B[dev]
A[main] --> C[topic]
C --> D[topic: Commit]
A --> E[main]
D --> |①| B| // SPDX-License-Identifier: Unlicense OR MIT | |
| // GLFW doesn't build on OpenBSD and FreeBSD. | |
| //go:build !openbsd && !freebsd && !android && !ios && !js | |
| // +build !openbsd,!freebsd,!android,!ios,!js | |
| // The glfw example demonstrates integration of Gio into a foreign | |
| // windowing and rendering library, in this case GLFW | |
| // (https://www.glfw.org). | |
| // |
| package main | |
| import ( | |
| "fmt" | |
| "github.com/veandco/go-sdl2/sdl" | |
| "image" | |
| "image/color" | |
| "math/rand" | |
| "unsafe" | |
| ) |
| # Copy directory recursive to remote SFTP server by scp | |
| # scp use SFTP protocol | |
| # need to install `parammiko` and `scp` | |
| # https://pypi.org/project/paramiko/ | |
| # https://pypi.org/project/scp/ | |
| import paramiko | |
| import scp | |
| # Change these to their actual values |
| # Related to https://gist.github.com/nakagami/b822ad3fcb72645f003e639060586be9 | |
| # Retain the first element, delete the rest. | |
| # modify attribute | |
| # modify element | |
| import xml.etree.ElementTree as ET | |
| xml_data = '''<?xml version="1.0" encoding="utf-8"?> | |
| <root> | |
| <person id="1"> |
| # openpyxl のサンプル | |
| # Excel の 1シート目の先頭行の内容を読み取る | |
| # 先頭行の値を 2行目に設定 | |
| # B セルを削除 | |
| # 出来上がった Excel を bytes データに変換 | |
| import io | |
| from openpyxl import load_workbook |
| author | date |
|---|---|
Hajime Nakagami<[email protected]> |
Sep 27, 2024 |
Do you use vim?
I have been using vi clone for over 30 years.
| # sudo apt install imagemagick | |
| # pip install matplotlib-backend-sixel matplotlib | |
| import matplotlib | |
| import matplotlib.pyplot as plt | |
| import numpy as np | |
| matplotlib.use('module://matplotlib-backend-sixel') | |
| def plot(): | |
| x = np.linspace(0, 1) |
| # https://qiita.com/bjam_ha_nai/items/609924c91343a12d6769 | |
| # sudo apt install libsixel-bin libsixel-dev | |
| # pip install libsixel-python matplotlib | |
| import matplotlib | |
| import matplotlib.pyplot as plt | |
| import numpy as np | |
| from libsixel.encoder import Encoder as SixelEncoder | |
| from libsixel import SIXEL_OPTFLAG_WIDTH, SIXEL_OPTFLAG_HEIGHT | |
| from tempfile import NamedTemporaryFile |
| import xml.etree.ElementTree as ET | |
| xml_data = '''<?xml version="1.0" encoding="utf-8"?> | |
| <root> | |
| <person id="1"> | |
| <name>John Doe</name> | |
| <age>30</age> | |
| <city>Tokyo</city> | |
| </person> | |
| <person id="2"> |