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 | |
cd / | |
export DEBIAN_FRONTEND=noninteractive | |
ln -fs /usr/share/zoneinfo/Europe/Moscow /etc/localtime | |
apt update | |
apt install -y cmake git wget libpython2.7-dev g++ libssl-dev libboost-all-dev | |
mkdir /src | |
cd /src |
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
diff --git a/CMakeLists.txt b/CMakeLists.txt | |
index 1f7c65b..950068c 100644 | |
--- a/CMakeLists.txt | |
+++ b/CMakeLists.txt | |
@@ -45,7 +45,7 @@ MESSAGE("OPENCV VERSION:") | |
MESSAGE(${OpenCV_VERSION}) | |
find_package(Eigen3 3.1.0 REQUIRED) | |
-find_package(Pangolin REQUIRED) | |
+#find_package(Pangolin REQUIRED) |
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
import os | |
import plistlib | |
INPUT_FILE = os.path.join(os.environ['HOME'], 'Library/Safari/WebFeedSources.plist') | |
OUTPUT_FILE = 'rss.txt' | |
# Load and parse the Bookmarks file | |
with open(INPUT_FILE, 'rb') as plist_file: | |
plist = plistlib.load(plist_file) |
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
final class ViewName: UIView { | |
@IBOutlet weak var view: UIView! | |
override init(frame: CGRect) { | |
super.init(frame: frame) | |
setupView() | |
} | |
required init?(coder aDecoder: NSCoder) { |
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
import Foundation | |
import ObjectMapper | |
import RealmSwift | |
final class ListTransform<T:Object> : TransformType where T:Mappable { | |
typealias Object = List<T> | |
typealias JSON = [[String:Any]] | |
let mapper = Mapper<T>() |
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
import Foundation | |
public protocol Cachable { | |
var fileName: String { get } | |
func transform() -> Data | |
} | |
final class Cacher { | |
let destination: URL | |
private let queue = OperationQueue() |