Skip to content

Instantly share code, notes, and snippets.

View agentolivia's full-sized avatar

Amber Matz agentolivia

  • OsioLabs / Drupalize.Me
  • Beaverton, OR
View GitHub Profile
@agentolivia
agentolivia / README.md
Created March 31, 2022 03:46 — forked from juampynr/README.md
Run Drupal 8 web tests without installing Drupal
  1. Create a MySQL database.
  2. Create a user that has access to that database.
  3. Make sure that you have the PDO_MySQL PHP library (otherwise you will get an error because it is missing).
  4. Run the following script.
  5. Once tests complete, we need to stop PHP's web server.

Note: there seem to be some issues with PHP's built-in web server. Please report them here https://www.drupal.org/node/1543858.

@agentolivia
agentolivia / chirp font urls.txt
Created August 11, 2021 19:28 — forked from foone/chirp font urls.txt
Filter for the new twitter font
https://abs.twimg.com/fonts/chirp-regular-web.woff
https://abs.twimg.com/fonts/chirp-bold-web.woff
https://abs.twimg.com/fonts/chirp-heavy-web.woff
https://abs.twimg.com/fonts/chirp-medium-web.woff
const data = require('../Downloads/Slack/diversity-inclusion/2019-03-07.json');
const usersExport = require('../Downloads/Slack/users.json');
// Load all users into memory.
const users = {};
const contributors = {};
usersExport.forEach(user => {
users[user.id] = user.profile.display_name_normalized ? user.profile.display_name_normalized : user.profile.real_name_normalized;
});
@agentolivia
agentolivia / create-node.feature
Last active December 22, 2015 01:28
my behat.yml
Feature:
@api
Scenario: Create a node
Given I am on the homepage
And I am logged in as a user with the "administrator" role
When I am viewing an "article" node with the title "My article"
Then I should see the heading "My article"
@agentolivia
agentolivia / panesandblocks.inc
Last active May 26, 2016 17:02 — forked from anonymous/gist:5745928
Example of CTools Style Plugin dot inc file.
<?php
/**
* Defines a style plugin
*
* - panesandblocks: corresponds to directory name of plugin
* - render pane: the suffix of the theme function for the pane (without "theme_").
* - Example: If the function name is "theme_panesandblocks_render_pane",
* the value of "render pane" is "panesandblocks_render_pane".
* - render region: the suffix of the theme function for the region (without "theme_").
* - Example: If the function name is "theme_panesandblocks_render_region",