Skip to content

Instantly share code, notes, and snippets.

View simonbates's full-sized avatar

Simon Bates simonbates

  • Toronto, Canada
View GitHub Profile
---
resources_section: topics
resources_format: perspective (or reflection or tool)
title: "TITLE GOES HERE"
description: "DESCRIPTION GOES HERE"
---
CONTENT
### HEADING
@simonbates
simonbates / check-website-cities-hugo.sh
Last active August 22, 2018 17:01
check-website-cities-hugo
before_dir="website-cities-master"
after_dir="website-cities/public"
diff_page () {
echo -e "\nDIFF FILE: ${1}\n"
bash ./diff-website/diff_page.sh \
"$before_dir" \
"$after_dir" \
"$1"
}
@simonbates
simonbates / run_all_tests
Last active March 21, 2018 17:52
A Perl script to repeatedly run GPII/universal/tests/all-tests.js
# A Perl script to repeatedly run GPII/universal/tests/all-tests.js
#
# Run with: perl run_all_tests
#
# Assumes that it is being run in the 'universal' directory.
# Test run output will be written to files in dircetory 'all-tests_out'.
#
# NOTE: This script deletes the 'browserify' and 'node_modules'
# directories before each run.
{
"flat": {
"contexts": {
"gpii-default": {
"name": "Default preferences",
"preferences": {
"http://registry.gpii.net/applications/net.gpii.chromeExtension": {
"lineSpace": 1.5,
"highContrastEnabled": true,
"highContrastTheme": "white-black",
var fluid = require("infusion");
fluid.loadTestingSupport();
fluid.defaults("fluid.tests.cat", {
gradeNames: ["fluid.component"],
invokers: {
makeSound: "fluid.tests.cat.makeSound"
}
});

Notes on setting up a development environment for GPII with VirtualBox Fedora 22

Host environments

  • openSUSE 13.2 64 bit with VirtualBox 4.3.20 (openSUSE package)
  • Windows 7 64 bit with VirtualBox 4.3.28

Downloaded and verified the ISO

# -*- restclient -*-
# :cloud-gpii := cloud-gpii-host
:cloud-gpii := "127.0.0.1:8081"
# :local-gpii := local-gpii-host
:local-gpii := "127.0.0.1:8081"
:cloud4chrome := (url-encode-url "{ \"OS\": { \"id\": \"web\" }, \"solutions\": [ { \"id\": \"org.chrome.cloud4chrome\" } ] }")
:win32solutions := (url-encode-url "{ \"OS\": { \"id\": \"win32\" }, \"solutions\": [ { \"id\": \"com.microsoft.windows.magnifier\" }, { \"id\": \"org.nvda-project\" } ] }")