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
| package main | |
| import "fmt" | |
| // CollectorInterface defines the interface for the collector abstraction | |
| type CollectorInterface interface { | |
| Collect() | |
| SetResolver(ResolverInterface) | |
| } |
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
| image := "us-central1-docker.pkg.dev/mchirico/public/dopt" | |
| version := "v0.0.1" | |
| tag.ImageVersion(image, version) | |
| currentDir, err := os.Getwd() | |
| if err != nil { | |
| return | |
| } |
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
| # This fixed slowness | |
| codesign --remove-signature /Applications/Visual\ Studio\ Code.app/Contents/Frameworks/Code\ Helper\ \(Renderer\).app | |
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
| // | |
| // SqliteBroker.swift | |
| // tv | |
| // | |
| // Created by Michael Chirico on 9/29/18. | |
| // Copyright © 2018 Michael Chirico. All rights reserved. | |
| // | |
| /* | |
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
| package main | |
| import ( | |
| "encoding/json" | |
| "fmt" | |
| "io/ioutil" | |
| "log" | |
| "net/http" | |
| "os" |
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 UIKit | |
| var z:[String:String] = [:] | |
| z["Zoe"] = "Mouse lover..." | |
| struct Z { | |
| var z:[String:String] | |
| func pr() -> 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
| import UIKit | |
| struct Session { | |
| var url: String | |
| func Get(completion: @escaping (_ result: String) -> Void, onFailure: () -> Void) { | |
| let configuraion = URLSessionConfiguration.default | |
| let session = URLSession(configuration: configuraion) | |
| guard let _url = URL(string: url) else { fatalError()} |
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 ContentView: View { | |
| @State var count: Int = 0 | |
| @State var txt: String = "Label:" | |
| var body: some View { | |
| VStack { | |
| Label(self.txt, systemImage: /*@START_MENU_TOKEN@*/"42.circle"/*@END_MENU_TOKEN@*/) | |
| HStack { | |
| Button(action: { |
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 ContentView: View { | |
| @State var count: Int = 0 | |
| @State var txt: String = "" | |
| var body: some View { | |
| VStack { | |
| Label(self.txt, systemImage: /*@START_MENU_TOKEN@*/"42.circle"/*@END_MENU_TOKEN@*/) | |
| HStack { |
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
| package main | |
| import ( | |
| "io" | |
| "log" | |
| "net/http" | |
| "os" | |
| ) | |
| func main() { |
NewerOlder