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 'package:flutter/material.dart'; | |
import 'package:flutter_test/flutter_test.dart'; | |
import 'package:hooks_riverpod/hooks_riverpod.dart'; | |
import 'package:todo_riverpod/entity/todo.dart'; | |
import 'package:todo_riverpod/provider/todo_providers.dart'; | |
import 'package:todo_riverpod/repository/todo_repository.dart'; | |
class _TodoRepositoryImplDummy implements TodoRepository { | |
List<Todo> inMemoryTodoList = []; |
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 'package:flutter/material.dart'; | |
import 'package:hooks_riverpod/hooks_riverpod.dart'; | |
import 'package:todo_riverpod/view/simple_todo.dart'; | |
void main() { | |
runApp( | |
ProviderScope( | |
child: MaterialApp( | |
home: SimpleTodo(), | |
), |
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 { getRequestContext } from "@cloudflare/next-on-pages"; | |
export const runtime = "edge"; | |
interface ExtendedCloudflareEnv { | |
DB: D1Database; | |
AI?: { | |
run: (model: string, options: any) => Promise<any>; | |
}; | |
} |
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
cat << EOF > run_agent.py | |
import argparse | |
import asyncio | |
from browser_use import Agent | |
from langchain_openai import ChatOpenAI | |
def parse_args(): | |
parser = argparse.ArgumentParser(description="Run AI agent with a custom task.") | |
parser.add_argument("--task", type=str, required=True, help="Task for the AI agent.") | |
return parser.parse_args() |
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
cat << EOF > run_agent.py | |
import argparse | |
import asyncio | |
from browser_use import Agent | |
from langchain_openai import ChatOpenAI | |
def parse_args(): | |
parser = argparse.ArgumentParser(description="Run AI agent with a custom task.") | |
parser.add_argument("--task", type=str, required=True, help="Task for the AI agent.") | |
return parser.parse_args() |
OlderNewer