Skip to content

Instantly share code, notes, and snippets.

@mparker17
mparker17 / mixins.scss
Last active July 8, 2022 08:59
Useful SCSS mixins
// Useful SCSS mixins.
// Apply styles to all header elements at once.
@mixin headers-all {
h1,
h2,
h3,
h4,
h5,
h6 {
@mparker17
mparker17 / gist:8623468
Last active October 31, 2017 14:03
D7 settings.local.php template.
Moved to https://github.com/mparker17/drupal-settings_local_snippets
@mparker17
mparker17 / Allowed HTML tags and explanations.md
Last active June 21, 2019 19:12
HTML5 tags that could be used for general content entry on a typical Drupal site — for filter_xss() or filter.module's "Limit allowed HTML tags" filter.

Important notes:

The purpose of this list is to help you evaluate which tags to allow guest contributors to your CMS to use, so...

  • It doesn't list all available elements. Notably, it's missing the tags that deal with text-direction, ruby markings, advanced media tags, form elements, and HTML document structure tags.
  • It's not designed to be super-detailed or technically-correct. There are really detailed, technically-correct groupings of elements available if you want them.

... so, no hatin' please :)

Everyone knows these

@mparker17
mparker17 / 01 A11y Prioritization.md
Last active December 22, 2015 18:09
My notes from Environments for Humans A11y Summit 4. http://environmentsforhumans.com/2013/accessibility-summit/

2013-09-10 10:00EDT - A11y Prioritization

"What should I fix first?"

Glenda Sims @goodwitch Slides at http://is.gd/mWBQ3G

Define the finish line

@mparker17
mparker17 / Manual test case.jira
Last active June 26, 2024 03:38
My manual–test-case template. Special thanks to @RitikaThakur and @akshaybarve!
h1. Manual test case
Objective: <what's the purpose of the test>
h2. Environment
* <codebase and database>
h2. Pre-conditions
@mparker17
mparker17 / 2013-08-13.md
Last active December 21, 2015 01:18
Drupal 8 Training at @palantirnet

2013-08-13 13:00 — Notes from Drupal 8 Training @ Palantir.net

Overview

  • Drupal 8 for site builders
  • New concepts from PHP
  • Architecture overview
  • D8 building blocks
  • Testing
@mparker17
mparker17 / .zshrc
Last active December 19, 2015 23:08
My custom additions to my .zshrc
#
# Changes to the .zshrc that ships with oh-my-zh.
#
# Find the mparker17 theme at https://gist.github.com/mparker17/2881836
ZSH_THEME="mparker17"
COMPLETION_WAITING_DOTS="true"
# Some others that might be useful based on environment: osx, rbenv, vagrant, bundler, composer, brew
plugins=(colored-man git git-extras)
@mparker17
mparker17 / 2013-07-13 1000 - Drupalicon's fables.md
Last active December 19, 2015 17:49
Notes from DrupalCamp Toronto 2013

2013-07-13 10:00 Andrew Berry Keynote

The Feature and It's Reflection: If you always chase what's hot in the Drupal community, you'll leave your own work behind and end up with nothing.

Ticket Soup: An effective project manage enables positive collaboration by identifying actionable units of work…

The Client in the User's Skin: Don't let your client pretend to be the user. Don't let the user in user stories be "I" or "me"…

The QA Tester and the other Devs: Testers ensure we have to acknowledge reality: QA is our best guard against software decay and run, even when it feels like it impedes progress towards our goes. We had better heed their device.

@mparker17
mparker17 / Whose Hook is it Anyway.md
Last active December 19, 2015 17:19
2013-07-13 DrupalCampTO Presentation - Whose Hook is it Anyway?

Whose Hook is it Anyway?

A comedic look into Drupal 8

Presented at DrupalCamp Toronto 2013 (2013-07-13). By @mparker17 and @emarchak

Dependency injection in D8

What is dependency injection?

@mparker17
mparker17 / pre-commit.sh
Last active December 18, 2015 12:49
Pre-commit hook to prevent me from checking in syntax errors on my Drupal projects. Put in `.git/hooks` and remove the `.sh` from the filename.
#!/bin/sh
#
# An example hook script to verify what is about to be committed.
# Called by "git commit" with no arguments. The hook should
# exit with non-zero status after issuing an appropriate message if
# it wants to stop the commit.
#
# Put this file in .git/hooks and name it pre-commit
# Redirect output to stderr.