ApolloDiskClient
public class ApolloDiskClient {
public init() {
}
func handle<Operation: GraphQLOperation>(operation: Operation) -> Result<Data, Error> {
if operation.operationType == .query {| #!/usr/bin/env bash | |
| # generate-dockerfile.sh | |
| # Creates a base Dockerfile from devbox.json and devbox.lock files | |
| # Usage: ./generate-dockerfile.sh [devbox.json] [devbox.lock] [output-dockerfile] | |
| set -euo pipefail | |
| # Help function | |
| show_help() { |
| { | |
| "name":"0.1.21", | |
| "notes":"First Version", | |
| "pub_date":"2022-03-28T21:07:56.128Z", | |
| "platforms": { | |
| "darwin": { | |
| "signature":"dW50cnVzdGVkIGNvbW1lbnQ6IHNpZ25hdHVyZSBmcm9tIHRhdXJpIHNlY3JldCBrZXkKUlVUc211MzZrNk5jakJGenlKU0RDWUpPeURJWGpDalJ6VVpKYXFNbjZWUkRtMjB1M2pNOUVOeTFBK2VXU3p0eXYzS0FjZWhKdTlrSjFWc2JQWlhEc3grNmUyVlIwTEFTbXdVPQp0cnVzdGVkIGNvbW1lbnQ6IHRpbWVzdGFtcDoxNjQ4NTgzOTQxCWZpbGU6L1VzZXJzL2FuZHJlY2FycmVyYS9Eb2N1bWVudHMvbGFtYmRvL3R1bm5lbHRvL3RhcmdldC91bml2ZXJzYWwtYXBwbGUtZGFyd2luL3JlbGVhc2UvYnVuZGxlL21hY29zL1R1Ym8uYXBwLnRhci5negp5MzBmOG1qd1IrM29vOC9jTGt1TWFrOU5ISTJhU2V6MG1SOE1DbGFQa0VxZzAydGM5QVRBME12cDAzUkNaRnE3RmFmSk83L05vdWtPWGpxcndHOFlCZz09Cg==", | |
| "url":"https://github.com/Lambdo-Labs/tubo-app-releases/releases/download/0.1.21/Tubo.app.tar.gz" | |
| }, | |
| "linux": { |
| struct UserData { | |
| } | |
| protocol UserServiceProtocol { | |
| var user: UserData? { get set } | |
| func load() | |
| } | |
| class UserGraphQLService: UserServiceProtocol { |
public class ApolloDiskClient {
public init() {
}
func handle<Operation: GraphQLOperation>(operation: Operation) -> Result<Data, Error> {
if operation.operationType == .query {| import Foundation | |
| // Complete the longestSequence function below. | |
| /// Finds the largest prime divisor | |
| func findLargestDivisor(for number: Int)-> Int { | |
| let maxInt = Int(sqrt(Double(number)).rounded(.up) + 1) | |
| for possibleDivisor in 2..<maxInt{ | |
| if number % possibleDivisor == 0 { | |
| return number / possibleDivisor | |
| } |
| import SwiftUI | |
| struct ContentView : View { | |
| @State var counter = 0 | |
| var body: some View { | |
| VStack{ | |
| Text("\(counter)") | |
| HStack { | |
| Button(action: onAdd){Text("Add")} |
| <template> | |
| <div id="app"> | |
| <p>{{counter}}</p> | |
| <button @click="onAdd">add</button> | |
| <button @click="onMinus">minus</button> | |
| </div> | |
| </template> | |
| <script> | |
| // import HelloWorld from './components/HelloWorld.vue' |