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/core'; | |
| import * as s3 from '@aws-cdk/aws-s3'; | |
| import * as lambda from '@aws-cdk/aws-lambda'; | |
| export interface AppStackProps extends cdk.StackProps { | |
| lambdaParamName: string; | |
| } | |
| export class AppStack extends cdk.Stack { | |
| constructor(scope: cdk.Construct, id: string, props: AppStackProps) { |
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
| #!/usr/bin/env node | |
| import 'source-map-support/register' | |
| import * as cdk from '@aws-cdk/core' | |
| import { MyLambdaStack } from '../lib/my-lambda-stack' | |
| import { ErrorReportingStack } from '../lib/error-reporting-stack' | |
| const app = new cdk.App() | |
| const errorReportingStack = new ErrorReportingStack(app, 'ErrorReportingStack', { | |
| appName: 'my-app', |
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
| #![warn(clippy::all, clippy::pedantic)] | |
| use bracket_lib::prelude::*; | |
| const SCREEN_WIDTH: i32 = 80; | |
| const SCREEN_HEIGHT: i32 = 50; | |
| const FRAME_DURATION: f32 = 75.0; | |
| const DRAGON_FRAMES: [u16; 6] = [64, 1, 2, 3, 2, 1]; | |
| struct Obstacle { | |
| x: i32, |
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
| #!/usr/bin/env bash | |
| # pod-metrics.sh - Compact rolling metrics for a Kubernetes pod | |
| # Usage: ./pod-metrics.sh <pod-name> [namespace] [container] [interval_seconds] | |
| set -euo pipefail | |
| POD="${1:-}" | |
| NAMESPACE="${2:-default}" | |
| CONTAINER="${3:-}" | |
| INTERVAL="${4:-30}" |
OlderNewer