Skip to content

Instantly share code, notes, and snippets.

View vmanot's full-sized avatar

Vatsal Manot vmanot

View GitHub Profile
@stephancasas
stephancasas / NSApplication+openSettings.swift
Last active April 27, 2024 04:49
An extension enabling global access to settings scene of a macOS SwiftUI application.
//
// NSApplication+openSettings.swift
//
// Created by Stephan Casas on 12/3/23.
//
import SwiftUI;
fileprivate let kAppMenuInternalIdentifier = "app"
fileprivate let kSettingsLocalizedStringKey = "Settings\\U2026";
@stephancasas
stephancasas / CGWindowDictionary.swift
Last active December 4, 2023 00:45
A convenience type for working with the CFDictionary values returned by CGWindowListCopyWindowInfo(_:, _:)
//
// CGWindowDictionary.swift
//
// Created by Stephan Casas on 11/2/23.
//
import Foundation;
import CoreGraphics;
import AppKit;
@stephancasas
stephancasas / CGCoordinateSpaces.swift
Created November 8, 2023 05:40
Extensions and utilities for working with CGPoint and CGRect across AppKit and CoreGraphics coordinate spaces.
//
// CGCoordinateSpaces.swift
//
// Created by Stephan Casas on 11/7/23.
//
import Foundation;
// MARK: - CGPoint
@mcapodici
mcapodici / lob.py
Last active July 27, 2023 06:51
modal local code runner script
import sys
import modal
import os
# Script to run your local code
#
# * Requires python package modal-client install, and you have obtained a token, e.g.:
# ```
# pip install modal-client
# modal token new

This page is now depreacted!

Check out the repo instead. The Wisdom of Quinn Now with 100% more archived PDFs.

The Wisdom of Quinn

Informative DevForum posts from everyone's favorite DTS member.

(Arranged newest to oldest)

@uroboro
uroboro / iOS Exploits.md
Last active September 1, 2022 08:36
List of interesting things to break iOS with
@regexident
regexident / 0000-HashVisitable.md
Last active October 12, 2017 09:00
Swift Evolution Proposal Draft for replacing `Hashable` with `Hasher` and `HashVisitable`.

HashVisitable

During the review process, add the following fields as needed:

Introduction

@akisute
akisute / GrayShark.swift
Last active May 13, 2016 17:05
I have learned a "Gray Magic" of the Swift.
import Foundation
class GrayShark {
var name:String
var howSwim:String
init(name:String, howSwim:String) {
self.name = name
self.howSwim = howSwim;
}