This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# This isn't really a git hook, but it's manually called it after every fetch run. | |
# This script essentially wraps the actual post-receive hook. | |
# Build the standard input for the post-receive hook | |
touch CPRO_HEAD | |
cat refs/heads/* | paste CPRO_HEAD - > post-fetch.tmp | |
find refs/heads/* | paste post-fetch.tmp - | awk '{print $1, $2, $3}' > post-fetch.stdin | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# features/support/parameter_types.rb | |
suffix = '(?:st|nd|rd|th)' | |
ParameterType( | |
name: 'flight', | |
regexp: /(\d+)#{suffix} flight/, | |
transformer: ->(n) { n.to_i } | |
) | |
ParameterType( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
function removeBom | |
{ | |
awk 'NR==1{sub(/^\xef\xbb\xbf/,"")}{print}' "$1" > .nobom | |
mv .nobom "$1" | |
} | |
shopt -s globstar | |
for f in **/*.{cs,config,feature,feature.cs,csproj,sln,md}; do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fetchBuild(inputData.buildNum, CIRCLE_TOKEN) | |
.then(failedAction) | |
.then(function(action) {callback(null, {'Failed Action': action})}) | |
.catch(function(err) {callback(err)}) | |
function fetchBuild(buildNum, circleToken) { | |
return fetch( | |
'https://circleci.com/api/v1.1/project/github/cucumber-ltd/cucumber-pro/' + | |
buildNum + | |
'?circle-token=' + |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install a bunch of tools: | |
# | |
# eslint - looks for logical mistakes in the code (unused params etc), *not* formatting | |
# eslint-config-prettier - overrides default eslint rules to disable formatting rules | |
# eslint-plugin-prettier - configures `eslint --fix` to format code with prettier | |
# prettier - prettifies code | |
# lint-staged - only runs `eslint --fix` on files that have been staged with `git add` | |
# husky - automatically installs a precommit hook that runs lint-staged | |
# | |
yarn add --dev eslint eslint-config-prettier eslint-plugin-prettier prettier lint-staged husky |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
^import (.*) from ["'](.*)["']$ | |
const $1 = require('$2') | |
export default | |
module.exports = |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# The bumbailiff allows the team to take up a small amount of technical debt | |
# (TODOs in the code) for a limited period. After that period the script fails. | |
# | |
# Originally written by Aslak Hellesoy | |
# | |
set -ef -o pipefail | |
IFS=$'\n' # make newlines the only separator |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Feature: Create Healthcare Study Team user account | |
The back-office users should be able to create a Healthcare | |
Study Team user account. | |
Rules: | |
- The following fields are mandatory: | |
- Gender (male, female) | |
- Last Name | |
- First Name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This script sets up (or removes) port forwarding on VirtualBox | |
# for all ports defined in fig.yml | |
require 'yaml' | |
op = ARGV[0] | |
if op.nil? || !( /(up|down)/ =~ op ) | |
$stderr.puts "Usage:\n ruby #{__FILE__} up|down" | |
exit 1 | |
end |