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
| //: https://developer.apple.com/library/ios/documentation/Swift/Conceptual/Swift_Programming_Language/CollectionTypes.html | |
| import UIKit | |
| var str = "Hello, playground" | |
| var someInts = [Int]() | |
| print("someInts is of type [Int] with \(someInts.count) items.") | |
| someInts.append(3) | |
| print("someInts is of type [Int] with \(someInts.count) items.") |
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 | |
| // GuessingGame | |
| // | |
| // Created by carlynorama on 2/7/16. | |
| // CC 0.0 | |
| // | |
| 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
| //: Playground - noun: a place where people can play | |
| import UIKit | |
| var str = "Hello, playground" | |
| //I seem to need function to get the case statement function matching to work. | |
| //I don't know why yet, but I did find versions to do what I wanted | |
| //without it below. | |
| //To read: http://oleb.net/blog/2015/09/swift-pattern-matching/ |
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 | |
| // PrimeChecker | |
| // | |
| // 2/7/16. | |
| // CC BY carlynorama. | |
| // | |
| 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 | |
| // BasicTimer | |
| // | |
| // Created by carlynorama on 2/9/16. | |
| // Do what you want with it. | |
| // | |
| 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
| // TimesTable | |
| // | |
| // Created 2/13/16. | |
| // Do as you want, 2016 carlynorama. No rights reserved. | |
| // Videos: https://www.udemy.com/the-complete-ios-9-developer-course/learn/#/lecture/3193364 | |
| // https://www.udemy.com/the-complete-ios-9-developer-course/learn/#/lecture/3193368 | |
| // http://stackoverflow.com/questions/31200640/xcode-swift-nsuserdefaults-save-the-highscore-if-quit-app-and-restart-it-wher | |
| // http://alvinalexander.com/java/edu/pj/pj010018 | |
| 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 | |
| // keyBoardControll | |
| // No rights reserved. | |
| // | |
| import UIKit | |
| class ViewController: UIViewController, UITextFieldDelegate { |
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
| /* | |
| SOURCES: | |
| http://stackoverflow.com/questions/600743/how-to-get-div-height-to-auto-adjust-to-background-size | |
| http://jsfiddle.net/TPEFn/2/ | |
| */ | |
| /* | |
| Welcome to Custom CSS! | |
| */ | |
| #page { |
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
| //License: CC 0 | |
| Hexagon h1, h2; | |
| void setup() { | |
| size(640, 360); | |
| fill(255, 126); | |
| h1 = new Hexagon(100, 200, 70); | |
| h2 = new Hexagon(20, 40, 90); |
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
| //Derivative of | |
| //http://www.openprocessing.org/sketch/61968 | |
| class Cell | |
| { | |
| PVector loc; | |
| color c; | |
| Cell(int _x, int _y, color _c) | |
| { | |
| loc = new PVector(_x, _y); |