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 | |
| // HelloAlamofire1 | |
| // | |
| // Created by Christopher Pedersen on 2/28/19. | |
| // Copyright © 2019 Christopher Pedersen. All rights reserved. | |
| // | |
| import UIKit | |
| import Alamofire |
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 | |
| // HelloRealm | |
| // | |
| // Created by Christopher Pedersen on 2/25/19. | |
| // Copyright © 2019 Christopher Pedersen. All rights reserved. | |
| // | |
| import UIKit | |
| import RealmSwift |
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
| <!-- Add This Code Snippet to Your Info.plist file on iOS to use HTTP --> | |
| <key>NSAppTransportSecurity</key> | |
| <dict> | |
| <!--Include to allow all connections (DANGER)--> | |
| <key>NSAllowsArbitraryLoads</key> | |
| <true/> | |
| </dict> |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>CFBundleDevelopmentRegion</key> | |
| <string>$(DEVELOPMENT_LANGUAGE)</string> | |
| <key>CFBundleExecutable</key> | |
| <string>$(EXECUTABLE_NAME)</string> | |
| <key>CFBundleIdentifier</key> | |
| <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <style> | |
| /* Aarav, your CSS goes HERE, In Between the Style Tags */ | |
| #mySuperSweetID { | |
| border-style: dotted; | |
| color: red; | |
| background-color: blue; | |
| } |
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
| <!-- | |
| Working out of Miguel Grinberg's Flask Web Development (2nd Edition) | |
| trying to teach myself a little Flask for a new project on which I'm | |
| working, so here is a little code straight from Grinberg's book | |
| demonstrating the basics of using control structures in Flask's Jinja2 | |
| templating language: | |
| --> | |
| <!-- Conditionals --> | |
| {% if user %} |
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
| /* Learn Swift in 20 Minutes Tutorial by Krishi K. & Chris P. */ | |
| // Concept No. 1: FUNCTIONS | |
| print("Print is a function.") | |
| print("Functions are commands that instruct the computer to do things.") | |
| print("Although, sometimes they are used to return values as well.") | |
| // Concept No. 2: Variables | |
| var myVariable = "Variables are simply containers which hold values." | |
| print(myVariable) |
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
| /* | |
| REFERENCE: Text Based Interface in Swift | |
| print("Enter text here> ") | |
| var userInput = readLine()! | |
| print("User entered: \(userInput)") | |
| */ |
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
| # Magic 8 Ball by Chris Pedersen | |
| # This is free and unencumbered software released into the public domain. | |
| # For more information, please refer to <http://unlicense.org/> | |
| import random | |
| # Greet the User | |
| print("Welcome to Magic 8 Ball!") | |
| # Create Game Loop |
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
| HAI 1.2 | |
| VISIBLE ">>> "! | |
| I HAS A SUPERSWEETVARIABLE | |
| GIMMEH SUPERSWEETVARIABLE | |
| VISIBLE SUPERSWEETVARIABLE | |
| KTHXBYE |