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
""" | |
Download https://gist.github.com/user-attachments/assets/e39a1aeb-4d69-4913-8dcf-ce936de2669d to pebble.jpg for the demo to work. | |
""" | |
from PIL import Image | |
from pptx import Presentation | |
from pptx.dml.color import RGBColor | |
from pptx.util import Inches, Pt |
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 os | |
import ray | |
from dotenv import load_dotenv | |
from langchain_community.tools import DuckDuckGoSearchRun | |
from ray.dag.input_node import InputNode | |
from motleycrew.agents.crewai import CrewAIMotleyAgent | |
from motleycrew.agents.langchain import ReActToolCallingMotleyAgent | |
from motleycrew.common import configure_logging |
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 os | |
import ray | |
from dotenv import load_dotenv | |
from langchain_community.tools import DuckDuckGoSearchRun | |
from motleycrew.agents.crewai import CrewAIMotleyAgent | |
from motleycrew.agents.langchain import ReActToolCallingMotleyAgent | |
from motleycrew.common import configure_logging | |
from motleycrew.tools.image.dall_e import DallEImageGeneratorTool |
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
#include <iostream> | |
#include <fstream> | |
#include <string> | |
#include <cctype> | |
struct elem | |
{ | |
elem (char c): c (c), count (0), link (nullptr) {}; | |
char c; |
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
#include <iostream> | |
#include <fstream> | |
#include <string> | |
#include <cmath> | |
template <typename T> | |
class Element | |
{ | |
public: |
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
#include <iostream> | |
#include <fstream> | |
#include <string> | |
#include <cmath> | |
class Monomial | |
{ | |
public: | |
Monomial (int coef, unsigned int power): coef (coef), power (power), link (nullptr) {}; | |
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 cv2 | |
import numpy as np | |
print('Enter the .jpg or .png filename of maze image') | |
filename = str(raw_input()) | |
maze = cv2.imread(filename) | |
grayscale = cv2.cvtColor(maze, cv2.COLOR_BGR2GRAY) |