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
| // (C) TellowKitten Discord Swift | |
| struct LinkedList<E> { | |
| enum LinkedListNode { | |
| case empty | |
| indirect case full(E, next: LinkedListNode) | |
| } | |
| var head: LinkedListNode = .empty |
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
| rsnapshot { | |
| host.hostname = "rsnapshot"; | |
| path = "/jails/rsnapshot"; | |
| allow.raw_sockets; | |
| ip4.addr = 10.0.1.19; # 10.0.1 er network space i mit lokale network | |
| devfs_ruleset="5"; | |
| mount.devfs; | |
| exec.start = "/bin/sh /etc/rc"; | |
| exec.stop = "bin/sh /etc/rc.shutdown"; | |
| } |
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 Vapor | |
| import Service | |
| import Crypto | |
| import Foundation | |
| private var b2CacheKey = "__b2_authorization_token" | |
| public struct B2Config: Service { | |
| public let keyID: String | |
| public let applicationID: String |
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
| { | |
| "version": "1.0", | |
| "identifier": "Apple_Demo", | |
| "title": "Simple with Headline above Header Image", | |
| "language": "en", | |
| "layout": { | |
| "columns": 7, | |
| "width": 1024, | |
| "margin": 70, | |
| "gutter": 40 |
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 LoginView: View { | |
| @State var username: String = "" | |
| @State var password: String = "" | |
| @State var loggedIn = false | |
| @State var loginMessage: String = "" | |
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 func upload(parts: [Content], url: uploadUrl) throws -> Future<Response> { | |
| var b2Headers: [String: String] = ["Content-Type": "multipart/form-data; boundary=-123-"] | |
| b2Headers["Content-Length"] = // Err... We'll figure this out later | |
| let headers = HTTPHeaders(b2Headers.map { $0 }) | |
| let request = Request(using: self.client.container) | |
| request.http.method = .POST | |
| request.http.headers = headers | |
| request.http.body = "" |
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
| // swift-tools-version:5.1 | |
| // The swift-tools-version declares the minimum version of Swift required to build this package. | |
| import PackageDescription | |
| let package = Package( | |
| name: "pmchanger", | |
| products: [ | |
| // Products define the executables and libraries produced by a package, and make them visible to other packages. | |
| .library( |
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
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <SDL2/SDL.h> | |
| enum PlayerNumber {one,two}; | |
| enum PlayerDirection {up, down, still}; | |
| typedef enum PlayerDirection BallYDirection; | |
| typedef enum ballXDirection {left, right} BallXDirection; |
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
Show hidden characters
| { | |
| "folders": | |
| [ | |
| { | |
| "folder_exclude_patterns": | |
| [ | |
| ".*", | |
| "docs", | |
| "Sources", | |
| "Tests" |
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
| let package = Package( | |
| name: "Manga", | |
| platforms: [.macOS(.v10_14)], | |
| dependencies: [ | |
| ... | |
| .package(url: "https://github.com/JohnSundell/Plot.git", from: "0.5.0") | |
| ... | |
| ], | |
| targets: [ | |
| .target(name: "App", dependencies: [ |