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
| apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| name: helloweb | |
| labels: | |
| app: hello | |
| spec: | |
| selector: | |
| matchLabels: | |
| app: hello |
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
| const services = [ | |
| { serviceName: "A/C, Refrigeration Repair", mccNumber: "7623" }, | |
| { serviceName: "Accounting/Bookkeeping Services", mccNumber: "8931" }, | |
| { serviceName: "Advertising Services", mccNumber: "7311" }, | |
| { serviceName: "Agricultural Cooperative", mccNumber: "0763" }, | |
| { serviceName: "Airlines, Air Carriers", mccNumber: "4511" }, | |
| { serviceName: "Airports, Flying Fields", mccNumber: "4582" }, | |
| { serviceName: "Ambulance Services", mccNumber: "4119" }, | |
| { serviceName: "Amusement Parks/Carnivals", mccNumber: "7996" }, | |
| { serviceName: "Antique Reproductions", mccNumber: "5937" }, |
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
| UserPool.signUp( | |
| email, | |
| password, | |
| [ | |
| { Name: 'name', Value: name }, | |
| { Name: 'preferred_username', Value: username }, | |
| { Name: 'gender', Value: gender }, | |
| ], | |
| null, | |
| (err, data) => { |
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
| const poolData = { | |
| UserPoolId: 'Your User Pool ID', | |
| ClientId: 'Your Client ID', | |
| }; | |
| const UserPool = new CognitoUserPool(poolData); |
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 * as cdk from 'aws-cdk-lib'; | |
| import * as _s3 from 'aws-cdk-lib/aws-s3'; | |
| import { Construct } from 'constructs'; | |
| export class AwsCdkTsStack extends cdk.Stack { | |
| constructor(scope: Construct, id: string, props?: cdk.StackProps) { | |
| super(scope, id, props); | |
| const s3Bucket = new _s3.Bucket(this, 'samplebucket-123-xxxx', { | |
| bucketName: 'samplename', |
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
| <hr /> | |
| <input [value]="name" /> | |
| <hr /> | |
| <div> | |
| <img [src]="image" [alt]="name" /> | |
| </div> |
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 { Component } from '@angular/core'; | |
| @Component({ | |
| selector: 'my-app', | |
| templateUrl: './app.component.html', | |
| styleUrls: ['./app.component.css'], | |
| }) | |
| export class AppComponent { | |
| public name = 'Mecall'; | |
| public image = |
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 { Component } from '@angular/core'; | |
| @Component({ | |
| selector: 'my-app', | |
| templateUrl: './app.component.html', | |
| styleUrls: ['./app.component.css'], | |
| }) | |
| export class AppComponent { | |
| currentUser = 'Asim'; |
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
| <h2>{{ userComment() }}</h2> |
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
| <h2>Lenth: {{ currentUser.length }}</h2> | |
| <h2>Lenth: {{ currentUser.toUpperCase() }}</h2> |
NewerOlder