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
| # server.py | |
| from fastmcp import FastMCP | |
| # Create an MCP server | |
| mcp = FastMCP("Basic math server") | |
| # Add an addition tool | |
| @mcp.tool() | |
| def add(a: int, b: int) -> int: |
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
| # server.py | |
| from fastmcp import FastMCP | |
| # Create an MCP server | |
| mcp = FastMCP("Basic math server") | |
| # Add an addition tool | |
| @mcp.tool() | |
| def add(a: int, b: int) -> int: |
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
| # server.py | |
| from fastmcp import FastMCP | |
| # Create an MCP server | |
| mcp = FastMCP("Basic math server") | |
| # Add an addition tool | |
| @mcp.tool() | |
| def add(a: int, b: int) -> int: |
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
| # Complete AI Agent Deployment Manifests | |
| # 1. Namespace for organization | |
| apiVersion: v1 | |
| kind: Namespace | |
| metadata: | |
| name: ai-agent | |
| --- | |
| # 2. ConfigMap for application configuration |
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 fastapi import FastAPI | |
| app = FastAPI() | |
| @app.get("/") | |
| def read_root(): | |
| return {"message": "Hello, FastAPI!"} | |
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 datetime as dt | |
| import json | |
| import logging | |
| import os | |
| from typing import Dict, Tuple | |
| import requests | |
| BASE_API = "https://reports.api.clockify.me/v1" | |
| PREP_PROJECT_ID = "<can-enter-it-here>" |
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 bs4 | |
| import requests | |
| import pandas as pd | |
| list_of_ib_urls = [ | |
| "https://www.interviewbit.com/courses/programming/topics/arrays/", | |
| "https://www.interviewbit.com/courses/programming/topics/math/", | |
| "https://www.interviewbit.com/courses/programming/topics/binary-search/", | |
| "https://www.interviewbit.com/courses/programming/topics/strings/", | |
| "https://www.interviewbit.com/courses/programming/topics/bit-manipulation/", |
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
| //A very simple example of an interface in golang | |
| package main | |
| import "fmt" | |
| type apple struct { | |
| calories int | |
| } | |
| type orange struct { |
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
| name: remote-config-deployer | |
| on: [push] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Set up Python |
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 | |
| Description: Template to create an EC2 instance and enable SSH | |
| Parameters: | |
| KeyName: | |
| Description: Name of SSH KeyPair | |
| Type: 'AWS::EC2::KeyPair::KeyName' | |
| ConstraintDescription: Provide the name of an existing SSH key pair |
NewerOlder