create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
import SwiftUI | |
/// View model protocol | |
protocol ViewModel: ObservableObject { | |
var count: Int { get } | |
func increase() | |
} | |
/// Concrete implementation | |
class MyViewModel: ViewModel { |
import Foundation | |
import UIKit | |
import Rswift | |
import RxCocoa | |
import RxSwift | |
import StatefulCollectionView | |
class BookingsController: ViewController { | |
var viewModel: BookingsViewModelProtocol! |
/** | |
Step 1: info.plist, set: | |
UIFileSharingEnabled = YES | |
LSSupportsOpeningDocumentsInPlace = YES | |
*/ | |
/** | |
Step 2: I used a pod that is a thin wrapper over FileManager, created by Sundell | |
Podfile, set | |
pod 'Files', '~> 4.0.2' |
class SomeControl: UIControl { | |
private var tapGestureRecognizer: UITapGestureRecognizer! | |
func setupGestureRecognizer() { | |
tapGestureRecognizer = UITapGestureRecognizer(target: self, action: #selector(tapped(_:))) | |
addGestureRecognizer(tapGestureRecognizer) | |
} | |
@objc func tapped(_ gestureRecognizer: UITapGestureRecognizer) { | |
let location = gestureRecognizer.location(in: self) |
# Your keymap | |
# | |
'body': | |
'ctrl-tab': 'pane:show-next-item' | |
'alt-cmd-up': 'pane:split-up' | |
'alt-cmd-down': 'pane:split-down' | |
'shift-cmd-L': 'application:open-dev' | |
'shift-cmd-0': 'window:reset-font-size' | |
'.platform-darwin': |
import UIKit | |
typealias JSON = [String : Any] | |
fileprivate let imageCache = NSCache<NSString, UIImage>() | |
extension NSError { | |
static func generalParsingError(domain: String) -> Error { | |
return NSError(domain: domain, code: 400, userInfo: [NSLocalizedDescriptionKey : NSLocalizedString("Error retrieving data", comment: "General Parsing Error Description")]) | |
} | |
} |
sh: git rebase 'commit-hash-to-amend^' | |
text editor: replace 'pick' to 'edit' on the target commit hash. | |
text editor: save and quit | |
code: Apply all changes to amend. | |
sh: git commit --all --amend --no-edit | |
sh: git rebase --continue |
set number | |
syntax on | |
set tabstop=2 | |
set autoindent |
#ifndef HERO_H | |
#define HERO_H | |
//////////////////////////////////////////////////////////////////////////////// | |
class Hero { | |
int power; | |
public: | |
void hyperspaceJump(int); | |
}; |