Skip to content

Instantly share code, notes, and snippets.

import Foundation
import SwiftUI
#if os(macOS)
import AppKit
public typealias CrossPlatformColor = NSColor
#else
import UIKit
public typealias CrossPlatformColor = UIColor
#endif
@gewill
gewill / remove_utm.user.js
Last active November 9, 2022 03:24 — forked from AndySuen/remove_utm.user.js
Remove utm parameters and medium hash tracking code from url / 去除网页链接中恼人的跟踪参数,网页内容可复制等
// ==UserScript==
// @name Remove utm
// @version 0.2.3
// @description Remove utm parameters and medium hash tracking code from url, 去除网页链接中恼人的跟踪参数
// @updateURL https://gist.github.com/AndySuen/09c480b2f90818b4fe0334e804e1dcc2/raw/remove_utm.user.js
// @homepage https://gist.github.com/AndySuen/09c480b2f90818b4fe0334e804e1dcc2
// @author Andysuen
// @match *://*/*
// @run-at document-idle
// @grant none
@gewill
gewill / xcode-beta-slink.sh
Created July 30, 2022 04:42 — forked from ethanhuang13/xcode-beta-slink.sh
Symbolic link from Xcode.app to Xcode-beta.app (Xcode 11.2)