Use convertToToc.js to parse blog post to toc then generate toc html file with table_of_content_template.html.
What must be changed?
H2 Heading
id, innerText
H3 Heading
Use convertToToc.js to parse blog post to toc then generate toc html file with table_of_content_template.html.
What must be changed?
H2 Heading
id, innerText
H3 Heading
#!/usr/bin/env ruby | |
print "What is the URL of your Downloads resource?\nURL:" | |
url = gets.strip | |
command = "aria2c -x 16 -s 16 #{url} -d ~/Downloads" | |
exec(command) |
struct SectionedArrayFiltering<T> { | |
struct Result { | |
let filteredSection: [Int] | |
let filteredItemsBySection: [Int:[T]] | |
} | |
let input: [[T]] | |
func filter( | |
sectionFilter: (Int) -> Bool = {_ in true}, |
(extension in :Animatable< where A.AnimatableData == EmptyAnimatableData>.animatableData.getter : EmptyAnimatableData | |
(extension in :Animatable< where A.AnimatableData == EmptyAnimatableData>.animatableData.modify : EmptyAnimatableData | |
(extension in :Animatable< where A.AnimatableData == EmptyAnimatableData>.animatableData.setter : EmptyAnimatableData | |
(extension in :Animatable< where A: VectorArithmetic>.animatableData.getter : A | |
(extension in :Animatable< where A: VectorArithmetic>.animatableData.modify : A | |
(extension in :Animatable< where A: VectorArithmetic>.animatableData.setter : A | |
(extension in :Button< where A == PrimitiveButtonStyleConfiguration.Label>.init(PrimitiveButtonStyleConfiguration) -> Button<PrimitiveButtonStyleConfiguration.Label> | |
(extension in :Button< where A == Text>.init(_: LocalizedStringKey, action: () -> ()) -> Button<Text> | |
(extension in :Button< where A == Text>.init<A where A1: StringProtocol>(_: A1, action: () -> ()) -> Button<Text> | |
(extension in :CoreGraphics.CGFloat.magnitudeSqu |
export class CGContext { | |
constructor(document, id) { | |
const c = document.getElementById(id) | |
this.ctx = c.getContext("2d") | |
} | |
move(cgPoint) { | |
console.log("I am ${cgPoint}") | |
} | |
} |
protocol DataCodable { | |
func toData() -> Data | |
init(data: Data) | |
} | |
extension Data: DataCodable { | |
func toData() -> Data { | |
return self | |
} | |
init(data: Data) { |
import UIKit | |
final class CanvasRenderingContext2D { | |
private let ctx: CGContext | |
private let bounds: CGRect | |
init?(fitIn bounds: CGRect = .zero) { | |
guard let ctx = UIGraphicsGetCurrentContext() else { return nil } | |
self.ctx = ctx | |
self.bounds = bounds |
public class FontLoader { | |
private enum Error: Swift.Error { | |
case error(String) | |
} | |
/// Register fonts | |
/// | |
/// - Parameter fonts: Font names | |
static func registerFonts(fonts: [String]) throws { | |
let bundle = Bundle(for: FontLoader.self) |