Skip to content

Instantly share code, notes, and snippets.

@vignesh865
vignesh865 / web_scrap_agent.py
Created April 14, 2025 01:13
Web Scrapper Client Using Playwright MCP.
import asyncio
import json
import logging
import os
import re
from contextlib import AsyncExitStack
import yaml
from dotenv import load_dotenv
from mcp import ClientSession, StdioServerParameters, Tool
from mcp.client.stdio import stdio_client
@vignesh865
vignesh865 / llm-colab.ipynb
Last active January 21, 2024 17:59
llm-colab.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@vignesh865
vignesh865 / func-args-flipper.js
Last active December 3, 2020 04:35
The function the that flips the given argument.
function flipArgs(func) {
return function () {
reversedArgs = Object.values(arguments).reverse();
func(...reversedArgs);
};
}
const flipped = flipArgs(function () {
console.log(arguments);
});