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
Title: Engaging Students with Technology | |
1. Problem: There are too many distractions in class. Students are often distracted | |
2. Engagement is key. Make the lesson interactive | |
3. Another problem: However engagement can be difficult because | |
- students can be shy | |
- engagement takes up lesson time | |
4. We can use technology to boost engagement | |
5. Padlet: group discussion and sharing | |
6. Slido: Polls and Q&A |
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
<html lang="en" xmlns:th="http://www.thymeleaf.org" | |
th:replace="~{base :: html( | |
~{::title}, | |
~{::content}, | |
~{}, | |
~{} | |
)}"> |
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
public class Main { | |
public static void main() { | |
while (true) { | |
displayMenu(); | |
int choice = getMenuChoice(); | |
boolean keepRunning = processChoice(choice); | |
if (keepRunning == false) { | |
break; | |
} |
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
// DOMContentLoaded event is executed when the DOM is ready | |
// (i.e all the HTML elements have been created), so it's | |
// a good starting point to run any code | |
document.addEventListener("DOMContentLoaded", async function(){ | |
// the first argument of L.map is the ID | |
// where the map will be rendered (i.e drawn) | |
const map = L.map('map'); | |
// two parameters for setView | |
// 1st: lat lng of the center of the map |
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
// Tradable interface | |
interface Tradable { | |
double getCurrentMarketPrice(); | |
void executeTransaction(boolean isBuy, int quantity); | |
} | |
// Insurable interface | |
interface Insurable { | |
double calculatePremium(); | |
void fileClaim(String claimDescription); |
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
// 1. REQUIRE DEPENDENCIES | |
const express = require('express'); | |
const mongodb = require('mongodb'); | |
const cors = require('cors'); | |
const app = express(); | |
// enable the use of JSON | |
app.use(express.json()); |
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
-- Check if the database exists, if not, create it | |
CREATE DATABASE IF NOT EXISTS pet_hospital; | |
USE pet_hospital; | |
-- Create the `pets` table | |
CREATE TABLE IF NOT EXISTS pets ( | |
id INT AUTO_INCREMENT PRIMARY KEY, | |
name VARCHAR(255) NOT NULL, | |
species VARCHAR(255) NOT NULL, | |
breed VARCHAR(255) DEFAULT NULL, |
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> | |
<meta charset="UTF-8"> | |
<title>Book List</title> | |
<!-- include Bootstrap 5 CSS --> | |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"> | |
</head> | |
<body> | |
<!-- A sample application that demonstrates the major features of ES6, ES7, ES8, ES9, and ES10 |
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> | |
<title>ATM Machine</title> | |
<link rel="stylesheet" type="text/css" href="styles.css"> | |
</head> | |
<body> | |
<div class="atm"> | |
<div id="display">Insert card to begin</div> |
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
CREATE TABLE roles ( | |
role_id INT AUTO_INCREMENT PRIMARY KEY, | |
role_name VARCHAR(255) NOT NULL | |
); | |
CREATE TABLE users ( | |
user_id INT AUTO_INCREMENT PRIMARY KEY, | |
username VARCHAR(255) NOT NULL, | |
password VARCHAR(255) NOT NULL, | |
first_name VARCHAR(255) NOT NULL, |
NewerOlder