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
// | |
// Keyframes.swift | |
// Watch Extension | |
// | |
// Created by Leo Mehlig on 17.10.19. | |
// Copyright © 2019 Asana Rebel GmbH. All rights reserved. | |
// | |
import SwiftUI |
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
/// This is a workaround to parse an generic subelement of a json object. It just parses anything it finds. Currently supports Dictionary, Array, String, Int, Double, Bool.struct AnyJSON: Decodable { | |
enum Error: Swift.Error { | |
case noContainter | |
case noSingleValue | |
} | |
struct CodingKeys: CodingKey { | |
var stringValue: String | |
init?(stringValue: String) { | |
self.stringValue = stringValue | |
} |
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
#!/usr/bin/env ruby | |
require 'pathname' | |
require 'fileutils' | |
if ARGV.first && ARGV.first.length > 0 | |
path = Pathname.new(ARGV.first).realpath() | |
args = ARGV.drop(1).join(" ") | |
else | |
path = Pathname.pwd() | |
args = ARGV.join(" ") |