Skip to content

Instantly share code, notes, and snippets.

View Bandd-k's full-sized avatar

Denis Karpenko Bandd-k

  • HSE Student
  • Moscow
View GitHub Profile
@P0ed
P0ed / Colors.swift
Last active August 23, 2019 11:03
Advanced color literals
import Fx
import UIKit
public struct RGBA {
var r: UInt8
var g: UInt8
var b: UInt8
var a: UInt8
}
@idleberg
idleberg / sublime-text-macos-context-menu.md
Last active February 20, 2024 09:37 — forked from vincentmac/sublime-text-osx-context-menu.md
“Open in Sublime Text” in macOS context-menu

This list has been updated for Big Sur (and later). Since I don't use these versions, this guide might still need further improvements. For older macOS versions, please see this older revision.

Open in Sublime Text

  • Open Automator
  • Quick Action
  • Set “Service receives selected” to files or folders in any application
  • Add a Run Shell Script action
  • Set the script action to /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl -n "$@"
  • Set “Pass input” to as arguments