Skip to content

Instantly share code, notes, and snippets.

View darrensapalo's full-sized avatar

Darren darrensapalo

View GitHub Profile
@darrensapalo
darrensapalo / UIFont+.swift
Last active June 2, 2021 09:42 — forked from ptsakyrellis/UIFont+.swift
UIFont extensions to be able to get bold and bold italic fonts directly from a UIFont object
/**
Swift 2
UIFont extensions to be able to get bold and bold italic fonts directly
from a UIFont object
*/
import Foundation
import UIKit
extension UIFont {
@darrensapalo
darrensapalo / launch_sublime_from_terminal.markdown
Last active April 1, 2016 05:39 — forked from artero/launch_sublime_from_terminal.markdown
Launch Sublime Text 2 from the Mac OS X Terminal

Launch Sublime Text 2 from the Mac OS X Terminal

Sublime Text 2 ships with a CLI called subl (why not "sublime", go figure). This utility is hidden in the following folder (assuming you installed Sublime in /Applications like normal folk. If this following line opens Sublime Text for you, then bingo, you're ready.

Using Sublime Text 2

open /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl

Using Sublime Text 3