name | SPM | document | last commit at 2020/10/05 | link | other |
---|---|---|---|---|---|
Foundation/XMLParser | - | apple document | - | XMLParser | Apple Developer Documentation | |
scinfu/SwiftSoup | ✅ | official site is efficient. | Aug 12, 2020 | Github https://scinfu.github.io/SwiftSoup/ |
|
mattt/Ono | 🙅🏻 Cocoapods only | enough but old | Jul 7, 2019 | Github | |
cezheng/Fuzi | ✅ Carthage, Cocoapods | http://cezheng.github.io/Fuzi/ | Mar 28, 2020 | Github | |
tid-kijyun/Kanna | ✅ cocoapods, carthage | Kanna | Apr 19, 2020 | Github | CSSセレクタでも要素抽出 ができる |
yahoojapan/SwiftyXMLParser | ?(Package.swift is |
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
# xcode-select | |
# xcode-selectはもともと入っている | |
# Xcodeコマンドラインツールのインストールが始まる | |
# xcode-select --install | |
# Homebrewのインストール | |
# /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" | |
# Homebrew caskのインストール | |
# brew tap caskroom/cask |
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 sys | |
def main_args(): | |
args = sys.argv # args[0]はファイル名 | |
print(args) | |
print(len(args)) | |
print("第1引数:" + args[1]) | |
print("第2引数:" + args[2]) | |
print("第3引数:" + args[3]) |
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
find directory -name ".*" | xargs rm |
日本語混じりのJSONをPowerpointのスライドにシンタックスハイライトが効いた状態で掲載したい。 ただし、画像でなくテキストとして。という要件を満たす方法を探した。
シンタックスハイライトをしたコードを PowerPoint / Keynote に載せる - kakakakakku blogを参考にした。
ただし、日本語が文字化けしてしまうので、エンコードの指定をする必要がある。
以上をまとめると次のようになる。
テキストファイルの特定の範囲の行を削除するとき、sed
コマンドを使う時の諸注意。
Macの(BSD版)sed での上書き保存 - Qiitaが参照元。
sed '6,10d' foo.txt
とした場合、結果は標準出力に出力されるので、リダイレクトする。
sed '6,10d' foo.txt > bar.txt
ところが、bar.txt
は空のファイルになってしまう。