Skip to content

Instantly share code, notes, and snippets.

View georgesb's full-sized avatar

George Benainous georgesb

View GitHub Profile
@georgesb
georgesb / ChatGPT_Prompt.txt
Created December 30, 2023 23:19
ChatGPT prompt to generate online multiple choice quiz
Generate a five question multiple choice quiz about ____ . Use a letter of the alphabet with each answer. The quiz should be in the form of a single html file which contains all of the necessary css and javascript. After the user clicks the submit button, correct answers should be color coded as green, incorrect answers red.
@georgesb
georgesb / quizScript.js
Created December 26, 2023 23:27
quizScript.js
(function(){
// Functions
function buildQuiz(){
// variable to store the HTML output
const output = [];
// for each question...
myQuestions.forEach(
(currentQuestion, questionNumber) => {
@georgesb
georgesb / index.html
Created December 26, 2023 23:05
Interactive Web Quiz
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<title>Quiz</title>
<script type="text/javascript">
const myQuestions = [
{
@georgesb
georgesb / questions.txt
Last active December 21, 2023 08:13
Practice French Multiple Choice Quiz
const myQuestions =
[
{
"question": "Chat",
"answers": {
"a": "Dog",
"b": "Cat",
"c": "Bird",
"d": "Fish"
},
@georgesb
georgesb / medianincome.ipynb
Last active December 15, 2023 19:50
MedianIncome.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@georgesb
georgesb / datamap.ipynb
Last active December 15, 2023 20:11
DataMap.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@georgesb
georgesb / index.html
Last active May 23, 2020 00:15
Floating Button
<html>
<head>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<style>
.lower-right{
position: fixed;
bottom: 45px;
right:40px;
}
.material-button{
@georgesb
georgesb / index.html
Created May 22, 2020 02:10
Generative Art 3
<script src="https://cdn.jsdelivr.net/npm/p5@0.10.2/lib/p5.js"></script>
<script src="script.js"></script>
@georgesb
georgesb / index.html
Last active May 21, 2020 23:35
Generative Art 2
<script src="https://cdn.jsdelivr.net/npm/p5@0.10.2/lib/p5.js"></script>
<script src="script.js"></script>
@georgesb
georgesb / index.html
Last active May 15, 2020 04:36
Toggle Object - Random Colors
<script src="https://cdn.jsdelivr.net/npm/p5@0.10.2/lib/p5.js"></script>
<script src="script.js"></script>