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 / show-characters.json
Created March 12, 2024 13:35
Sample data of characters from Archer, Bob's Burgers, and Futurama
[
{
"uuid": "a1b2c3d4-e5f6-g7h8-i9j0k1l2m3n4",
"name": "Sterling Archer",
"show": "Archer",
"voice_actor": "H. Jon Benjamin"
},
{
"uuid": "b2c3d4e5-f6g7-h8i9-j0k1l2m3n4o5",
"name": "Leela",
@prof3ssorSt3v3
prof3ssorSt3v3 / index.html
Last active April 28, 2024 03:01
Starter code for Cache Storage assignment - /index.html, /css/main.css, /js/main.js
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Cache Storage</title>
<link rel="stylesheet" href="./css/main.css" />
<script type="module" src="./js/main.js"></script>
</head>
<body>
@prof3ssorSt3v3
prof3ssorSt3v3 / promises.js
Created January 16, 2024 21:46
300 afternon
const url1 = 'https://picsum.photos/id/123/300/200'; //200 status
const url3 = 'https://picsum.photos/id/237/300/200'; //200 status
// const url3 = 'https://picsum.photos/id/466/300/200'; //200 status
const url2 = 'https://jsonplaceholder.typicode.com/posts'; //200 status
const url6 = 'http://127.0.0.1:5500/300/index.html';
const url4 = 'https://picsum.photos/id/999999/300/200'; // 404 status
const url5 = 'https://example.com/bad-url'; //bad domain
import { AfternoonError } from './error.js';
document.addEventListener('DOMContentLoaded', () => {
//promises.js
document.addEventListener('DOMContentLoaded', function () {
getData();
});
function getData() {
let url1 = 'https://picsum.photos/id/237/300/200';
let url2 = 'https://picsum.photos/id/466/300/200';
let url3 = 'https://picsum.photos/id/123/300/200';
@prof3ssorSt3v3
prof3ssorSt3v3 / index.html
Created January 15, 2024 22:22
Starter code for Service Worker Assignment January 2024
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Syncing Data Page</title>
<script src="./js/main.js" type="module"></script>
<link rel="stylesheet" href="./css/main.css" />
</head>
<body>
@prof3ssorSt3v3
prof3ssorSt3v3 / burger.js
Last active January 4, 2024 17:25
Starter files for Class Exercise
class Burger {
#isMeatless = false;
#isCooked = false;
toppings = [];
constructor(_isMeatless = false, ...toppings) {
this.#isMeatless = _isMeatless;
this.toppings = toppings;
}
@prof3ssorSt3v3
prof3ssorSt3v3 / main.dart
Created December 7, 2023 14:45
ColorScheme reference for Flutter
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
// This widget is the root of your application.
@prof3ssorSt3v3
prof3ssorSt3v3 / main.dart
Created October 13, 2023 19:37
crimson-glimmer-0444
void main() {
for (int i = 0; i < 5; i++) {
print('hello ${i + 1}');
}
}
@prof3ssorSt3v3
prof3ssorSt3v3 / gist:572d87b609c01fe960902cd48e7db39e
Created September 17, 2023 17:06
A possible sequence for learning JavaScript Topics
# JavaScript Development Topics
This is a sequence for learning JS topics. It is not an absolute list of all topics, nor is it a mandatory order that you must use to learn JS. It is just a logical sequencing of some of the more
important topics and features of the language.
1. Variables
- using `let` and `const`
- declaring variables
- assigning values to variables
@prof3ssorSt3v3
prof3ssorSt3v3 / App.js
Last active September 18, 2023 18:14
Simple Layout Practice Exercise
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import { SafeAreaProvider } from 'react-native-safe-area-context';
import { Button } from 'react-native';
import HomeScreen from './screens/HomeScreen';
import ListScreen from './screens/ListScreen';
import DetailScreen from './screens/DetailScreen';
const Stack = createNativeStackNavigator();