VMWare Fusion 13 is now released. Read Vagrant and VMWare Fusion 13 Player on Apple M1 Pro for the latest.
This document summarizes notes taken while to make the VMWare Tech preview work on Apple M1 Pro, it originated
import UIKit | |
import PlaygroundSupport | |
import Foundation | |
PlaygroundPage.current.needsIndefiniteExecution = true | |
//URLSessionTaskDelegate | |
//You use this protocol in one of two ways, depending on how you use a URLSession: | |
//If you create tasks with Swift’s async-await syntax, using methods like bytes(for:delegate:) and data(for:delegate:), you pass a delegate argument of this type. The delegate receives callbacks for things like task progress, while the call point awaits the completion of the task. A delegate that receives life cycle and authentication challenge callbacks as the transfer progresses. | |
//If you add tasks to the session with methods like dataTask(with:) and downloadTask(with:), then you implement this protocol’s methods in a delegate you set on the session. This session delegate may also implement other protocols as appropriate, like URLSessionDownloadDelegate and URLSessionDataDelegate. You can also assign a delegate of this type directly to the task to intercept callbacks before the task deliver |
/* | |
* This is an example provided by Facebook are for non-commercial testing and | |
* evaluation purposes only. | |
* | |
* Facebook reserves all rights not expressly granted. | |
* | |
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS | |
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
* FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL | |
* FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN |
<?xml version="1.0" encoding="UTF-8"?> | |
<gexf version="1.2" xmlns="http://www.gexf.net/1.2draft" xmlns:viz="http:///www.gexf.net/1.1draft/viz"> | |
<meta/> | |
<graph defaultedgetype="directed"> | |
<nodes> | |
<node id="39C9D8B9-F265-4449-BA40-C1B6B938EC6E" label="旅行者"> | |
<viz:size/> | |
<viz:position x="3.322254539281135" y="0.4546701587541284"/> | |
</node> | |
</nodes> |
#pragma mark - Article: https://sergey-nes.medium.com/enhance-your-swiftui-live-preview-workflow-with-previewlogger-6c768e7362a5 | |
import SwiftUI | |
#pragma mark - ContentView | |
struct ContentView: View { | |
@EnvironmentObject var previewLogger: PreviewLogger | |
var body: some View { |
// | |
// MapView.swift | |
// Atlas | |
// | |
// Created by MainasuK on 2022-4-10. | |
// | |
import os.log | |
import Combine | |
import CoreDataStack |
VMWare Fusion 13 is now released. Read Vagrant and VMWare Fusion 13 Player on Apple M1 Pro for the latest.
This document summarizes notes taken while to make the VMWare Tech preview work on Apple M1 Pro, it originated
#!/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 |
########### | |
# 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 |