Skip to content

Instantly share code, notes, and snippets.

View kevee's full-sized avatar

Kevin Miller kevee

View GitHub Profile
require_once('quail/quail.php');
//Checking a remote URI:
$quail = new quail('http://example.com/', 'wcag', 'uri', 'demo');
//Checking a string:
$quail = new quail('<img src="rex.jpg">', 'wcag', 'string', 'demo');
$quail->runCheck();
print $quail->getReport();
@kevee
kevee / open_atrium_intranet.php
Created October 19, 2011 04:37
BadCamp 2011 Open Atrium as a Campus Intranet presentation
<?php
/**
* Implementation of hook_atrium_account_links_alter()
* Here we can add new items to the account list
*/
function mymodule_atrium_account_links_alter(&$links, $space = null) {
array_splice($links, 3, 0, 'placeholder');
$links[3] = array('title' => 'Change theme', 'href' => 'user/'. $user->uid .'/edit/theme_select');
}
@kevee
kevee / whd_google_docs.js
Created December 15, 2011 21:28
Web Help Desk post to Google Docs
// INSTRUCTIONS:
// 1. Start a new form in Google docs
// 2. Go to Tools > Script editor from the spreadhseet
// 3. Paste in the below code
// 4. Go to Triggers > Current script's triggers
// 5. Add a new trigger
// 6. Select "onFormSubmit" then "On Form Submit" from the third select box. Click save.
// 7. Save the script and go back to your spreadsheet. You should see a "WHD Options" menu.
// 8. Click WHD Options > Ticket settings and enter the API key (from WHD's user setting screen) and the URL to your "Create Ticket" post. The script will automatically append "?apiKey=xxx" to the end of this URL.
// 9. Use the email settings in the WHD Options if you want to email users with their WHD ticket.
@kevee
kevee / whd2
Created March 22, 2012 05:04
WHD 2
// INSTRUCTIONS:
// 1. Start a new form in Google docs
// 2. Go to Tools > Script editor from the spreadhseet
// 3. Paste in the below code
// 4. Go to Triggers > Current script's triggers
// 5. Add a new trigger
// 6. Select "onFormSubmit" then "On Form Submit" from the third select box. Click save.
// 7. Save the script and go back to your spreadsheet. You should see a "WHD Options" menu.
// 8. Click WHD Options > Ticket settings and enter the API key (from WHD's user setting screen) and the URL to your "Create Ticket" post. The script will automatically append "?apiKey=xxx" to the end of this URL.
// 9. Use the email settings in the WHD Options if you want to email users with their WHD ticket.
@kevee
kevee / README
Last active December 12, 2015 06:19
editth.at sample
This is the readme file. OK?
@kevee
kevee / talibrary.json
Created September 30, 2013 17:01
GeoJSON outline of the CSUMB Tanimura and Antle Library.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
/**
* Backup moodleform bridge
*
* Ahhh the mighty moodleform bridge! Strong enough to take the weight of 682 full
* grown african swallows all of whom have been carring coconuts for several days.
* EWWWWW!!!!!!!!!!!!!!!!!!!!!!!!
*/
@kevee
kevee / gist:7459092
Created November 14, 2013 00:24
Transcription of BADCamp presentation available at https://archive.org/details/BakeAccessibilityIntoYourProject
Kevin Miller: OK, how many people here are accessibility activists? People who work with people using assistive technology. Okay, a handful? 15%? How many of you consider yourselves developers? People who work with JavaScript, PHP, stuff like that? Anything else that I missed in terms of the category, I probably missed several. Designers, themers, okay. You guys are important too. What we’re going to talk about today, I don't think I have to tell this group what accessibility is; but just to give an understanding of the spectrum of what accessibility is and where we are today and I’m coming from a Higher-Ed perspective where we tell our users, before we give them access to our content management system is that accessibility is a legal responsibility.
I.e. Section 508, requires that our website is accessible but it’s also a moral obligation. It’s not just about we’re trying to CYA we won’t get sued. It’s about not being jerks, about being nice to people- or at least trying to be nice to people and sometimes we
@kevee
kevee / gist:7476801
Last active December 28, 2015 09:09
Kayak Trip November 10, 2013
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kevee
kevee / gist:7744745
Last active December 29, 2015 23:48
Sample test yaml.
imgHasAlt:
selector: "img:not(img[alt])"
tags:
- image
- content
testability: 1
type: selector
guidelines:
wcag:
sc: 1.1.1