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
var car = { | |
colour: 'red', | |
doors: '5', | |
topSpeed: '120mph', | |
engine: 'four-stroke', | |
power: '200bhp' | |
}; | |
console.log(car); |
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
{ | |
"Start obvious console.log()": { | |
"prefix": "slog", | |
"body": [ | |
"console.log('%c <<< log start >>> ', 'color: black; background-color: yellow');" | |
], | |
"description": "Make it obvious you are starting a console.log()" | |
}, | |
"End obvious console.log()": { | |
"prefix": "elog", |
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
var array = [{name: 'anne'}, {name: 'jim'}, {name: 'sam'}, {name: 'kay'}, {name: 'olive'}] | |
console.log('%c <<< log start >>> ', 'color: red; background-color: yellow'); | |
for (let i = 0; i < array.length; i++) { | |
console.log(array[i]); | |
} | |
console.log('%c <<< log end >>> ', 'color: yellow; background-color: black'); |
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
Key | Size | |
---|---|---|
document-00269978dfa60beb769c | 738272 | |
document-00669204ea0679b74ecb | 740160 | |
document-00a79e8568a4ae475d14 | 755184 | |
document-01105efea75027f38ce4 | 848368 | |
document-0138d4d088dcf2f97f2b | 746000 | |
letter-01574879af8ae49b7511 | 737664 | |
letter-0195dc8b4d29182b7d3e | 845952 | |
letter-01c2bc2d7d8593a954b7 | 754208 | |
letter-01c79985e8afc6bd5608 | 744640 |
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
[ | |
{ | |
"Key": "document-00269978dfa60beb769c", | |
"Size": 738272 | |
}, | |
{ | |
"Key": "document-00669204ea0679b74ecb", | |
"Size": 740160 | |
}, | |
{ |
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
RELEASE_BRANCH=$(echo $CIRCLE_BRANCH | rev | cut -c1-30 | rev | tr -s ' _/[]()') | |
RELEASE_NAME="$APPLICATION_DEPLOY_NAME-$RELEASE_BRANCH" | |
RELEASE_HOST="$RELEASE_BRANCH-$UAT_HOST" | |
helm upgrade $RELEASE_NAME ./helm_deploy/apply-for-legal-aid/. \ | |
--install --force --wait \ | |
--tiller-namespace=${KUBE_ENV_UAT_NAMESPACE} \ | |
--namespace=${KUBE_ENV_UAT_NAMESPACE} \ | |
--values | |
./helm_deploy/apply-for-legal-aid/values-uat.yaml \ |
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
helm list --tiller-namespace=laa-apply-for-legalaid-uat --namespace=laa-apply-for-legalaid-uat --debug --all | |
[debug] Created tunnel using local port: '54222' | |
[debug] SERVER: "127.0.0.1:54222" | |
NAME REVISION UPDATED STATUS CHART NAMESPACE | |
apply-for-legal-aid-proceeding-searches 4 Mon Nov 19 14:58:38 2018 DEPLOYED apply-for-legal-aid-0.1.0 laa-apply-for-legalaid-uat | |
apply-for-legal-aid-address-lookup 1 Tue Nov 20 09:57:58 2018 DEPLOYED apply-for-legal-aid-0.1.0 laa-apply-for-legalaid-uat |
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
RELEASE_NAME="$APPLICATION_DEPLOY_NAME-$CIRCLE_BRANCH" | |
RELEASE_HOST="$CIRCLE_BRANCH-$UAT_HOST" | |
helm upgrade $RELEASE_NAME ./helm_deploy/apply-for-legal-aid/. \ | |
--install --force --wait \ | |
--tiller-namespace=${KUBE_ENV_UAT_NAMESPACE} \ | |
--namespace=${KUBE_ENV_UAT_NAMESPACE} \ | |
--values | |
./helm_deploy/apply-for-legal-aid/values-uat.yaml \ | |
--set deploy.host="$RELEASE_HOST" \ |
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
helm upgrade ${APPLICATION_DEPLOY_NAME} | |
./helm_deploy/apply-for-legal-aid/. \ | |
--install --wait \ | |
--tiller-namespace=${KUBE_ENV_UAT_NAMESPACE} \ | |
--namespace=${KUBE_UAT_UAT_NAMESPACE} \ | |
--values | |
./helm_deploy/apply-for-legal-aid/values-uat.yaml \ | |
--set image.repository="${APP_REPOSITORY}" \ | |
--set image.tag="${CIRCLE_SHA1}" \ | |
--set ingress.hosts="{${UAT_HOST}}" \ |
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
RSpec.describe "Users", type: :request do | |
describe "request list of all users" do | |
user = User.create(name: “Test user”) | |
get users_path | |
expect(response).to be_successful | |
expect(response.body).to include(“Test user”) | |
end | |
end |