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 java.util.*; | |
public class SchoolStats | |
{ | |
//list holds scores in increasing order | |
ArrayList<Integer> scoreList = new ArrayList<Integer>(); | |
//holds the total of A's, B's, etc | |
int[] studentScores = new int[4];//first spot is A, then B, etc | |
String[] letters = {"F","C","B","A"}; |
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 java.util.*; | |
/* | |
* the MonthlyBudget class will be provided a limit (example, $200), | |
* a string array of items (netflix, gym membership, spotify premium, etc) | |
* a parallel int array of prices for each item (15, 50, 8, etc) | |
* | |
* The monthlyBudget class should also keep track of a current budget | |
* and | |
* a myItems arraylist that tracks items that fit in your budget |
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 MonthlyBudget class will be provided a limit (example, $200), | |
* a string array of items (netflix, gym membership, spotify premium, etc) | |
* a parallel int array of prices for each item (15, 50, 8, etc) | |
* | |
* The monthlyBudget class should also keep track of a current budget | |
* and | |
* a myItems arraylist that tracks items that fit in your budget | |
* | |
* You will create the entire MonthlyBudget class |
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
print(dID) | |
var db = Firestore.firestore() | |
db.collection("bookings").whereField("UID", isEqualTo: dID).getDocuments() { (querySnapshot, err) in | |
if let err = err { | |
print("Error getting documents: \(err)") | |
} else { | |
for document in querySnapshot!.documents { | |
document.reference.delete() | |
} |
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
private func unBook(hrs: String){ | |
let calendar = Calendar.current | |
let components = calendar.dateComponents([.day], from: selectedDate) | |
let dayOfMonth = components.day | |
let components2 = calendar.dateComponents([.month], from: selectedDate) | |
let monthOfY = components2.month |
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
#if canImport(UIKit) | |
extension View { | |
func hideKeyboard() { | |
UIApplication.shared.sendAction(#selector(UIResponder.resignFirstResponder), to: nil, from: nil, for: nil) | |
} | |
} | |
#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
// | |
// KeyboardHandler.swift | |
// te3st1 | |
// | |
// Created by Episcopal Academy on 11/25/20. | |
// Copyright © 2020 Episcopal Academy. All rights reserved. | |
// | |
import Combine | |
import SwiftUI |
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> | |
<style> | |
#container { | |
width: 400px; | |
height: 400px; | |
position: relative; | |
background: yellow; | |
} | |
#animate { |
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 lang="en"> | |
<head> | |
<title>Bootstrap Example</title> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css"> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> | |
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script> | |
</head> |
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
public class PassingParameters | |
{ | |
static int xs = 5; | |
public static void main(String[] args) | |
{ | |
int y = 10; | |
sendY(y); | |
System.out.println("y " + y); |
NewerOlder