Skip to content

Instantly share code, notes, and snippets.

View MainasuK's full-sized avatar

CMK MainasuK

View GitHub Profile
@MainasuK
MainasuK / RandomGameGraph.gexf
Last active January 4, 2024 10:30
The graph for anime game
<?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>
@MainasuK
MainasuK / PreviewLogger.swift
Created December 11, 2023 04:50 — forked from sergenes/PreviewLogger.swift
SwiftUI Live Preview Logger
#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 {
@MainasuK
MainasuK / MapView.swift
Created November 17, 2023 04:02
Code for Atlas map view
//
// MapView.swift
// Atlas
//
// Created by MainasuK on 2022-4-10.
//
import os.log
import Combine
import CoreDataStack
@MainasuK
MainasuK / vagrant-vmware-tech-preview-apple-m1-pro.md
Created June 9, 2023 09:43 — forked from sbailliez/vagrant-vmware-tech-preview-apple-m1-pro.md
Vagrant and VMWare Tech Preview 21H1 on Apple M1 Pro

Vagrant and VMWare Tech Preview 21H1 on Apple M1 Pro

UPDATE November 20, 2022: VMWare Fusion 13

VMWare Fusion 13 is now released. Read Vagrant and VMWare Fusion 13 Player on Apple M1 Pro for the latest.

Summary

This document summarizes notes taken while to make the VMWare Tech preview work on Apple M1 Pro, it originated

Apple Real Devices Debugging

What you need

  • certificate--which tells your devices that Apple trust you
  • a app id
  • a test device
  • a provisioning profile

Privacy Policy for Atlas for Genshin Impact

Atlas for Genshin Impact do not store and transfer any data to anyone.

That's all.

@MainasuK
MainasuK / AppIcons.command
Created April 2, 2022 08:47 — forked from pd95/AppIcons.command
A ZSH command file to produce the various PNG files required for iOS and macOS app Icons using `sips` (scriptable image processing system) available on any macOS. The resulting PNGs in the "AppIcons" folder can then be dragged into Xcode's `Assets.xcassets` onto a placeholder for an AppIcon.
#!/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
@MainasuK
MainasuK / tmux.conf
Created March 4, 2022 08:14 — forked from ronaldsuwandi/tmux.conf
Personal tmux.conf (updated for 3.2)
###########
# 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
@MainasuK
MainasuK / Apple.license
Last active November 8, 2021 08:52
Apple LICENSED APPLICATION END USER LICENSE AGREEMENT
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
@MainasuK
MainasuK / AutoLayout.swift
Last active June 4, 2020 07:27
Xcode Code Snippets
<#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),
])