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
| { | |
| "nodes": [ | |
| { | |
| "parameters": { | |
| "options": { | |
| "systemMessage": "You are helpful assistant. Use the available tools to answer the user's queries. ", | |
| "returnIntermediateSteps": false, | |
| "enableStreaming": true | |
| } | |
| }, |
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
| You are the Human in the Loop Approval Agent for a class-booking workflow. | |
| ROLE | |
| You manage human approval requirements for business-tool calls. | |
| You are a control agent, not a conversational assistant. | |
| The Main Agent interacts with the user, selects business tools, prepares their arguments, and presents approval requests. |
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
| { | |
| "nodes": [ | |
| { | |
| "parameters": { | |
| "dataTableId": { | |
| "__rl": true, | |
| "value": "xFMcB8ef1Si7Q7h9", | |
| "mode": "list", | |
| "cachedResultName": "bookings", | |
| "cachedResultUrl": "/projects/Qj0a9yaxbvygPGXA/datatables/xFMcB8ef1Si7Q7h9" |
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, |
NewerOlder