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
basham / css-units-best-practices.md
Last active Mar 27, 2020
CSS Units Best Practices
View css-units-best-practices.md

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
basham / css-media-queries-best-practices.md
Last active Mar 19, 2020
CSS Media Queries: Best Practices
View css-media-queries-best-practices.md

CSS Media Queries: Best Practices

@basham
basham / nodejs-rfid.js
Last active Feb 25, 2020
Use NodeJS to read RFID ids through the USB serial stream.
View nodejs-rfid.js
/*
DESCRIPTION
-----------
Use NodeJS to read RFID ids through the USB serial stream. Code derived from this forum:
http://groups.google.com/group/nodejs/browse_thread/thread/e2b071b6a70a6eb1/086ec7fcb5036699
CODE REPOSITORY
---------------
https://gist.github.com/806605
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.
Idle
check in with username -> Enter username
scan QR code -> Check authentication?
Enter username
@basham
basham / qn.json
Created Feb 11, 2015
Quick Notes API
View qn.json
{
"notes":{
"1":{
"id":1,
"title":"Welcome",
"categoryId":1,
"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..."
},
"2":{
"id":2,
@basham
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
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';
angular.module('kscrPocApp')
.factory('termsService', function ($resource, apiService) {
return $resource(apiService.get('terms'), {}, {
query: {
method: 'GET',
cache: true,
isArray: true
}
@basham
basham / README.md
Last active Aug 29, 2015
Static KRAD Sample App
View README.md

Instructions

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

bash static-krad-sampleapp.sh
@basham
basham / element-query-spec.md
Last active Aug 29, 2015
Element Queries Draft Spec
View element-query-spec.md
You can’t perform that action at this time.