Skip to content

Instantly share code, notes, and snippets.

View cptvitamin's full-sized avatar

Mark Sadecki cptvitamin

View GitHub Profile
@cptvitamin
cptvitamin / markdown2olxexample.txt
Created May 19, 2016 18:26
example of recommended markdown to OLX conversion
This is your final exam.
---
You must answer this question to complete the course.
>>This course was:<<
[ ] fun
[ ] boring
[ ] educational
@cptvitamin
cptvitamin / checkbox-with-child-select.html
Last active August 29, 2015 14:27
suggestion for having a select menu as a child of a checkbox
<form>
<!-- I wrapped these two related controls in a div with role="group"
and an aria-labelledby that references the existing Heading" -->
<div role="group" aria-labelledby="verification-access-title">
<h3 id="verification-access-title" class="modal-section-title"><%= gettext('Verification Access') %></h3>
<div class="modal-section-content verification-access">
<!-- I converted the unordered list to divs -->
<div class="list-fields list-input">
<div class="field field-checkbox checkbox-cosmetic">
<input
@cptvitamin
cptvitamin / gist:43bd9fb9a9de7314722b
Last active August 29, 2015 14:06
Suggested changes for improved accessibility
<!DOCTYPE html>
<!--[if IEMobile 7]><html class="iem7" lang="en" dir="ltr"><![endif]-->
<!--[if lte IE 6]><html class="lte-ie9 lt-ie9 lt-ie8 lt-ie7" lang="en" dir="ltr"><![endif]-->
<!--[if (IE 7)&(!IEMobile)]><html class="lte-ie9 lt-ie9 lt-ie8" lang="en" dir="ltr"><![endif]-->
<!--[if IE 8]><html class="lte-ie9 lt-ie9" lang="en" dir="ltr"><![endif]-->
<!--[if IE 9]><html class="lte-ie9" lang="en" dir="ltr"><![endif]-->
<!--[if (gte IE 9)|(gt IEMobile 7)]><!-->
<html class="js" dir="ltr" prefix="content: http://purl.org/rss/1.0/modules/content/ dc: http://purl.org/dc/terms/ foaf: http://xmlns.com/foaf/0.1/ og: http://ogp.me/ns# rdfs: http://www.w3.org/2000/01/rdf-schema# sioc: http://rdfs.org/sioc/ns# sioct: http://rdfs.org/sioc/types# skos: http://www.w3.org/2004/02/skos/core# xsd: http://www.w3.org/2001/XMLSchema# schema: http://schema.org/" lang="en"><!--<![endif]--><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
@cptvitamin
cptvitamin / keybase.md
Last active August 29, 2015 14:03
Keybase proof

Keybase proof

I hereby claim:

  • I am cptvitamin on github.
  • I am cptvitamin (https://keybase.io/cptvitamin) on keybase.
  • I have a public key whose fingerprint is 9556 3389 9059 B5F0 CF79 3207 E387 AD80 E0D5 17A5

To claim this, I am signing this object:

@cptvitamin
cptvitamin / dabblet.css
Created March 19, 2014 00:30
Canvas Hit Regions and Focus Ring Demo
/**
* Canvas Hit Regions and Focus Ring Demo
*/
div.note {
margin-top: 1em;
margin-bottom: 1em;
}
.note > p:first-child { margin-top: 0 }
.note {
@cptvitamin
cptvitamin / dabblet.css
Created November 17, 2013 05:58
HTML5 Form Input types and attributes
/**
* HTML5 Form Input types and attributes
*/
@import url(http://fonts.googleapis.com/css?family=Open+Sans:400,700);
body { font-family: "Open Sans"; }
@cptvitamin
cptvitamin / dabblet.css
Created October 1, 2013 14:51
HTML5 Form Input types and attributes
/**
* HTML5 Form Input types and attributes
*/
@import url(http://fonts.googleapis.com/css?family=Open+Sans:400,700);
body { font-family: "Open Sans"; }
@cptvitamin
cptvitamin / dabblet.css
Created October 1, 2013 13:53
HTML5 Sectioning elements
/**
* HTML5 Sectioning elements
*/
@import url(http://fonts.googleapis.com/css?family=Open+Sans:400,700);
body { font-family: "Open Sans"; }
@cptvitamin
cptvitamin / dabblet.css
Created September 30, 2013 15:02
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;