-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
301 lines (250 loc) · 18.8 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
<!DOCTYPE html>
<html lang="en">
<head>
<title>Portfolio: Steve Mattingly</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" />
<style>
body {
background-color: #ccd6dd;
}
a {
color: #0059ba;
}
code {
color: #850000;
}
.sidebar {
position: fixed;
top: 0;
bottom: 0;
left: 0;
z-index: 100;
padding: 0 0 0;
background-color: #0059ba;
color: #ebf2f7;
box-shadow: inset -1px 0 0 black;
}
.sidebar-sticky {
position: relative;
top: 0;
height: 100vh;
overflow-x: hidden;
overflow-y: auto;
}
@supports (position: sticky) {
.sidebar-sticky {
position: sticky;
}
}
.sidebar .nav-link {
font-size: .875rem;
font-weight: 300;
color: #ebf2f7;
}
.sidebar .fa {
color: #ebf2f7;
}
.navbar-toggler {
top: .25rem;
right: 1rem;
}
.cell-color {
background-color: #ebf2f7;
border: 3px groove #ccd6dd;
}
.modal-content {
background-color: #ccd6dd;
}
</style>
</head>
<!-- Blessed are the source readers, for they shall inherit the Web. And maybe hire me. -->
<body>
<div class="container-fluid">
<nav class="navbar sticky-top flex-md-nowrap p-0 navbar-light">
<button class="navbar-toggler position-absolute d-md-none collapsed" type="button" data-toggle="collapse" data-target="#sidebarMenu" aria-controls="sidebarMenu" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
</nav>
<div class="row">
<nav id="sidebarMenu" class="col-md-3 col-lg-2 d-md-block sidebar collapse navbar-collapse">
<div class="sidebar-sticky pt-3">
<div class="ml-2 lead">Contents</div>
<ul class="nav flex-column">
<li class="nav-item">
<a href="#devops" class="nav-link"><i class="fa fa-clock-o fa-fw pr-4"></i>Attendance app</a>
</li>
<li class="nav-item">
<a href="#ftm" class="nav-link"><i class="fa fa-map-marker fa-fw pr-4"></i>findthemasks.com</a>
</li>
<li class="nav-item">
<a href="#games" class="nav-link"><i class="fa fa-gamepad fa-fw pr-4"></i>Browser games</a>
</li>
<li class="nav-item">
<a href="#pi" class="nav-link"><i class="fa fa-microchip fa-fw pr-4"></i>Web Workers</a>
</li>
<li class="nav-item">
<a href="#pl" class="nav-link"><i class="fa fa-code fa-fw pr-4"></i>Interpreter/compiler</a>
</li>
<li class="nav-item">
<a href="#cross-platform" class="nav-link"><i class="fa fa-tablet fa-fw pr-4"></i>Cross-platform apps</a>
</li>
<li class="nav-item">
<a href="#thanks" class="nav-link"><i class="fa fa-smile-o fa-fw pr-4"></i>Thanks!</a>
</li>
</ul>
<div class="ml-2 mt-2 lead">Validators</div>
<ul class="nav flex-column">
<li class="nav-item">
<a href="https://validator.w3.org/unicorn/check?ucn_uri=https%3A%2F%2Fsmattingly.github.io&ucn_task=conformance#" target="_blank" class="nav-link" data-toggle="tooltip" data-placement="bottom" title="Please note that I cannot fix reported issues in third party libraries."><img src="https://www.w3.org/favicon.ico" alt="W3C logo" style="width: 10%;"> W3C <small>HTML, CSS</small></a>
</li>
<li class="nav-item">
<a href="https://wave.webaim.org/report#/https://smattingly.github.io/" target="_blank" class="nav-link"><img src="https://wave.webaim.org/favicon.ico" alt="WAVE logo" style="width: 10%;"> WAVE <small>a11y</small></a>
</li>
</ul>
<div class="ml-2 mt-2 lead">Contact me</div>
<ul class="nav flex-column">
<li class="nav-item">
<a class="nav-link" href="https://www.linkedin.com/in/steve-mattingly" target="_blank"><i class="fa fa-linkedin fa-fw pr-4"></i>steve-mattingly</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://github.com/smattingly" target="_blank"><i class="fa fa-github fa-fw pr-4"></i>smattingly</a>
</li>
<li class="nav-item">
<a class="nav-link" href="mailto:[email protected]"><i class="fa fa-envelope fa-fw pr-4"></i><span style="font-size: 85%;">[email protected]</span></a>
</li>
</ul>
</div>
</nav>
<button class="navbar-toggler position-absolute" type="button" data-toggle="collapse" data-target="#sidebarMenu" aria-controls="sidebarMenu" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<main class="col-md-9 ml-sm-auto col-lg-10 px-md-4">
<div id="top" class="container">
<h1>Steve Mattingly</h1>
<p>Hello, world!</p>
<p>Check out my <a href="https://github.com/smattingly" target="_blank">GitHub profile</a> and feel free to send me questions about anything you see that interests you.</p>
<p>For many years, I have been coding for classroom purposes. As a result, some of the work is not mine alone, but collaborative work with students.</p>
<p>I've put together this portfolio to provide some context for that work.</p>
</div>
<div class="container" id="devops">
<h2>DevOps and the attendance tracking app</h2>
<p>Students in my Professional Experience course sequence ran a "company" called DevOps. You can learn more about the company and courses at our site's archived <a href="https://web.archive.org/web/20210506040408/https://www.dewv.net/" target="_blank">homepage</a>.</p>
<p>We also used that site to deploy and operate our one production system: an attendance tracking application for the campus learning center. Similar to a punch clock, the system records the duration of student visits to the campus learning center.</p>
<p>You can use Gitpod to <a href="https://gitpod.io/#https://github.com/dewv/nlcAttendance" target="_blank">launch a test instance</a> of the system. (You will be prompted to create a free Gitpod account if you do not already have one. It will take a while for Gitpod to fetch Docker images and install the application. You should see a browser tab with the Gitpod IDE. If a second tab with the running application does not appear, use the IDE to open Gitpod's port 1337. In the app, information icons <i class="fa fa-info-circle fa-fw"></i> provide some guidance for new test users.) To see the application code, visit the <a href="https://github.com/dewv/nlcAttendance" target="_blank">GitHub repository</a>.</p>
<p>Version 1 of the application was built with Node.js, Express, and MySQL. Version 2 added <a href="https://sailsjs.com/" target="_blank">Sails.js</a>, a Rails-inspired MVC framework. The Sails object request manager served us well when we moved from MySQL to MongoDB's Atlas cloud service.</p>
<p>Version 2 also added Bootstrap to improve the user interface. Several design decisions were inspired by elements of GitHub's UI. These before-and-after images show the response when a user has walked up to an attendance tracking station, authenticated, and <span class="text-dark"><code>POST</code></span>ed a few details to "check in" at the start of their visit.</p>
<div class="row mb-3">
<div class="col-md-6 container cell-color">
<img src="./images/before.png" alt="Version 1" class="mt-2 w-100" style="cursor: zoom-in;" data-toggle="modal" data-target="#beforeZoom">
<p>In early Web fashion, version 1 <code>POST</code> requests led to "dead end" response pages that served only to communicate the <code>POST</code>'s results to the user.</p>
</div>
<div class="col-md-6 container cell-color">
<img src="./images/after.png" alt="Version 2" class="mt-2 w-100" style="cursor: zoom-in;" data-toggle="modal" data-target="#afterZoom">
<p>Using Bootstrap, Version 2 communicates these results via an "alert" banner that appears at the top of a useful page. In this case, CSS animation is used to fade out the banner after the user has time to read it.</p>
</div>
</div>
</div>
<div class="container" id="ftm">
<h2>findthemasks.com</h2>
<p><a href="https://github.com/findthemasks/findthemasks/commits?author=smattingly">My contributions</a> to the open source site <a href="https://findthemasks.com" target="_blank">findthemasks.com</a> included bug fixes, efficiency improvements, customized integration to resolve conflicts between Google Maps and Bootstrap, partner callback links, and support for the IE11 browser mandated by many employers in the heathcare industry.</p>
</div>
<div class="container" id="games">
<h2>Browser games for intro programming</h2>
<p>I wanted novice programmers to do something fun in the browser, but focus on fundamentals and OOP without getting into HTML and DOM details. So, I built <a href="https://github.com/csci110/sgc" target="_blank">a simplified wrapper</a> around a popular JavaScript game framework, and created game programming assignments.</p>
<p>Finished copies of the game assignments are presented below. Click each link to enjoy the gameplay, but <em>please keep in mind:</em>
</p>
<ol>
<li>you are not seeing the full course materials, which introduce the games, explain gameplay, etc., and</li>
<li>the JavaScript is obfuscated, because these are course assignment solutions. (I would be happy to share the private solutions repository. Just contact me with your GitHub username.)</li>
</ol>
<div class="row">
<div class="col-md-4 cell-color">
<img src="./images/strangerHunt.png" alt="Stranger Hunt game" class="mt-2 w-100">
<p><strong><a href="https://smattingly.github.io/sgc-games/strangerHunt/" target="_blank">Stranger Hunt</a></strong> is the students' first game. Score points when you click the mysterious stranger. Lose points when you click the old wizard Marcus. Game over when you click Princess Ann.</p>
</div>
<div class="col-md-4 cell-color">
<img src="./images/wizardsDuel.png" alt="Wizards' Duel game" class="mt-2 w-100">
<p>In <strong><a href="https://smattingly.github.io/sgc-games/wizardsDuel/" target="_blank">Wizards' Duel</a></strong> you play as Marcus. Dodge your opponent's spells with the up and down arrows. Cast spells with the space bar.</p>
</div>
<div class="col-md-4 cell-color">
<img src="./images/platformPrincess.png" alt="Platform Princess game" class="mt-2 w-100">
<p>In <strong><a href="https://smattingly.github.io/sgc-games/platformPrincess/" target="_blank">Platform Princess</a></strong> you play as Princess Ann. Use horizontal arrows and space bar to reach the exit door.</p>
</div>
</div>
<div class="row mb-3">
<div class="col-md-4 cell-color">
<img src="./images/castleBreakIn.png" alt="Castle Break In game" class="mt-2 w-100">
<p><strong><a href="https://smattingly.github.io/sgc-games/castleBreakIn/" target="_blank">Castle Break In</a></strong> remakes an arcade classic, with lots of bonus features.</p>
</div>
<div class="col-md-4 cell-color">
<img src="./images/puzzledPrincess.png" alt="Puzzled Princess game" class="mt-2 w-100">
<p><strong><a href="https://smattingly.github.io/sgc-games/puzzledPrincess/" target="_blank">Puzzled Princess</a></strong> has students build the unbeatable TicTacToe program in a <em>drag-and-drop</em> format.</p>
</div>
</div>
</div>
<div class="container" id="pi">
<h2>Concurrent programming with Web Workers</h2>
<p><a href="https://smattingly.github.io/parallel-pi/" target="_blank">This Monte Carlo estimation of π</a> uses Web Workers and some simple canvas graphics to demonstrate concurrent programming. <a href="https://github.com/smattingly/parallel-pi" target="_blank">The source code is here.</a></p>
<p>Students are encouraged to experiment with the parameters and determine when the overhead of multi-threaded code outweighs the benefits. Because drawing the points is a very expensive operation, there is an option to turn off drawing. You can get a much more accurate estimate of π's value by (greatly) increasing the number of points (and disabling drawing if you don’t want to wait a while).</p>
</div>
<div class="container" id="pl">
<h2>An interpreter and compiler</h2>
<p><a href="https://smattingly.github.io/language-implementation/" target="_blank">This program</a> is a single page application, written in plain vanilla JavaScript. It shows third-semester students some approaches to implementing a very simple "programming" language. For them, it is a clinic in object-oriented design and delegation.</p>
<p>I'm <a href="https://github.com/smattingly/language-implementation/" target="_blank">showing it to you</a> as an indication of what I can do with client-side JavaScript. Although it's mostly behind-the-scenes computation, there is a certain amount of DOM manipulation for the user interface.</p>
<p>I think it might be interesting to apply a front-end framework like React or Vue to this, but haven't found the time.</p>
</div>
<div class="container" id="cross-platform">
<h2>Cross-platform apps</h2>
<p>For a special topics course I led my students through the construction of the <a href="http://emktg.cengage.com/marketing/sample_chapters/2015/9781305105966_CH01.pdf#page=3" target="_blank">example apps</a> from <a href="https://www.cengage.com/c/building-cross-platform-mobile-and-web-apps-for-engineers-and-scientists-an-active-learning-approach-1e-lingras/9781305105966PF/" target="_blank"><cite>Building Cross-Platform Mobile and Web Apps for Engineers and Scientists</cite></a>. The apps are built with Bootstrap, HTML5, CSS, and JavaScript.</p>
</div>
<div class="container" id="thanks">
<h2>Thanks!</h2>
<p>Thank you for taking the time to look at my work.</p>
</div>
</main>
</div>
</div>
<!-- Modals -->
<div id="beforeZoom" class="modal fade">
<div class="modal-dialog modal-xl">
<div class="modal-content">
<div class="float-right pr-2">
<button type="button" class="close" data-dismiss="modal">×</button>
</div>
<div class="modal-body">
<img src="./images/before.png" alt="Before" class="border w-100">
</div>
</div>
</div>
</div>
<div id="afterZoom" class="modal fade">
<div class="modal-dialog modal-xl">
<div class="modal-content">
<div class="float-right pr-2">
<button type="button" class="close" data-dismiss="modal">×</button>
</div>
<div class="modal-body">
<img src="./images/after.png" alt="Before" class="border w-100">
</div>
</div>
</div>
</div>
<!-- End modals -->
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.0/umd/popper.min.js" integrity="sha384-cs/chFZiN24E4KMATLdqdvsezGxaGsi4hLGOzlXwp5UZB1LY//20VyM2taTB4QvJ" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js" integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV" crossorigin="anonymous"></script>
<script>
$(document).ready(function () {
$('[data-toggle="tooltip"]').tooltip();
});
$('li.nav-item>a').on('click', function () {
$('.navbar-collapse').collapse('hide');
});
</script>
</body>
</html>