Click to toggle contents of `code`
CODE!
FLOAT NUMBER \f | |
((?:[\+-]?[0-9]*[\.,][0-9]+)|(?:[\+-]?[0-9]+)) | |
DEGREE SEPARATOR \ds | |
[^ms'′"″,\.\dNEWnew] | |
MINUTE SEPARATOR \ms | |
[^ds°"″,\.\dNEWnew] | |
SECOND SEPARATOR \ss |
import android.content.Context; | |
import android.graphics.Bitmap; | |
import android.graphics.BlurMaskFilter; | |
import android.graphics.BlurMaskFilter.Blur; | |
import android.graphics.Canvas; | |
import android.graphics.Color; | |
import android.graphics.Paint; | |
import android.graphics.Paint.Style; | |
import android.graphics.Rect; | |
import android.graphics.RectF; |
CODE!
# Merge Script | |
# 1 | |
# Set bash script to exit immediately if any commands fail. | |
set -e | |
# 2 | |
# Setup some constants for use later on. | |
FRAMEWORK_NAME="${PROJECT_NAME}" | |
import Firebase | |
extension DataSnapshot { | |
func toObject<T:Codable>() throws -> T { | |
var newValue = value as! [String: Any] | |
newValue["uid"] = key | |
let data = try! JSONSerialization.data(withJSONObject: newValue, options: .sortedKeys) | |
return try JSONDecoder().decode(T.self, from: data) | |
} |
import RxRelay | |
import RxSwift | |
@propertyWrapper | |
final class RxRelayProperty<Value> { | |
var wrappedValue: Value { | |
get { relay.value } | |
set { relay.accept(newValue) } | |
} |