<Switch
value={isGlutenFree}
trackColor={{ true: Colors.primary }}
onValueChange={(newValue) => setIsGlutenFree(newValue)}
/>- OpenAPI
- Models with circular references are not supported.
- IAM policy examples for API execution permissions
Lambda Permission for API Gateway in Terraform
resource "aws_api_gateway_rest_api" "MyDemoAPI" {
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
| type Member = { | |
| id: string; | |
| firstName: string; | |
| lastName: string; | |
| age: number; | |
| salary: number; | |
| }; | |
| for (const field of ['firstName', 'lastName', 'age', 'salary'] as Array< | |
| keyof Member |
- be sure to set .wsconfig for memory consuming issue
- install
nvm - install
Node.js - install CDK CLI
- install dotnet SDK(this takes a long time)
- locally build a dotnet6 lambda container image (no official image atm)
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
| #!/bin/bash | |
| # Enhanced notify-slack.sh that handles both Notification and Stop hooks | |
| # Replace YOUR_WEBHOOK_URL with your actual Slack webhook URL | |
| # Slack Webhook URL (replace with your actual URL) | |
| WEBHOOK_URL="YOUR/WEBHOOK/URL" | |
| # Check if webhook URL has been updated | |
| if [[ "$WEBHOOK_URL" == *"YOUR/WEBHOOK/URL"* ]]; then |
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
| #!/bin/bash | |
| # Simple hook to process trailing options | |
| input=$(cat) | |
| # Check if there are options at the end of prompt | |
| if echo "$input" | grep -q '"prompt".*-[a-z]\+"'; then | |
| # Extract just the options part (e.g., "-uj" -> "uj") | |
| options=$(echo "$input" | grep -o '\-[a-z]\+"' | tail -1 | sed 's/-//' | sed 's/"//') |
OlderNewer

