Skip to content

Instantly share code, notes, and snippets.

@mjhenkes
mjhenkes / Makefile
Created October 7, 2015 21:04
SPL makefile
########################################################################
#
# SPL, the Shakespeare Programming Language
#
# Copyright (C) 2001 Karl Hasselström and Jon Åslund
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or (at
# your option) any later version.
@mjhenkes
mjhenkes / derp.rb
Created June 19, 2017 13:22
current kaiju ast
{
"id"=>"40791f71-96ea-4817-a29b-19398d01da0c",
"type"=>"kaiju::Workspace",
"properties"=>{
"children"=>{
"id"=>"children",
"type"=>"Array",
"value"=>[
{
"id"=>"children::0",
import React from 'react';
import PropTypes from 'prop-types';
import ContentContainer from 'terra-content-container';
import SlidePanel from 'terra-slide-panel';
import Image from 'terra-image';
import SingleSelectList from 'terra-list/lib/SingleSelectList';
import List from 'terra-list';
import ItemView from 'terra-clinical-item-view';
import ItemDisplay from 'terra-clinical-item-display';
import DemographicsBanner from 'terra-demographics-banner';
const defaultConfig = require('terra-dev-site/config/wdio/wdio.conf');
const { LocalCompare } = require('wdio-visual-regression-service/compare');
const path = require('path');
const webpackConfig = require('./webpack.config');
const testIdRegex = /\[([^)]+)\]/;
function testName(parent, title) {
const matches = testIdRegex.exec(title);
const parentName = parent.replace(/[\s+.]/g, '_');
import React from 'react';
import PropTypes from 'prop-types';
import DynamicImportWrapper from './_DynamicImportWrapper';
const propTypes = {
/**
* The content to be placed within the main content area of the container.
*/
content: PropTypes.func,
version: '3'

services:
  standalone-chrome:
    image: 'selenium/standalone-chrome:3.14.0-helium'
    ports:
      - '4444'
    # Necessary due to some issues with chrome in docker.  See https://github.com/SeleniumHQ/docker-selenium#running-the-images
 volumes:
const LOGGER_ENABLED = process.env.NODE_ENV !== 'production';
const NO_OP = () => {};
/* eslint-disable no-console */
const Logger = {
info: LOGGER_ENABLED ? console.log : NO_OP,
warn: LOGGER_ENABLED ? console.warn : NO_OP,
error: console.error,
};
/* eslint-enable no-console */
@mjhenkes
mjhenkes / ugly-changelog-updater.js
Created July 31, 2020 13:09
super ugly hacky script to update terra readmes one time
#!/usr/bin/env node
/* eslint-disable no-console */
/* eslint import/no-extraneous-dependencies: ["error", {"devDependencies": true}] */
const fs = require('fs');
const filePath = './CHANGELOG.md';
const output = fs.readFileSync(filePath, 'utf8');
const withoutH3 = output.replace(/### /g, '');
const withH1 = withoutH3.replace('Changelog', '# Changelog');
@mjhenkes
mjhenkes / spec.js
Last active January 24, 2022 19:06
Cypress and cy partition discussion
it('window:before:load event', () => {
Cypress.Screenshot.defaults({
stuff: true
})// this only applies to the primary domain
cy.visit('/fixtures/multi-domain.html')
cy.intercept('foobar.com/api')
@mjhenkes
mjhenkes / issue.md
Created May 4, 2022 14:40
Simple issue template

What would you like?

Why is this needed?

Other