I hereby claim:
- I am mainasuk on github.
- I am mainasuk (https://keybase.io/mainasuk) on keybase.
- I have a public key ASAsqiEANz0eSQXHxi1YjIBC1m9lm3k8TldYLv-HRafSHAo
To claim this, I am signing this object:
import UIKit | |
@UIApplicationMain | |
class AppDelegate: UIResponder, UIApplicationDelegate { | |
var window: UIWindow? | |
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { | |
// Set up application here |
I hereby claim:
To claim this, I am signing this object:
import Cocoa | |
#if canImport(SwiftUI) && DEBUG | |
import SwiftUI | |
struct NSViewControllerPreview<ViewController: NSViewController>: NSViewControllerRepresentable { | |
let viewController: ViewController | |
init(_ builder: @escaping () -> ViewController) { | |
viewController = builder() |
let stream = CGDisplayStream(display: CGDirectDisplayID(), outputWidth: 1, outputHeight: 1, pixelFormat: Int32(kCVPixelFormatType_32BGRA), properties: nil, handler: { (status, time, surface, update) in | |
// do nothing | |
}) |
final class ViewModel: NSObject { | |
@objc var tree: [Node] = [] | |
override init() { | |
super.init() | |
} | |
} |
#!/usr/bin/swift | |
import Foundation | |
class Bash { | |
static var debugEnabled = false | |
// save command search time | |
static var commandCache: [String: String] = [:] | |
@discardableResult |
<#subview#>.translatesAutoresizingMaskIntoConstraints = false | |
addSubview(<#subview#>) | |
NSLayoutConstraint.activate([ | |
<#subview#>.topAnchor.constraint(equalTo: topAnchor), | |
<#subview#>.leadingAnchor.constraint(equalTo: leadingAnchor), | |
trailingAnchor.constraint(equalTo: <#subview#>.trailingAnchor), | |
bottomAnchor.constraint(equalTo: <#subview#>.bottomAnchor), | |
]) |
Apps made available through the App Store are licensed, not sold, to you. Your license to each App is subject to your prior acceptance of either this Licensed Application End User License Agreement (“Standard EULA”), or a custom end user license agreement between you and the Application Provider (“Custom EULA”), if one is provided. Your license to any Apple App under this Standard EULA or Custom EULA is granted by Apple, and your license to any Third Party App under this Standard EULA or Custom EULA is granted by the Application Provider of that Third Party App. Any App that is subject to this Standard EULA is referred to herein as the “Licensed Application.” The Application Provider or Apple as applicable (“Licensor”) reserves all rights in and to the Licensed Application not expressly granted to you under this Standard EULA. | |
a. Scope of License: Licensor grants to you a nontransferable license to use the Licensed Application on any Apple-branded products that you own or control and as permitted by the Usag |
########### | |
# general # | |
########### | |
# Replace C-b prefix with Alt+Space (so it won't clash with vim) | |
unbind C-b | |
set-option -g prefix M-Space | |
set-window-option -g mode-keys vi | |
set-option -g default-shell /usr/local/bin/fish |
#!/bin/zsh | |
# Shell Script to create all relevant icons from an high resolution artwork | |
if [ "x$1" != "x" -a -f "$1" ] ; then | |
INPUT=$1 | |
else | |
INPUT="Artwork.png" | |
fi | |
if [ ! -f "$INPUT" ]; then |