This file contains 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
let id: number = 5; | |
let company: string = 'Traversy Media'; | |
let isPublished: boolean = true; | |
let x: any = 'Hello'; | |
x = true; | |
let age: number; | |
age = 33; |
This file contains 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
//: Playground - noun: a place where people can play | |
import Foundation | |
let currentPath = NSBundle.mainBundle().bundlePath | |
let file = currentPath + "/en_MediaComponents.json" | |
if let jsonData = NSData(contentsOfFile: file) { | |
do { |
This file contains 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
4 Delver of Secrets | |
2 Gurmag Angler | |
4 Snapcaster Mage | |
2 Tasigur, the Golden Fang | |
3 Young Pyromancer | |
1 Burst Lightning | |
1 Deprive | |
1 Electrolyze | |
3 Gitaxian Probe | |
1 Izzet Charm |
This file contains 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
1 Ancestral Recall | |
1 Balance | |
1 Black Lotus | |
1 Brainstorm | |
1 Channel | |
1 Demonic Consultation | |
1 Demonic Tutor | |
1 Fastbond | |
1 Flash | |
1 Gifts Ungiven |
This file contains 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
I made it work by playing around with the orientations and coming back to the original solution ... | |
The final solution is quite close to the one given on the other threads : | |
In the appDelegate : | |
#if GAME_AUTOROTATION == kGameAutorotationUIViewController | |
[director setDeviceOrientation:kCCDeviceOrientationPortrait]; | |
#else | |
[director setDeviceOrientation:kCCDeviceOrientationLandscapeRight]; | |
#endif |
This file contains 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
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
###################### |