This file contains 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
#!/bin/bash -ve | |
set -o pipefail | |
# EPUB ファイルをチャプター毎の mp4 ファイルに変換するシェルスクリプト | |
## 依存関係 | |
# brew install w3m が必要 | |
# unzip で、EPUBファイルからコンテンツ抽出 | |
# find, sort で、EPUBファイル内にあるXHTMLファイルをリストアップ | |
# w3m で、XHTMLファイルからHTMLタグを除去し txt に変換 | |
# say コマンドで txt から mp4 ファイルに変換 |
This file contains 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
// | |
// Created by はるふ on 2017/12/11. | |
// Copyright © 2017年 ha1f. All rights reserved. | |
// | |
import Foundation | |
import CoreImage | |
import AVFoundation | |
extension CIFilter { |
This file contains 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
protocol Base { | |
var name:String { get } | |
func doSomething() -> String | |
} | |
struct A : Base { | |
var name:String { return "Filter A" } | |
func doSomething() -> String { return "do A" } | |
} | |
struct B : Base { | |
var name:String { return "Filter B" } |
This file contains 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
#!/bin/sh | |
# settings ========== | |
# src file name | |
fileNamePrefix="ScreenShotFileNameFor5.5inch" | |
offsetFor3_5=20 | |
# dest directory name |