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
| 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 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
| 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 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
| [ | |
| { | |
| "Key": "document-00269978dfa60beb769c", | |
| "Size": 738272 | |
| }, | |
| { | |
| "Key": "document-00669204ea0679b74ecb", | |
| "Size": 740160 | |
| }, | |
| { |
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
| 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 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
| 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 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
| 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 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
| 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 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
| 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 |
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
| RSpec.describe UsersController, type: :controller do | |
| describe "GET index" do | |
| it “returns a successful response” do | |
| get :index | |
| expect(response).to be_successful | |
| end | |
| it "assigns @users" do | |
| user = User.create(name: “Test user”) | |
| get :index |
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
| function count_to_ten() { | |
| yield 1; | |
| yield 2; | |
| yield from [3, 4]; | |
| yield from new ArrayIterator([5, 6]); | |
| yield from seven_eight(); | |
| yield 9; | |
| yield 10; | |
| } |