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
| from aws_cdk import ( | |
| Stack, | |
| aws_rds as rds, | |
| aws_ec2 as ec2, | |
| aws_lambda as _lambda, | |
| aws_iam as iam, | |
| CfnOutput, | |
| Duration | |
| ) | |
| from constructs import Construct |
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 json | |
| import os | |
| import boto3 | |
| from langgraph.func import entrypoint | |
| from langgraph.store.postgres import PostgresStore | |
| from langmem import create_memory_store_manager | |
| from pydantic import BaseModel, Field, conint | |
| from openai import OpenAI |
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 { customsearch } from '@googleapis/customsearch'; | |
| const API_KEY = process.env.CSE_API_KEY ?? ''; | |
| const ENGINE_ID = process.env.CSE_ENGINE_ID ?? ''; | |
| export async function webSearch({ query }: { query: string }) { | |
| console.log('Web Search:', query); | |
| const api = customsearch({ | |
| auth: API_KEY, | |
| version: 'v1' |
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 WebSocket from 'ws'; | |
| import { spawn } from 'child_process'; | |
| const url = 'wss://api.openai.com/v1/realtime?model=gpt-4o-realtime-preview-2024-10-01'; | |
| const ws = new WebSocket(url, { | |
| headers: { | |
| 'Authorization': 'Bearer ' + process.env.OPENAI_API_KEY, | |
| 'OpenAI-Beta': 'realtime=v1' | |
| } | |
| }); |
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 { Construct } from 'constructs'; | |
| import { NodejsFunction } from 'aws-cdk-lib/aws-lambda-nodejs'; | |
| import * as iam from 'aws-cdk-lib/aws-iam'; | |
| import { Effect } from 'aws-cdk-lib/aws-iam'; | |
| import * as lambda from 'aws-cdk-lib/aws-lambda'; | |
| import * as apigw from 'aws-cdk-lib/aws-apigatewayv2'; | |
| import { CorsHttpMethod } from 'aws-cdk-lib/aws-apigatewayv2'; | |
| import { RetentionDays } from 'aws-cdk-lib/aws-logs'; | |
| import * as integrations from 'aws-cdk-lib/aws-apigatewayv2-integrations'; |
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 { flushPromises, mount, type VueWrapper } from '@vue/test-utils'; | |
| import { expect } from 'vitest'; | |
| import foo from '~/pages/foo.vue'; | |
| import { getJsonRequests, server } from '~/tests/mocks/server'; | |
| import { HttpResponse, http } from 'msw'; | |
| describe('foo', () => { | |
| let wrapper: VueWrapper; | |
| afterEach(() => { |
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
| AWSTemplateFormatVersion: "2010-09-09" | |
| Parameters: | |
| RepositoryName: | |
| Type: String | |
| PipelineName: | |
| Default: cloudfront-cd-pipeline | |
| Type: String | |
| CloudFormationStackName: | |
| Default: staging-cloudfront-distribution |
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 { Construct } from 'constructs'; | |
| import * as nodejsLambda from 'aws-cdk-lib/aws-lambda-nodejs'; | |
| import { FunctionUrlAuthType, LayerVersion, Runtime } from 'aws-cdk-lib/aws-lambda'; | |
| import * as iam from 'aws-cdk-lib/aws-iam'; | |
| import * as appConfig from 'aws-cdk-lib/aws-appconfig'; | |
| import { Effect } from 'aws-cdk-lib/aws-iam'; | |
| import { RetentionDays } from 'aws-cdk-lib/aws-logs'; | |
| export class CdkStack extends cdk.Stack { |
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: v1 | |
| kind: ConfigMap | |
| metadata: | |
| name: server | |
| namespace: foo | |
| data: | |
| server.go: | | |
| package main | |
| import ( | |
| "fmt" |
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: v1 | |
| kind: ConfigMap | |
| metadata: | |
| name: server | |
| namespace: bar | |
| data: | |
| server.go: | | |
| package main | |
| import ( | |
| "fmt" |
NewerOlder