Apps used: Cursor.so / github copilot chat
This is like when humanity stopped using horses for transportation and started using cars. 🐴 👉 🚗
Apps used: Cursor.so / github copilot chat
This is like when humanity stopped using horses for transportation and started using cars. 🐴 👉 🚗
import Cocoa | |
/* | |
let a = TempNSView(frame:NSRect(0,0,100,100)) | |
a.name = "a" | |
addSubview(a) | |
let b = TempNSView(frame:NSRect(50,50,100,100)) | |
b.name = "b" |
Table of Contents
import json | |
import urllib.request | |
import ssl | |
username = input("Enter your GitHub username: ") | |
url = f"https://api.github.com/users/{username}/events" | |
context = ssl.create_default_context() | |
context.check_hostname = False | |
context.verify_mode = ssl.CERT_NONE |
TL;DR: Because Notion is mehhh 🙊, and github is more awwwwwesome 😎
#if os(macOS) | |
import Cocoa | |
/** | |
* Adds custom padding | |
* - Remark: ⚠️️ Experimental, not yet in use ⚠️️ deprecate? move to issues or gist? | |
*/ | |
final class CustomTextFieldCell: NSTextFieldCell { | |
private static let padding: CGSize = .init(width: 2.0, height: 4.0) | |
/** | |
* - Parameter rect: NSRect |
/** | |
* Table extensions | |
* - Fixme: ⚠️️ deprecate these, not in use anymore. move to gist or something? | |
*/ | |
extension UITableViewDataSource where Self: UITableView { | |
/** | |
* Returns all IndexPath's in a table | |
* ## Examples: | |
* table.indexPaths.forEach { | |
* selectRow(at: $0, animated: true, scrollPosition: .none) // selects all cells |
import Foundation | |
/** | |
* - Fixme: ⚠️️ deprecate? yes! | |
*/ | |
public struct NSRectCorner: OptionSet { | |
public let rawValue: Int | |
/** | |
* - Parameter rawValue: 0 to 3 | |
*/ | |
public init(rawValue: Int) { |