Skip to content

Instantly share code, notes, and snippets.

View fuzzbomb's full-sized avatar

Andrew Macpherson fuzzbomb

View GitHub Profile
Falsehoods programmers think about accessibility
There exists a lot of lists of Falsehoods programmers think about X but while searching for ones for accessiblitiy
I noticed there was a limited amount though I did find [Common web accessiblity myths](https://www.boia.org/blog/common-web-accessibility-myths).
It should be noted that this is not my special field, I am just very intrested in a more accessible Internet. The list is also
not in any specific order. Also please notice that programmer here could as well be "People in the tech industry"
Standard disclaimer: My native language is not English and it might show in some places, also sometimes my vocubulary is limited.
Also people with more knowledge please add and edit this list.
@airblade
airblade / vimrc
Created April 5, 2019 11:04
Using vim-gitgutter to achieve niklaas/lightline-gitdiff
let g:gitgutter_signs=0
function! GitStatus()
return join(filter(map(['A','M','D'], {i,v -> v.': '.GitGutterGetHunkSummary()[i]}), 'v:val[-1:]'), ' ')
endfunction
set statusline+=%{GitStatus()}
@popey
popey / setup_easy-openvpn_ubuntu-core.md
Last active March 24, 2021 11:40
Steps to setup easy-openvpn on Ubuntu Core

Steps to setup easy-openvpn on Ubuntu Core

This gist is to accompany a more wordy blog post which covers everything in much more detail. These are the easily copy/pastable steps.

For this you will need:-

  • Raspberry Pi 2 or 3, PSU, keyboard, LAN connection, HDMI cable and display
  • Laptop/desktop computer - mine is running Ubuntu 18.04 but anything with SSH will do
  • Micro SD card and adapter to attach to the computer
@brianteeman
brianteeman / navigation.md
Last active October 24, 2017 12:12
Testing accessible navgation strip

TEXT IN CAPS WILL BE LOCALISED

<nav role="navigation" aria-label="PAGENAVIGATION">
	<ul class="pagination-list">
		<li class="disabled">
			<a>
				<span class="icon-first" aria-hidden="true"></span>
			</a>
 
@zaclittleberry
zaclittleberry / custom_module.module.php
Last active March 5, 2017 15:04
Drupal hierarchical taxonomy terms find/create from an array
<?php
/**
* Helper function to retrieve tid of nested term, by tracing or creating terms.
*
* @param array $term_names
* The term names used to create the hierarchy from the parent to the child.
*
* @param string $vocabulary
* The machine name of the vocabulary the terms should be found/built within.
@mortendk
mortendk / image-widget.html.twig
Created July 13, 2016 10:57
image widget upload label as a button trick
{#
.theme:
function birch_preprocess_image_widget(&$variables, $hook) {
// the image widget needs to know what the label is
// look in admin/image-widget.hmtl.twig
$variables['form_label_id'] = $variables['element']['#id'];
}
#}
{#
field_tags:
plugin: iterator
source: field_tags
process:
target_id:
plugin: migration
migration: upgrade_d7_taxonomy_term
source: tid
@chrischambers
chrischambers / gist:748467e46db72d6c0dea
Last active June 20, 2018 03:08
Oneshot layer patch (modified for qmk firmware)
from 6c22c5f613adb15b9fe4d31ee70567d05cf127c8 mon sep 17 00:00:00 2001
from: ahtn <ahtn@users.noreply.github.com>
Date: Sun, 18 Oct 2015 17:25:46 +1000
Subject: [PATCH] Adds oneshot layer and oneshot tap toggling
* Adds ACTION_LAYER_ONESHOT
* Adds ONESHOT_TAP_TOGGLE
* Mentions sticky keys in the docs on oneshot.
---
tmk_core/doc/keymap.md | 18 +-
@superjamie
superjamie / raspberry-pi-vpn-router.md
Last active July 2, 2024 07:48
Raspberry Pi VPN Router

Raspberry Pi VPN Router

This is a quick-and-dirty guide to setting up a Raspberry Pi as a "router on a stick" to PrivateInternetAccess VPN.

Requirements

Install Raspbian Jessie (2016-05-27-raspbian-jessie.img) to your Pi's sdcard.

Use the Raspberry Pi Configuration tool or sudo raspi-config to:

@aFarkas
aFarkas / focus-within.js
Last active August 20, 2020 10:49
simple focus-within polyfill
(function(window, document){
'use strict';
var slice = [].slice;
var removeClass = function(elem){
elem.classList.remove('focus-within');
};
var update = (function(){
var running, last;
var action = function(){
var element = document.activeElement;