👨👩👦
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
# A list of devices you want to take the screenshots from | |
devices([ | |
"iPhone 6", | |
"iPhone 6 Plus", | |
"iPhone 5", | |
"iPhone 4s" | |
]) | |
languages([ | |
'en-US' |
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
# How to use | |
e = Repo.get(Exercise, 1) | |
user = Exercise.get_user(e) | |
defmodule GymOclock.Exercise do | |
use Ecto.Model | |
# Other stuff here | |
def get_user(exercise) do |
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
errors = %{} | |
case map_size(errors) do | |
0 -> | |
# Do good stuff | |
_ -> | |
# Do bad stuff | |
end |
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
- (BOOL)isNowAGoodTimeForADrink { | |
return YES; | |
} |
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
enum Thing { | |
Something { | |
callback: |f32| // error: explicit lifetime bound required | |
}, | |
Nothing { | |
callback: |str| // error: explicit lifetime bound required | |
} | |
} |
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
Unable to simultaneously satisfy constraints. | |
Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints) | |
( | |
"<NSLayoutConstraint:0x17009cb60 UIImageView:0x1701f9900.centerX == AVAudioOnlyIndicatorView:0x170199980.centerX>", | |
"<NSLayoutConstraint:0x17009cbb0 H:|-(>=10)-[UIImageView:0x1701f9900] (Names: '|':AVAudioOnlyIndicatorView:0x170199980 )>", | |
"<NSLayoutConstraint:0x17009d970 H:|-(0)-[AVAudioOnlyIndicatorView:0x170199980] (Names: '|':UIView:0x17419a4e0 )>", | |
"<NSLayoutConstraint:0x17009d9c0 H:[AVAudioOnlyIndicatorView:0x170199980]-(0)-| (Names: '|':UIView:0x17419a4e0 )>", | |
"<NSLayoutConstraint:0x17009d6f0 H:|-(0)-[UIV |
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
// | |
// ViewController.swift | |
// SwiftTest | |
// | |
// Created by Josh Holtz on 8/3/14. | |
// Copyright (c) 2014 Josh Holtz. All rights reserved. | |
// | |
import UIKit |
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
// | |
// ViewController.swift | |
// SwiftTest | |
// | |
// Created by Josh Holtz on 8/3/14. | |
// Copyright (c) 2014 Josh Holtz. All rights reserved. | |
// | |
import UIKit |
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
// | |
// ViewController.swift | |
// SwiftTest | |
// | |
// Created by Josh Holtz on 8/3/14. | |
// Copyright (c) 2014 Josh Holtz. All rights reserved. | |
// | |
import UIKit |
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
// | |
// ViewController.swift | |
// SwiftTest | |
// | |
// Created by Josh Holtz on 8/3/14. | |
// Copyright (c) 2014 Josh Holtz. All rights reserved. | |
// | |
import UIKit |