Skip to content

Instantly share code, notes, and snippets.

View rowanmanning's full-sized avatar
📢
honk

Rowan Manning rowanmanning

📢
honk
View GitHub Profile
@rowanmanning
rowanmanning / README.md
Last active February 18, 2024 21:12
Writing a Friendly README. This a companion-gist to the post: http://rowanmanning.com/posts/writing-a-friendly-readme/
@rowanmanning
rowanmanning / testing.html
Created April 30, 2010 14:22
HTML template for testing CSS
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>CSS Testing</title>
</head>
<body id="top">
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
@rowanmanning
rowanmanning / list-colors.bash
Created November 29, 2012 09:54
Output all 255 terminal colors (Works on a Mac anyway...)
for i in {0..255}; do echo "$i: $(tput setaf $i)reg $(tput bold)bld$(tput sgr0) $(tput sgr 0 1)$(tput setaf $i)und$(tput sgr0)"; done
@rowanmanning
rowanmanning / pa11y-actions-github.js
Created March 16, 2017 10:47
Pa11y Actions GitHub
// An example of executing some actions before Pa11y runs.
// This example logs in to GitHub and runs tests on the
// user dashboard page. Note: this won't work if you have
// two-factor auth enabled.
'use strict';
var pa11y = require('../..');
// Create a test instance with some default options
var test = pa11y({
@rowanmanning
rowanmanning / package.json.js
Created December 18, 2011 15:11
Familiarising myself with npm's package.json specification
{
//-----------------------------------------------------------
// Important information
// Name and version are required and together are treated as
// a unique identifier for a particular build. Name
// [http://npmjs.org/doc/json.html#name] and version
// [http://npmjs.org/doc/json.html#version] are strings.
"name": "mypackage",
"version": "0.1",
@rowanmanning
rowanmanning / pa11y-queue.js
Created May 18, 2016 19:17
Example of running Pa11y in parallel
// Example of running Pa11y in parallel. Now that I found
// this I realise it should definitely be in the examples
// in the repo!
//
// You'll need to install `async` and `pa11y`, probs in a
// package.json. This isn't perfect, might need some
// tweaking. Also runs in Node.js 4+ because I'm far too
// used to typing `const` and arrow functions now.
'use strict';
#!/usr/bin/env node
bigify = string => Array.from(string).map(letter => letter == ' ' ? ':blank:' : `:b${letter}:`).join('')
process.stdout.write(bigify(process.argv.slice(2).join(' ')));
@rowanmanning
rowanmanning / my-sugars.sh
Created December 3, 2010 10:36
My Favourite Espresso Sugars
current_dir=`pwd`;
cd ~/Library/Application\ Support/Espresso/Sugars/;
echo "Installing Sugars:";
if [ ! -d ./CSS3.sugar ]; then
echo "Installing CSS3.sugar...";
git clone -q git://github.com/minimalweb/CSS3.sugar.git ./CSS3.sugar;
else
echo "CSS3.sugar already installed, attempting update...";
@rowanmanning
rowanmanning / README.md
Last active February 1, 2017 13:57
Top 10 Slack Emoji Authors

Top 10 Slack Emoji Authors

Get a table containing the top 10 Slack emoji authors:

  1. Navigate to https://<your-org>.slack.com/customize/emoji

  2. Open the console

  3. Paste in the following and hit return:

@rowanmanning
rowanmanning / README.md
Created January 19, 2014 10:57
Example README for talk: "UX For Your Node Modules"

Paddington

A small library for padding strings in JavaScript. Marmalade-free.

NOTE: PADDINGTON IS NO LONGER UNDER ACTIVE DEVELOPMENT.
If you're interested in maintaining Paddington, please get in touch via GitHub.

Current Version: 1.0.0