$ xcrun simctl list --json
$ xcrun simctl delete unavailable
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>NSAppTransportSecurity</key> | |
<dict> | |
<key>NSExceptionDomains</key> | |
<dict> | |
<key>www.howsmyssl.com</key> | |
<dict> |
git log $(git describe --tags --abbrev=0)..HEAD --no-merges --oneline > new-in-this-release.log |
private extension MyTests { | |
private func setLocaleAsJP() { | |
let original = class_getClassMethod(NSLocale.self, #selector(getter: NSLocale.current))! | |
let swizzled = class_getClassMethod(NSLocale.self, #selector(NSLocale.myCurrentLocale))! | |
method_exchangeImplementations(original, swizzled) | |
} | |
} | |
// https://stackoverflow.com/questions/31065859/how-can-i-change-the-locale-on-the-xcode-playground | |
fileprivate extension NSLocale { |
# Install git-lfs | |
# (From https://github.com/git-lfs/git-lfs/wiki/Installation) | |
sudo apt-get install software-properties-common | |
sudo add-apt-repository ppa:git-core/ppa | |
sudo apt-get update | |
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash | |
sudo apt-get install git-lfs | |
git lfs install | |
# Add git-lfs to an existing repo |
// | |
// ArrowImageGenerator.swift | |
// | |
// Created by Alessio Orlando on 07/10/15. | |
// Copyright © 2015 Alessio Orlando. All rights reserved. | |
// | |
import Foundation | |
import UIKit |
extension UserDefaults { | |
subscript<T>(key: String) -> T? { | |
get { | |
return value(forKey: key) as? T | |
} | |
set { | |
set(newValue, forKey: key) | |
} | |
} | |
Network views tend to be the view of the network from a single node, or small selection of nodes. They are not complete views of the network. This is impossible to achieve. Even if many node views were combined, it would still be incomplete.
These network views, or network maps, have been termed 'visualisers' by the LN community.
Screenshots may reflect older visual styles, and are dated accordingly.
import WebKit | |
public class CustomWebView: WKWebView { | |
// var javascript: Javascript! | |
public override init(frame: CGRect, configuration: WKWebViewConfiguration = WKWebViewConfiguration()) { | |
super.init(frame: frame, configuration: configuration) | |
doInit() |