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
body { | |
background-color: whitesmoke; | |
font-size: 50px; | |
align-items: center; | |
align-content: center; | |
justify-content: center; | |
display: flex; | |
flex-direction: column; | |
min-height: 100vh; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>storage</title> | |
<link rel="stylesheet" type="text/css" href="index.css"> | |
</head> | |
<body> | |
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
var dbRef = firebase.database().ref(); | |
dbRef.child("Users").on("child_added", snapo => { | |
var names = snapo.child("name").val(); | |
var genders = snapo.child("gender").val(); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Firebase Web Basics</title> | |
<link href="https://fonts.googleapis.com/css?family=Raleway:300,400,500,700" rel="stylesheet"> | |
<link rel="stylesheet" type="text/css" href="style.css"> | |
<script src="https://use.fontawesome.com/939e9dd52c.js"></script> | |
<script |
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
import UIKit | |
class ViewController: UIViewController { | |
var displayedFigure : Double = 0 | |
var previousFigure : Double = 0 | |
var operatorInView = false | |
var operation = 0 | |
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
import UIKit | |
class ViewController: UIViewController, UICollisionBehaviorDelegate { | |
let data = ["Getting sstartw with Swift","SiriKit Basic","SprieKit for Apple Watch"] | |
var views = [UIView]() |
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
//the core of the application | |
//notice every func in this class is private except for the initialiser | |
import Foundation | |
class SpaceAdventureModified { | |
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
import Foundation | |
//this file is to get the user input --> processor | |
//return a string --> which is the user input --> we use foundational classes provided by Apple | |
func getUserInput() -> String { |
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
import Foundation | |
class PlanetarySystem { | |
let name:String | |
let planets:[Planet] | |
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
import Foundation | |
class Planet { | |
let name:String | |
let description:String |
NewerOlder