Skip to content

Instantly share code, notes, and snippets.

View prof3ssorSt3v3's full-sized avatar
🎯
Focusing

Steve Griffith prof3ssorSt3v3

🎯
Focusing
View GitHub Profile
@prof3ssorSt3v3
prof3ssorSt3v3 / index.html
Last active October 19, 2026 16:51
Event Loop and Async programming
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Async</title>
<style>
html {
font-family:
system-ui,
@prof3ssorSt3v3
prof3ssorSt3v3 / destructure.js
Last active October 16, 2026 15:58
starter code week 6
const names = ['Archer', 'Pam', 'Lana', 'Krieger', 'Cyril'];
handleNames(names);
names2(names);
function handleNames(arr) {
//destructure an array
// let first = arr[0];
// let second = arr[1];
const [first, second, ...camillo] = arr;
console.log(first, second);
@prof3ssorSt3v3
prof3ssorSt3v3 / index.html
Last active October 16, 2026 15:59
starter code for Grid CSS
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>CSS Grid</title>
<link rel="stylesheet" href="css/main.css" />
</head>
<body>
<div class="container">
@prof3ssorSt3v3
prof3ssorSt3v3 / index.html
Last active September 17, 2026 19:15
For Assignment 2 my basic HTML
<!doctype html>
<html>
<head></head>
<body></body>
</html>
@prof3ssorSt3v3
prof3ssorSt3v3 / index.html
Last active August 29, 2026 14:58
Exercise 2 Starter code
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Exercise Two</title>
<!-- Google Font preconnects and links go here -->
<link rel="stylesheet" href="css/main.css" />
<script type="module" src="js/main.js"></script>
</head>
@prof3ssorSt3v3
prof3ssorSt3v3 / index.html
Last active October 10, 2026 20:21
HTML Content Optimization
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Get My Attention :: Tech Company</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Noto+Sans+Mono:wght@100..900&family=Noto+Sans:ital,wght@0,100..900;1,100..900&family=Noto+Serif:ital,wght@0,100..900;1,100..900&display=swap"
@prof3ssorSt3v3
prof3ssorSt3v3 / index.html
Created June 16, 2026 20:35
We Don't Care starter code
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>We Don't Care | About Us</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Noto+Sans+Mono:wght@100..900&family=Noto+Sans:ital,wght@0,100..900;1,100..900&family=Noto+Serif:ital,wght@0,100..900;1,100..900&display=swap"
@prof3ssorSt3v3
prof3ssorSt3v3 / index.js
Created January 20, 2026 00:00
Steve's basic web server api
// import abc from './abc.js'; //local file import
// import express from 'express'; //node_modules
import http from 'node:http'; //import from NodeJS
const server = http.createServer(handleRequests);
const cheeses = ['Cheddar', 'Mozzarella', 'Danish Blue'];
function handleRequests(request, response) {
//every call from a client comes through here
@prof3ssorSt3v3
prof3ssorSt3v3 / readme.md
Created January 16, 2026 18:33
Top level NodeJS objects

NodeJS Global Objects

NodeJS has a number of global objects that we can use without import.

Node-specific

  • global, globalThis
  • process
  • console
  • Buffer
console.log('this is main.js');
console.log('edited');