Skip to content

Instantly share code, notes, and snippets.

Malcolm Young malcomio

Block or report user

Report or block malcomio

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@malcomio
malcomio / _pa11y errors for capgemini.github.io
Last active Aug 30, 2017
Pa11y results for capgemini.github.io - errors only
View _pa11y errors for capgemini.github.io
pa11y https://capgemini.github.io --ignore "warning;notice"
pa11y https://capgemini.github.io/categories --ignore "warning;notice"
pa11y https://capgemini.github.io/cloud/Managing-Cloud-Infrastructure-in-Amazon-Web-Service-using-VoiceOps/ --ignore "warning;notice"
View Managing-Cloud-Infrastructure-in-Amazon-Web-Service-using-VoiceOps.txt
Welcome to Pa11y
> PhantomJS browser created
> Testing the page "https://capgemini.github.io/cloud/Managing-Cloud-Infrastructure-in-Amazon-Web-Service-using-VoiceOps/"
Results for https://capgemini.github.io/cloud/Managing-Cloud-Infrastructure-in-Amazon-Web-Service-using-VoiceOps/:
• Notice: Check that the title element describes the document.
├── WCAG2AA.Principle2.Guideline2_4.2_4_2.H25.2
@malcomio
malcomio / my.cnf
Created May 3, 2016
MySQL settings for DrupalVM with increased memory etc
View my.cnf
[client]
#password = your_password
port = 3306
socket = /var/run/mysqld/mysqld.sock
[mysqld]
port = 3306
bind-address = 0.0.0.0
datadir = /var/lib/mysql
socket = /var/run/mysqld/mysqld.sock
View innodb.php
<?php
// your connection
mysql_connect("localhost","root","root");
mysql_select_db("d6");
// convert
$result = mysql_query("SHOW TABLES");
while ($row = mysql_fetch_array($result)) {
foreach ($row as $key => $table) {
@malcomio
malcomio / codepen.module
Created Nov 24, 2015
Add Codepen embed JS to Drupal
View codepen.module
drupal_add_js('//assets.codepen.io/assets/embed/ei.js', array(
'type' => 'external',
'scope' => 'footer',
));
View dabblet.js
// alert('Hello world!');
@malcomio
malcomio / dabblet.css
Created Jan 22, 2014
Table hover borders
View dabblet.css
/**
* Table hover borders
*/
table {
border-collapse: collapse;
}
tr {
border-bottom: 1px solid transparent;
border-top: 1px solid transparent;
@malcomio
malcomio / gist:8556964
Created Jan 22, 2014
Example of Drupal's hook_css_alter and hook_js_alter to remove unwanted core and contrib styles and scripts.
View gist:8556964
/**
* Implements hook_js_alter().
*
* Remove unwanted module JS.
*/
function mytheme_js_alter(&$javascript) {
$removal_list = array(
'google_cse' => array(
'/google_cse.js',
@malcomio
malcomio / dabblet.css
Created Dec 31, 2013
Advent calendar doors.
View dabblet.css
/**
* Advent calendar doors.
*/
body {
background: #000;
}
.views-row {
margin: 1em;
float: left;
@malcomio
malcomio / gist:6386306
Last active Dec 21, 2015
Drupal 7 View to display top artist images from a last.fm audioscrobbler feed. Depends on the following modules: Views Views XML Backend
View gist:6386306
$view = new view();
$view->name = 'last_fm_artists';
$view->description = '';
$view->tag = 'default';
$view->base_table = 'xml';
$view->human_name = 'Last.fm artists';
$view->core = 7;
$view->api_version = '3.0';
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
You can’t perform that action at this time.