Skip to content

Instantly share code, notes, and snippets.

View znarfm's full-sized avatar

Meinard Francisco znarfm

View GitHub Profile
@znarfm
znarfm / external.html
Created March 16, 2025 11:20
Three ways of using CSS
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="style.css" />
<title>External CSS Example</title>
</head>
<body>
<main class="container">
@znarfm
znarfm / elec.md
Last active March 1, 2025 15:20
elec ans

Elec Assignment

1. Flowchart to Output the Largest Number Among Three Numbers

flowchart TD
    A(Start) --> B[/Input A, B, C/]
    B --> C{Is A > B?}
    C -- Yes --> D{Is A > C?}
    D -- Yes --> E[/Output A/]
@znarfm
znarfm / sis.js
Last active February 10, 2025 14:05
This script helps PUP students automate faculty evaluations by setting survey ratings to achieve a desired average score. It dynamically adjusts responses, ensures accuracy, and works for any number of questions, saving time and simplifying the feedback process.
const se = async (targetAvg) => {
try {
// If no target average provided, prompt user
if (targetAvg === undefined) {
const input = prompt('Enter desired average (1-5):', '2.5');
if (input === null) return; // User clicked cancel
targetAvg = parseFloat(input);
}
if (isNaN(targetAvg)) {