Skip to content

Instantly share code, notes, and snippets.

@kenwilcox
kenwilcox / gist:796f035fbe1a579e4a2c8489aeacdfc3
Created September 11, 2016 21:42 — forked from adamstac/gist:8347083
Enable HiDPI mode on a VMware Fusion OS X 10.9 Mavericks Vagrant VM
  1. Set "Use full resolution for Retina display" in the VM's Settings > Display
  2. Run this command in Terminal sudo defaults write /Library/Preferences/com.apple.windowserver.plist DisplayResolutionEnabled -bool true
  3. In System Preferences, set the display to "scaled" using the resolution 1292 x 807 (HiDPI)
  4. Enjoy.
import UIKit
import QuartzCore
class ViewController: UIViewController {
@IBOutlet weak var label: UILabel
@IBOutlet weak var counter: UILabel
override func viewDidLoad() {
super.viewDidLoad()
@kenwilcox
kenwilcox / setup.md
Last active August 29, 2015 14:08 — forked from bendyorke/setup.md
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
green='\033[0;32m'