Skip to content

Instantly share code, notes, and snippets.

View dannyow's full-sized avatar
👁️‍🗨️

Daniel dannyow

👁️‍🗨️
  • Warsaw
View GitHub Profile
@dannyow
dannyow / MetalViewController.swift
Created June 7, 2022 20:08
Hello World in Metal (as a self-contained NSViewController)
import Cocoa
import MetalKit
// Self-contained MetalViewController based on https://metalbyexample.com/modern-metal-1/
class MetalViewController: NSViewController {
var mtkView: MTKView!
var device: MTLDevice!
var commandQueue: MTLCommandQueue!
@dannyow
dannyow / README.md
Created June 26, 2022 10:36 — forked from IsaacXen/README.md
(Almost) Every WWDC videos download links for aria2c.
@dannyow
dannyow / Logger.swift
Last active August 27, 2022 13:07
Logger using os.log
//
// Logger.swift
//
// Created by Daniel Owsiański on 10/07/2022.
//
import Foundation
import os.log
///
@dannyow
dannyow / NSApp+AppIconOverlay.swift
Created January 12, 2023 16:31
Add overlay to the macOS app in runtime
//
// NSApp+AppIconOverlay.swift
//
// Created by Daniel on 12/01/2023.
//
import AppKit
extension NSApplication {
/// Checks if the app is launched from Xcode with attached debugger.