Skip to content

Instantly share code, notes, and snippets.

View bmackenty's full-sized avatar

Bill MacKenty bmackenty

View GitHub Profile
# pushups:
day1 = [5,7,5,9,5]
day2 = [4,8,8,7,6]
day3 = [10,10,10,10,9]
day4 = [10,12,12,12,10]
day5 = [12,12,12,12,10]
# anopther way of writing this:
pushups = [[5,7,5,9,5],[4,8,8,7,6],[10,10,10,10,9],[10,12,12,12,10],[12,12,12,12,10]]
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bootstrap demo</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.1/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-iYQeCzEYFbKjA/T2uDLTpkwGzCiq6soy8tYaI1GyVh/UjpbCx/TYkiZhlZB6+fzT" crossorigin="anonymous">
</head>
@bmackenty
bmackenty / mediaWikiApi.py
Created July 27, 2018 07:52
Simple starting python example to read media wiki API for our class wiki
import json
import requests
url = "https://computersciencewiki.org/api.php?action=query&titles=Welcome&prop=revisions&rvprop=content&format=json"
result = requests.get(url)
print(result)
print(result.text)
print(result.json())