- Set "Use full resolution for Retina display" in the VM's Settings > Display
- Run this command in Terminal
sudo defaults write /Library/Preferences/com.apple.windowserver.plist DisplayResolutionEnabled -bool true
- In System Preferences, set the display to "scaled" using the resolution 1292 x 807 (HiDPI)
- Enjoy.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var counter = [ | |
"fizz": 0, | |
"buzz": 0, | |
"fizzbuzz": 0, | |
"numbers": 0 | |
] | |
for i in 1...100 { | |
switch i { | |
case let x where (x % 3) == 0 && (x % 5) == 0: |
Yesterday I was playing with Carthage for the first time. I got Alamofire to download and build in the simulator just fine.
However, when I tried to upload it to iTunes Connect it failed with PIE errors, invalid iOS min version... and something else, I don't remember...
What I did to get it to work:
- Opened up the Alamofire workspace that Carthage downloaded for me.
- On the project tab set the deployment target to 8.0
- In Info.plist added MinimumOSVersion, string value of 8.0
- Saved the project
- Opened terminal to the Carthage/Checkouts/Alamofire directory
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
div#main.container>h1+table>tr.rows*4>td.cols*6>{Item $}^p |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
import QuartzCore | |
class ViewController: UIViewController { | |
@IBOutlet weak var label: UILabel | |
@IBOutlet weak var counter: UILabel | |
override func viewDidLoad() { | |
super.viewDidLoad() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using Microsoft.Win32; | |
using System.Windows.Forms; | |
namespace FixIE | |
{ | |
public class IEEmulation |
##Some apps to install before moving forward:
- F.lux
- https://justgetflux.com
- direct: https://justgetflux.com/dlmac.html
- temp fix on 10.10: disable automatic graphics switching (System Preferences -> Energy Saver)
- Spectacle
- iTerm 2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
namespace Pred | |
{ | |
public class Pred | |
{ | |
static void Main() | |
{ | |
List<string> list = new List<string>(); |
NewerOlder