- ユーザ・グループ一覧
# 一般ユーザでも実行可能
dscl . -list /Users
dscl . -list /Groups| import Foundation | |
| import FoundationModels | |
| let session = LanguageModelSession() | |
| let res = session.streamResponse(to: "Hello!") | |
| for try await p in res { | |
| print(p.content) | |
| } |
| #!/usr/bin/env bash | |
| g++-10 -x c++ -o program - << EOF | |
| #include <iostream> | |
| int main(void){ | |
| std::cout << "Hello, world!" << std::endl; | |
| } | |
| EOF |
| #!/usr/bin/env zsh | |
| # Note that '追加' means 'add'. Localized word should be entered there. | |
| # worked in macOS Big Sur 11.2.1 & MacBookPro 2016 | |
| open -a Mission\ Control && osascript -e ''tell application "System Events" to click (every button whose value of attribute "AXDescription" contains "追加") of group 2 of group 1 of group 1 of process "Dock"'' |
| // 2021-02-12. std::listで素因数分解プログラムを書きたい衝動に襲われたので書いた。 | |
| // g++ source.cpp -o prog -lm -std=gnu++14 | |
| #include <iostream> | |
| #include <list> | |
| #include <cmath> | |
| using namespace std; |