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
//: Playground - noun: a place where people can play | |
import UIKit | |
struct URLCodableTest: Codable { | |
let ou: URL? | |
let u: URL | |
enum CodingKeys: String, CodingKey { | |
case ou |
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/expect -f | |
# | |
# otpauthFromVIPAccess.exp | |
# | |
# Generate otpauth scheme url from Symantec VIP Access. | |
# Usage: | |
# ./otpauthFromVIPAccess.exp [v] | |
# If the "v" argument (or any argument) is specified, verbose output | |
# will be produced on stderr. The otpauth url will be output on stdout. | |
# |
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
// | |
// Collection+movingAverage.swift | |
// | |
// inspired by https://gist.github.com/hirohitokato/5bfc5836480d68074135820d73c04794 | |
import Foundation | |
public protocol ArithmeticType: Comparable, IntegerLiteralConvertible { | |
func +(lhs: Self, rhs: Self) -> Self |