Skip to content

Instantly share code, notes, and snippets.

Avatar

Chris Basham basham

View GitHub Profile
@basham
basham / ks-css-best-practices.md
Last active Aug 29, 2015
Kuali Student CSS Best Practices
View ks-css-best-practices.md

Table of contents

  1. Principles

Principles

  1. Readability: Names of selectors must inherently describe the location of the corresponding source code.
  • Modularity: Styles should be grouped and isolated by their respective domain of use.
  • Low coupling: Styles should never depend on the structure or semantics of markup.
View krad-alerts-simple.html
<!-- Source: http://pastebin.com/0zQvqpZ8 -->
<!-- Screenshot: http://i.imgur.com/bdspMbL.jpg -->
<!-- Line 130 -->
<div class="alert-danger">
<ul class="uif-validationMessagesList uif-pageValidationMessage-single">
<li class="uif-errorMessageItem">
<img class="uif-validationImage" src="http://env6.ks.kuali.org/themes/ksboot/images/validation/error.png" alt="Error"> <a href="#">Administering Organizations: 1 error</a>
</li>
</ul>
@basham
basham / nodejs-rfid.js
Last active Aug 20, 2022
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