Skip to content

Instantly share code, notes, and snippets.

View fmitchell's full-sized avatar

Fredric Mitchell fmitchell

View GitHub Profile
@dustinleblanc
dustinleblanc / .lando.yml
Last active September 1, 2021 19:15
Pantheon Build Tools with Lando Behat Testing
name: some-site
recipe: pantheon
config:
framework: drupal8
env: dev
site: some-site
id: some-uuid-string-here
drush: 8.3
php: '7.3'
webroot: web
import React from 'react'
import { StaticQuery, graphql } from 'gatsby'
import Layout from '../components/templates/layout'
import Home from '../components/templates/home'
const dateFormat = require('date-fns/format')
const IndexPage = () => (
<StaticQuery
query={graphql`
@jmolivas
jmolivas / page-template-grahql-query.js
Created November 6, 2019 19:42
used for demonstration purposes
export const query = graphql`
query($slug: String!) {
site {
siteMetadata {
domain
}
}
allSiteSettingEntitySite {
edges {
node {
@rupl
rupl / drupal-test.js
Last active November 18, 2017 23:24
This sample accompanies a blog post series about CasperJS found at http://fourword.fourkitchens.com/article/testing-drupal-casperjs
/**
* @file
* Testing a demo of Drupal. The script will log in and check for various
* features in Drupal core. This demo was inspired by a similar script for
* a Wordpress site. The original script was written by Henrique Vicente.
*
* @see https://github.com/henvic/phantom-casper-simple-talk/blob/master/wordpress.js
*/
// Set up variables to visit a URL and log in.
When I go to "/node/add"
And follow "Campaign"
And should see "Create Campaign"
And fill in "Campaign Name" with "Test campaign [autotest]"
And fill in "field_layout[und][0][template_fields][inputs][content_fields][vertical_tabs][0][fieldset][top][textarea][value]" with "Campaign banner text here"
And attach the file "misc/arrow-asc.png" to "files[field_image_und_0]"
And select "autotest_donation_basic: Test donation product [autotest]" from "field_donation_product[und]"
And uncheck "path[pathauto]"
And fill in "path[alias]" with "autotest-campaign"
And press "Save"
<?php
/**
* Implements hook_libraries_info()
*/
function taleo_libraries_info() {
return array(
'Taleo' => array(
'name' => 'Taleo PHP Library',
'xautoload' => '_taleo_xautoload',