Skip to content

Instantly share code, notes, and snippets.

View jetmind's full-sized avatar

Igor Bondarenko jetmind

View GitHub Profile
@jetmind
jetmind / ini.swift
Last active April 17, 2024 16:07
Parsing .ini file in Swift
import Foundation
typealias SectionConfig = [String: String]
typealias Config = [String: SectionConfig]
func trim(_ s: String) -> String {
let whitespaces = CharacterSet(charactersIn: " \n\r\t")
return s.trimmingCharacters(in: whitespaces)
http://docs.opencv.org/2.4.4-beta/doc/tutorials/introduction/desktop_java/java_dev_intro.html
# Don't forget
$ export JAVA_HOME=/usr/lib/jvm/java-7-oracle/