This file contains 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/bash | |
#Dependencies | |
#Parallel with Homebrew: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/parallel.rb | |
#Usage: | |
#./download-smartling-files.sh <file_type> <api_key> <project_id> | |
shopt -s nullglob |
This file contains 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
function getReleases(){ | |
git fetch &>/dev/null; | |
git checkout develop &>/dev/null; | |
git pull &>/dev/null; | |
for k in $(git branch|sed s/^..//); | |
do | |
#$k is release name | |
if [[ $k == *release* || $k == *hotfix* ]]; then |
This file contains 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: Login | |
Login can be performed with validated email | |
User stays on login page with wrong username/pass | |
Scenario: Correct Email Pass Combo | |
Given User Exists | |
And User has <email> | |
And User has <password> | |
When User attempts to login | |
Then they are given access to the service |
This file contains 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
function printStatus () { | |
string=$1; | |
status=$2; | |
lineLength=`tput cols`; | |
stringLength=${#string}; | |
statusLength=${#status}; | |
periodLength=$((lineLength - stringLength - statusLength)); | |
This file contains 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
All Asia Asset Cptl | AAA | |
---|---|---|
Albemarle & Bond Hldgs | ABM | |
Aberdeen Asset Mngmnt | ADN | |
ADVFN | AFN | |
Alecto Minerals | ALO | |
Amphion Innovations | AMP | |
Africa Oilfield | AOL | |
Alpha Strategic | APS | |
Arbuthnot Banking | ARBB | |
Arden Partners | ARDN |
This file contains 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
Very good example of Behave and feature use: https://jenisys.github.io/behave.example/ |
This file contains 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
For proper splitting of objects see here: http://stackoverflow.com/questions/7460934/best-practices-in-retrieving-related-data-in-a-rest-api | |
For faking data: https://github.com/marak/Faker.js/ | |
JSON Schema: | |
{ | |
"$schema": "http://json-schema.org/draft-04/schema#", | |
"title": "Account Data", | |
"description": "All information pertaining to a single account", | |
"type": "object", | |
"properties": { |
This file contains 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
%YAML 1.2 | |
--- | |
name: Plain Text | |
file_extensions: [txt] | |
scope: source.c | |
contexts: | |
main: | |
- match: \b(Attendee|agenda|item|TITLE|DATE|OWNER|ATTENDEES|AGENDA|ACTIONS|NOTES|RISKS)\b |
This file contains 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
{ | |
"designations" : [ | |
{"name":"The Andromeda Galaxy"}, | |
{"name":"M31"}, | |
{"name":"NGC224"}, | |
{"name":"UGC454"} | |
], | |
"observationEpoch" : "J2000", | |
"pronunciation" : "/ænˈdrɒmᵻdə/", | |
"constellation" : "Andromeda", |
This file contains 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: A Client can GET a SECTOR resource | |
As a Client | |
I want to get a sector | |
So that I can evaluate what needs to be modified | |
Background: | |
Given the system knows about the following sector: | |
| sector id | sector name | sector url | | |
| 1 | Oil & Gas | http://www.iii.co.uk/investment/detail?code=cotn:NMX0530.L&display=sector | | |
And the client creates a new SECTOR request |
OlderNewer