Skip to content

Instantly share code, notes, and snippets.

Chris Basham basham

Block or report user

Report or block basham

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
basham /
Last active Mar 27, 2020
CSS Units Best Practices

CSS units

Recommendations of unit types per media type:

Media Recommended Occasional use Infrequent use Not recommended
Screen em, rem, % px ch, ex, vw, vh, vmin, vmax cm, mm, in, pt, pc
Print em, rem, % cm, mm, in, pt, pc ch, ex px, vw, vh, vmin, vmax

Relative units

Relative units

basham /
Last active Mar 19, 2020
CSS Media Queries: Best Practices

CSS Media Queries: Best Practices

basham / nodejs-rfid.js
Last active Feb 25, 2020
Use NodeJS to read RFID ids through the USB serial stream.
View nodejs-rfid.js
Use NodeJS to read RFID ids through the USB serial stream. Code derived from this forum:
View SketchSystems.spec
Kiosk Admin
check in records -> Check in records
kiosks -> Kiosks
Check in records
# Filter by (and group by?):
# Campus, Care Unit, Kiosk, Service,
# Date (today, custom), Date range (this week, this semester, custom),
# Status (checked in, checked out), Student,
View SketchSystems.spec
Kiosk System &
Room device
# On enter or check in: Refresh QR code.
check in with username -> Enter username
scan QR code -> Check authentication?
Enter username
basham / qn.json
Created Feb 11, 2015
Quick Notes API
View qn.json
"note":"Welcome to the Kelley School of Business! Your acceptance into our school is a demonstration of the excellent work that you have completed during your first semester at Indiana University. The Kelley School of Business has a long history of graduating the brightest stars in the business world..."
basham / analyze-css.student.txt
Created Dec 19, 2014
Examining colorguard (npm) and analyze-css (npm) terminal output
View analyze-css.student.txt
analyze-css --file student.css -p
"generator": "analyze-css v0.9.1",
"metrics": {
"base64Length": 0,
"redundantBodySelectors": 0,
"redundantChildNodesSelectors": 0,
"colors": 35,
"comments": 10,
"commentsLength": 338,
basham / terms-service.js
Last active Aug 29, 2015
Demonstrating how JSON fixtures get replaced by endpoints, in the Kuali Student Course Registration proof of concept.
View terms-service.js
'use strict';
.factory('termsService', function ($resource, apiService) {
return $resource(apiService.get('terms'), {}, {
query: {
method: 'GET',
cache: true,
isArray: true
basham /
Last active Aug 29, 2015
Static KRAD Sample App


Start KRAD Sample App. Then run the following shell script.

basham /
Last active Aug 29, 2015
Element Queries Draft Spec
You can’t perform that action at this time.