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
#!/usr/bin/env bash | |
if [ "$USER" != "root" ] | |
then | |
echo "Installation must be run as 'root' (use sudo)." | |
exit 1 | |
fi | |
echo "Stopping existing service if it is running..." | |
systemctl stop scrypted.service |
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
// | |
// RNHeap.h | |
// Flip | |
// | |
// Created by Daniel van der Merwe on 10/17/17. | |
// Copyright © 2017 Flip Inc. All rights reserved. | |
// | |
#import <React/RCTBridgeModule.h> |
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
// @flow | |
// flow-typed signature: 5154a03b2184ac99b551e16ecd09098b | |
// flow-typed version: <<STUB>>/react-native-maps_v^0.15.3/flow_v0.50.0 | |
declare module 'react-native-maps' { | |
declare type Region = {| | |
latitude: number, | |
longitude: number, | |
latitudeDelta: number, | |
longitudeDelta: number, |
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
{"lastUpload":"2017-10-03T15:19:36.237Z","extensionVersion":"v2.8.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
protocol Injectable { | |
associatedtype T | |
var viewModel: T! {get set} | |
mutating func inject(viewModel: T) | |
func assertDependencies() | |
} | |
extension Injectable { | |
func assertDependencies() { | |
assert(viewModel != nil) |