現代のソフトウェア開発では、プログラムなどのテキストファイルを管理する方法としてバージョン管理ソフトウェアが使われる事が一般的となっている。
バージョン管理を使うことで、
- 変更の巻き戻し
- 複数人での開発
等が容易になる。
| BEGIN KEYBASE SALTPACK SIGNED MESSAGE. kXR7VktZdyH7rvq v5weRa0zkE78jT2 xx4mvYJXYo3keN1 6JPECHTfC2pKgdk CUAIOTiXhoXcVkI MfsMj19rATXPr1D 8O4aIGws28li5wk Rlcavjgda8mb0pP sSU23i4N2fj6aWO D8z89eP3Bf29rti 4jbKN1y0hjdpXB9 bKikEZ1qvUCVKtG mo0SNIHXOSSJNcT fDtex5y3Pt1uLDd uvIxt1X. END KEYBASE SALTPACK SIGNED MESSAGE. |
| { | |
| description = "An example flake for build latest gleam."; | |
| inputs = { | |
| nixpkgs.url = "github:nixos/nixpkgs?ref=nixpkgs-unstable"; | |
| flake-parts.url = "github:hercules-ci/flake-parts"; | |
| systems.url = "github:nix-systems/default"; | |
| devenv.url = "github:cachix/devenv"; | |
| rust-overlay.url = "github:oxalica/rust-overlay"; | |
| }; |
| /* | |
| よくある投稿がダーッと流れてくるアレができるスクリプトです。 | |
| Denoで実行することを想定しています。 | |
| 2024/10/21 現在動くコードです。 | |
| Blueskyはライブラリの変更が激しいのでこのスクリプトも参考程度に読むことをお勧めします。 | |
| */ | |
| import { cborDecodeMulti } from "npm:@atproto/common"; | |
| import { AtpAgent } from "npm:@atproto/api"; |
| create table idols | |
| ( | |
| name text, | |
| age integer, | |
| height integer | |
| ); | |
| INSERT INTO idols (name, age, height) VALUES | |
| ('橘ありす', 12, 141), | |
| ('櫻井桃華', 12, 145), |
| const str = ` | |
| ⠀⠀⠀⠀⠀⠀⠀⣤⣤⣤⣤⣤⣤⡄⠀⠀⣀⣤⣤⣤⣤⡄⠀⠀⠀⣀⣤⣤⣤⣤⡀⠀⠀⠀⣀⣤⣤⣤⣤⡀⠀⠀⣀⡀⠀⣠⣶⠆⣴⡖⠀⣀⡀⠀⢀⣤⣤⣤⣤⣤⣤⣤⣤⣤⣤⡄ | |
| ⠀⠀⠀⠀⠀⢀⣼⡿⠉⠉⠉⠉⠉⠀⣠⣾⡿⠋⠉⠙⣿⡿⠀⣠⣾⠟⠋⠉⢹⣿⡇⠀⣠⣾⠟⠋⠉⢹⣿⡇⠀⠀⣿⣷⣠⣿⠃⣼⣟⣤⡾⠟⠁⢀⣾⡟⠉⠉⣹⡿⠉⠉⢉⣿⠏⠀ | |
| ⠀⠀⠀⠀⣠⣾⣿⣶⣶⣶⣦⠀⠀⣴⣿⠋⠀⠀⠀⣸⣿⢇⣼⡿⠃⠀⠀⠀⣼⣿⢃⣾⡿⠁⠀⠀⠀⣾⣿⠁⠀⠀⠛⣩⣿⢃⣾⣟⣝⠋⠀⠀⢀⣾⣟⣀⣀⣴⣿⣁⣀⣠⣿⠏⠀⠀ | |
| ⠀⠀⠀⠀⠛⠋⠁⠀⠀⣿⡿⠀⣼⣿⠃⠀⠀⢀⣼⣿⠋⣾⣿⠁⠀⠀⣀⣼⡿⢃⣾⡿⠁⠀⠀⢀⣾⡿⠁⣴⣶⠾⣿⡿⢃⣾⡟⠙⣿⣷⠄⢀⣾⠟⠛⠛⠛⠛⠛⠛⢻⣿⠏⠀⠀⠀ | |
| ⠀⠀⣰⣶⣆⣀⣀⣤⣾⠟⠁⣰⣿⣯⣀⣀⣤⣾⠟⠁⣸⣿⣧⣀⣀⣴⣿⠟⠁⢸⣿⣇⣀⣀⣴⣿⠟⠀⠈⣁⣤⣾⠟⣀⣾⠏⠀⣀⣾⠄⣠⣾⠏⠀⠀⠀⠀⠀⠀⣠⣿⠏⠀⠀⠀⠀ | |
| ⠀⠀⠈⠛⠿⠿⠛⠋⠁⠀⠀⠀⠛⠿⠿⠛⠋⠁⠀⠀⠈⠛⠿⠟⠛⠋⠀⠀⠀⠈⠛⠿⠟⠛⠉⠀⠀⣶⡿⠟⠋⠀⠀⠾⢿⣷⠾⠿⠋⣠⣿⠏⠀⠀⠀⠀⠸⠿⠶⠿⠋⠀⠀⠀⠀⠀ | |
| ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣤⣤⢤⣄⠀⣠⣶⠦⠀⠀⠀⠀⠀⠰⣦⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣤⣤⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ | |
| ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⡴⢟⣯⣄⣸⣿⣷⠿⠥⣴⣾⠄⠀⠀⠀⣴⡿⠋⠀⠀⠀⠀⠀⠀⠀⢀⣿⡆⠀⠀⠀⠀⢄⡀⠀⠀⠀⠀⠀⠀⠀⠀⣼⡿⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ |
| import { join } from "https://deno.land/std@0.220.1/path/mod.ts"; | |
| console.log(`import.meta.url: ${import.meta.url}`); | |
| console.log(`Deno.cwd: ${Deno.cwd()}`) | |
| const modPath = join(Deno.cwd(), "haru.config.ts") | |
| console.log(`modPath: ${modPath}`) | |
| const mod = await import(modPath) |
| FROM rust:latest | |
| WORKDIR /build | |
| RUN git clone https://github.com/gleam-lang/gleam | |
| RUN cd gleam \ | |
| && cargo build --release \ | |
| && cp ./target/release/gleam /bin |
| const tipichapa = ["チピチピ", "チャパチャパ", "ドゥビ ドゥビ", "ダバ ダバ"] | |
| const dubi = "マヒコミ ドゥビ ドゥビ\nブン ブン ブン ブン" | |
| while (true) { | |
| const word = Array.from({length: 4}, () => tipichapa[Math.floor(Math.random() * tipichapa.length)]).join("") | |
| console.log(word) | |
| if (word == tipichapa.join("")) { | |
| break | |
| } |