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
// | |
// Sir.swift | |
// corona | |
// | |
// Created by Ivo Vacek on 02/04/2020. | |
// Copyright © 2020 Ivo Vacek. All rights reserved. | |
// | |
import Foundation |
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
// | |
// ContentView.swift | |
// tmp073 | |
// | |
// Created by Ivo Vacek on 03/03/2020. | |
// Copyright © 2020 Ivo Vacek. All rights reserved. | |
// | |
import SwiftUI | |
struct UnitPicker: View { |
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
import SwiftUI | |
struct FullWidthImageView: View { | |
@ObservedObject var model = modelStore | |
var body: some View { | |
VStack { | |
Image(systemName: model.img) | |
.resizable() | |
.aspectRatio(contentMode: .fit) | |
.frame(width: 200) |
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
// | |
// main.swift | |
// echod | |
// | |
// Created by Ivo Vacek on 27/12/2018. | |
// Copyright © 2018 Ivo Vacek. All rights reserved. | |
// | |
import Network | |
import Foundation |
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
import Darwin | |
import Dispatch | |
class EchoUDPServer { | |
// syncQueue help us print and read/write safely from our internal storage | |
// while running, the main queue is blocking with readLine() | |
private let syncQueue = DispatchQueue(label: "syncQueue") | |
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
// | |
// main.swift | |
// echoCLI | |
// | |
// Created by Ivo Vacek on 13/05/2017. | |
// Copyright © 2017 Ivo Vacek. All rights reserved. | |
// | |
// Minimalistic Multi-Client EchoServer written in Swift | |
// |
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
public class Rabbit { | |
typealias Vect = (UInt32, UInt32, UInt32, UInt32, UInt32, UInt32, UInt32, UInt32) | |
static let vect0: Vect = (0,0,0,0,0,0,0,0) | |
typealias State = (x: Vect, c: Vect, carry: UInt32) | |
static let state0: State = (x: vect0, c: vect0, carry: 0) | |
public typealias Key = (UInt32, UInt32, UInt32, UInt32) | |
public static let key0: Key = (0,0,0,0) | |
public typealias IV = (UInt32,UInt32) |
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
// | |
// Json.swift | |
// BotWaRz | |
// | |
// Created by Ivo Vacek on 06/10/15. | |
// Copyright © 2015 Ivo Vacek. All rights reserved. | |
// | |
// enum doesn't support stored properties !!! |