Skip to content

Instantly share code, notes, and snippets.


Rob Squires robsquires

View GitHub Profile
robsquires /
Last active May 1, 2020
Outlines what data is currently used by the bubbles

From Myft API follows data

Returns array of concepts:

robsquires / prepare-commit-msg
Last active Sep 14, 2017
Pre populate the jira prefix on commit messages
View prepare-commit-msg
# abort if .git-hooks is not present
# add .git-hooks to .git-ignore so people can opt-in
if [ ! -f .git-hooks ]; then
exit 0
# some commit operations we dont want to prefix the message
if [[ "$2" == "merge" || "$2" == "commit" || "$2" == "template" || "$2" == "squash" ]]; then
echo "Not a regular commit so ignoring.."
exit 0
robsquires / pre-commit
Created Apr 8, 2016
Run jshint on git commit
View pre-commit
# You'll need Jshint available, perhaps 'npm install -g jshint'
files=$(git diff --cached --name-only --diff-filter=ACM | grep "\.js$")
if [ "$files" = "" ]; then
exit 0

Media Asset Pages powered by a PID should be playable

Given I'm on a media asset page powered by a PID
 When I press play on the video
 Then the video should play

has now become..

Videos authored by UK journalists through system X should be playable on media asset pages

View student_search.feature
Scenario: Student can search for a user
Given I am viewing the user list
And I have entered the search term "cwl15"
When I press search
Then I will see the following search results:
| cwl15 |
Scenario: Student will be suggested search terms to help speed up their search
Given I am viewing the user list
View BBEdit-TextWrangler_RegEx_Cheat_Sheet.txt
The PCRE engine (Perl Compatible Regular Expressions) is what BBEdit and TextWrangler use.
Items I'm unsure of are marked '# PCRE?'. The list while fairly comprehensive is not complete.
robsquires / set-auth-cookie.php
Created Dec 10, 2013
set cookie (maybe for authentication) when using WebApiDriver
View set-auth-cookie.php
robsquires / selenium treats
Created Sep 6, 2013
code snippets to aid error diagnosis when using phantomjs
View selenium treats
catching uncaught JS errors
//put this in your <head>
<script type="text/javascript" >
window.jsErrors = [];
window.onerror = function() {
window.jsErrors[window.jsErrors.length] = arguments;
robsquires / transform_not_matching
Created Mar 17, 2013
For the given gherkin feature the standard step definitions are matching not problem. However, the @Transform is not being matched. Is the syntax correct?
View transform_not_matching
for the given scenario:
Scenario: I can drill down by product line
Given I have searched for "light sources"
And I have selected the category "led"
When I select the product line "Track 3"
Then I should see products:
| name |
| Test Product 3 |