Skip to content

Instantly share code, notes, and snippets.

View ahosgood's full-sized avatar
Developing <stuff />

Andrew Hosgood ahosgood

Developing <stuff />
View GitHub Profile
@ahosgood
ahosgood / students.py
Created April 10, 2024 18:28
Students
def get_number(question):
number = None
while number == None:
number_input = input(question)
try:
number = int(number_input)
return number
except ValueError:
print(f"ERROR: '{number_input}' is not a valid number")
http://bramp.github.io/js-sequence-diagrams/
Note over Router: GET /hello-world
Router-->Controller: URI Request
Note over Controller: helloWorld() method
Controller->Model: Request data
Model->Controller: Return data
Controller->View: Pass data to view
Note over View: hello-world.tpl
View->Controller: Rendered view
@ahosgood
ahosgood / code-counter.php
Created July 22, 2015 10:35
Code Counter
<?php
ini_set('display_errors',1);
error_reporting(E_ALL);
class counter{
public static $intPHP = 0;
public static $intJS = 0;
public static $intCSS = 0;