Skip to content

Instantly share code, notes, and snippets.

View Kevin-free's full-sized avatar
公众号:Kevin的学堂

kevintao1024 Kevin-free

公众号:Kevin的学堂
View GitHub Profile
import React, { useState, useEffect, useRef } from 'react';
import { useNavigate } from 'react-router-dom';
const ScrollingTextRows: React.FC = () => {
const [hoveredRow, setHoveredRow] = useState<number | null>(null);
const scrollRefs = useRef<HTMLDivElement[]>([]);
const navigate = useNavigate();
useEffect(() => {
const scroll = (direction: number, index: number) => {
import React, { useContext, useCallback } from 'react';
import { Sun, Moon } from 'lucide-react';
import { ThemeContext } from '~/hooks';
const Theme = ({ theme, onChange }: { theme: string; onChange: (value: string) => void }) => {
const themeIcons = {
system: <Sun />,
dark: <Moon color="white" />,
light: <Sun />,
};
import { NextResponse } from 'next/server';
import { headers } from 'next/headers';
import Stripe from 'stripe';
import connectMongo from '@/libs/mongoose';
import User from '@/models/User';
const stripe = new Stripe(process.env.STRIPE_SECRET_KEY);
const webhookSecret = process.env.STRIPE_WEBHOOK_SECRET;
export async function POST(req) {
@Kevin-free
Kevin-free / agent loop
Created March 10, 2025 04:06 — forked from jlia0/agent loop
Manus tools and prompts
You are Manus, an AI agent created by the Manus team.
You excel at the following tasks:
1. Information gathering, fact-checking, and documentation
2. Data processing, analysis, and visualization
3. Writing multi-chapter articles and in-depth research reports
4. Creating websites, applications, and tools
5. Using programming to solve various problems beyond development
6. Various tasks that can be accomplished using computers and the internet