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
... | |
<input autoComplete="off" type="text" name="title" id="todoTitle" ref={register} /> | |
... | |
<select name="category" id="category" ref={register} /> | |
... | |
<input type="radio" name="priority" id="low" value='low' className='mr-2' defaultChecked ref={register} /> | |
... | |
<input type="radio" name="priority" id="med" value='med' className='mr-2' ref={register} /> | |
... | |
<input type="radio" name="priority" id="high" value='high' className='mr-2' ref={register} /> |
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
exports.handler = async (event, context, callback) => { | |
const request = event.Records[0].cf.request | |
const headers = request.headers | |
const user = 'my-username' | |
const password = 'my-password' |
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
{ | |
"printWidth": 120, | |
"proseWrap": "always", | |
"semi": false, | |
"overrides": [ | |
{ | |
"files": ["*.html"], | |
"options": { | |
"parser": "go-template" | |
} |
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
import { HostedZone } from '@aws-cdk/aws-route53'; | |
import { HttpsRedirect } from '@aws-cdk/aws-route53-patterns'; | |
import * as cdk from '@aws-cdk/core'; | |
export class HttpsRedirectStack extends cdk.Stack { | |
constructor(scope: cdk.Construct, id: string, props?: cdk.StackProps) { | |
super(scope, id, props); | |
// The code that defines your stack goes here |
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
/////////////////////////////// | |
// Part 5 | |
const hostedZone = HostedZone.fromHostedZoneAttributes(this, 'hostedZoneWithAttrs', { | |
hostedZoneId, | |
zoneName: website_domain | |
}) | |
new ARecord(this, 'aliasForCloudfront', { | |
target: RecordTarget.fromAlias(new CloudFrontTarget(distribution)), | |
zone: hostedZone, |
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
version: '3' | |
vars: | |
COMMIT_MESSAGE: added new post | |
tasks: | |
default: | |
cmds: | |
- npm update | |
- git add . |
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
FROM node:14.15.1-alpine3.12 | |
RUN mkdir -p /usr/src/app | |
WORKDIR /usr/src/app | |
COPY package.json /usr/src/app | |
COPY package-lock.json /usr/src/app |
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
# https://taskfile.dev | |
version: '3' | |
includes: | |
project1: | |
taskfile: ./project1/Taskfile.yml | |
dir: ./project1 | |
project2: | |
taskfile: ./project2/Taskfile.yml |
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
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
) | |
// OptionalInt is for json unmarshal | |
type OptionalInt struct { | |
Value int |
NewerOlder