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
<template> | |
<div class="questions-ctr"> | |
<div class="progress"> | |
<div class="bar"></div> | |
<div class="status">1 out of 3 questions answered</div> | |
</div> | |
<div class="single-question"> | |
<div class="question">Sample Question 1</div> | |
<div class="answers"> | |
<div class="answer">Sample Answer 1</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
export default defineNuxtConfig({ | |
devtools: { enabled: true }, | |
css: ["~/assets/css/main.css"], | |
app: { | |
head: { | |
charset: "utf-8", | |
viewport: "width=device-width, initial-scale=1", | |
}, | |
}, | |
}); |
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
]* { | |
box-sizing: border-box; | |
} | |
body { | |
font-size: 1.25rem; | |
font-family: sans-serif; | |
padding-top: 1.25rem; | |
background: #e6ecf1; | |
} |
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
import { getXataClient } from "~/src/xata"; | |
const xata = getXataClient(); | |
export default defineEventHandler(async (event) => { | |
const questions = await xata.db.questions.getMany(); | |
return questions; | |
}); |
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
import { getXataClient } from "~/src/xata"; | |
const xata = getXataClient(); | |
export default defineEventHandler(async (event) => { | |
const answers = await xata.db.answers.select(["*"]).getMany(); | |
return answers; | |
}); |
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
import random | |
def get_num_dice(): | |
"""Asks user for number of dice, continues asking if invalid.""" | |
while True: | |
try: | |
num_dice = int(input("How many dice would you like to roll? ")) | |
if num_dice < 1: | |
print("Please enter a positive integer.") |
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
curl -fsSL "https://windsurf-stable.codeiumdata.com/wVxQEIWkwPUEAGf3/windsurf.gpg" | sudo gpg --dearmor -o /usr/share/keyrings/windsurf-stable-archive-keyring.gpg echo "deb [signed-by=/usr/share/keyrings/windsurf-stable-archive-keyring.gpg arch=amd64] https://windsurf-stable.codeiumdata.com/wVxQEIWkwPUEAGf3/apt stable main" | sudo tee /etc/apt/sources.list.d/windsurf.list > /dev/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
0 0 * * * maldet -a / > /dev/nul 2>&1 |
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
00 00 * * * /usr/sbin/chkrootkit 2>&1 | mail -s "chkrootkit Reports of My Server" EMAIL |