Skip to content

Instantly share code, notes, and snippets.

View dsturley's full-sized avatar

David Sturley dsturley

View GitHub Profile
@dsturley
dsturley / gist:4735203
Created February 7, 2013 23:28
CatJS v2
[][(![]+[])[!+[]+!![]+!![]]+([]+{})[+!![]]+(!![]+[])[+!![]]+(!![]+[])[+[]]][([]+{})[!+[]+!![]+!![]+!![]+!![]]+([]+{})[+!![]]+([][[]]+[])[+!![]]+(![]+[])[!+[]+!![]+!![]]+(!![]+[])[+[]]+(!![]+[])[+!![]]+([][[]]+[])[+[]]+([]+{})[!+[]+!![]+!![]+!![]+!![]]+(!![]+[])[+[]]+([]+{})[+!![]]+(!![]+[])[+!![]]]((![]+[])[!+[]+!![]+!![]]+([][[]]+[])[!+[]+!![]+!![]]+(!![]+[])[+[]]+(+(+!![]+([][[]]+[])[!+[]+!![]+!![]]+(+!![]+[])+(+[]+[])+(+[]+[])+(+[]+[]))+[])[+[]]+([][[]]+[])[+!![]]+(!![]+[])[+[]]+([][[]]+[])[!+[]+!![]+!![]]+(!![]+[])[+!![]]+[][(![]+[])[!+[]+!![]+!![]]+([]+{})[+!![]]+(!![]+[])[+!![]]+(!![]+[])[+[]]][([]+{})[!+[]+!![]+!![]+!![]+!![]]+([]+{})[+!![]]+([][[]]+[])[+!![]]+(![]+[])[!+[]+!![]+!![]]+(!![]+[])[+[]]+(!![]+[])[+!![]]+([][[]]+[])[+[]]+([]+{})[!+[]+!![]+!![]+!![]+!![]]+(!![]+[])[+[]]+([]+{})[+!![]]+(!![]+[])[+!![]]]((!![]+[])[+!![]]+([][[]]+[])[!+[]+!![]+!![]]+(!![]+[])[+[]]+([][[]]+[])[+[]]+(!![]+[])[+!![]]+([][[]]+[])[+!![]]+([]+{})[!+[]+!![]+!![]+!![]+!![]+!![]+!![]]+([][[]]+[])[+[]]+([][[]]+[])[+!![]]
/*jshint node: true, camelcase: false */
module.exports = function (grunt) {
'use strict';
grunt.loadNpmTasks('grunt-mocha-cov');
grunt.initConfig({
mochacov: {
test: {
<!DOCTYPE html>
<html>
<head><title>aXe Rule Descriptions</title></head>
<body>
<table>
<thead><tr><th scope="col">Rule ID</th><th scope="col">Description</th><th scope="col">Tags</th></tr></thead>
<tbody><tr><td>accesskeys</td><td>Ensures that each element on the page with an accesskey attribute has a unique value</td><td>wcag2a, wcag211</td></tr>
<tr><td>area-alt</td><td>Checks the &lt;area&gt; elements of image maps to ensure that they have an alternative text</td><td>wcag2a, wcag111, section508, section508a</td></tr>
<tr><td>aria-allowed-attr</td><td>Checks all attributes that start with &#39;aria-&#39; to ensure that they are all official WAI-ARIA attributes</td><td>wcag2a, wcag411</td></tr>
<tr><td>aria-required-attr</td><td>Checks all elements that contain WAI-ARIA roles to ensure that all required aria- attributes are present</td><td>wcag2a, wcag411</td></tr>
<!doctype html>
<html lang="en">
<head>
<title>Test Page</title>
<style>
* { box-sizing: border-box; }
html, body {
padding: 0;
margin: 0;
height: 100%;
{
"target": [
".is-copy-enabled > .logged_in.env-production.macintosh.vis-public > .wrapper > .header.header-logged-in.true > .container.clearfix > .site-search.repo-scope.js-site-search > .js-site-search-form > .js-chromeless-input-container.form-control > .scope-badge"
],
"html": "<div class=\"scope-badge\">This repository</div>",
"impact": "critical",
"any": [
{
"id": "color-contrast",
"impact": "critical",
/* eslint-disable no-console */
import _ from 'lodash';
/*
Drop this mixin into a component that wastes time according to Perf.getWastedTime() to find
out what state/props should be preserved. Once it says "Update avoidable!" for {state, props},
you should be able to drop in React.addons.PureRenderMixin
React.createClass {
mixins: [WhyDidYouUpdateMixin]
@dsturley
dsturley / git-rmob
Created June 28, 2017 23:37
remove branches that were squashed and merged into develop
#!/bin/bash
git checkout -q develop && git for-each-ref refs/heads/ "--format=%(refname:short)" | while read branch; do mergeBase=$(git merge-base develop $branch) && [[ $(git cherry develop $(git commit-tree $(git rev-parse $branch^{tree}) -p $mergeBase -m _)) == "-"* ]] && git branch -D $branch; done