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
@Configuration | |
public class MultiConnectionSupport { | |
@Value("${server.port}") | |
private int serverPort; | |
@Value("${server.http.port}") | |
private int httpServerPort; | |
@Bean | |
public EmbeddedServletContainerFactory servletContainer() { |
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 Foundation | |
class MyService: NSObject, MyServiceProtocol { | |
func upperCaseString(_ string: String, withReply reply: @escaping (String) -> Void) { | |
let response = string.uppercased() | |
reply(response) | |
} | |
} |
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
#!/bin/bash | |
# Run this script like this: | |
# curl http://bit.ly/git-me | sh | |
cat > ~/.gitconfig <<EOF | |
[user] | |
name = mikeumus | |
email = [email protected] | |
[alias] | |
co = checkout |
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
http-server: | |
host-port: ":5778" | |
processor: | |
jaeger-binary: | |
server-host-port: ":6832" | |
jaeger-compact: | |
server-host-port: ":6831" | |
zipkin-compact: | |
server-host-port: ":5775" |
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
// Copyright © 2019 Simon Strandgaard. All rights reserved. | |
import SwiftyBeaver | |
public let log = SwiftyBeaver.self | |
extension BaseDestination.LevelColor { | |
mutating func applyDefaultStyle() { | |
debug = "🏐 " | |
info = "🏐 " | |
verbose = "🏐 " |
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 | |
import ImageCaptureCore | |
import MobileCoreServices | |
class ViewController: UIViewController { | |
var deviceFinder = DeviceFinder() | |
override func viewDidLoad() { | |
super.viewDidLoad() |
OlderNewer