Skip to content

Instantly share code, notes, and snippets.

@fatmind
fatmind / agent loop
Created March 14, 2025 07:57 — 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
@fatmind
fatmind / mvn并启动tomcat
Last active December 20, 2015 08:58
mvn并启动tomcat
:: Windows + tomcat 方便部署
set project_home=D:\workspace\lego\nut_bohan.sj_20130724
set app_name=nut-1.0.0-SNAPSHOT
set tomcat_home=D:\dev\tomcat-6.0.20
REM 0.编译. 待修复:不显示后续rem提示
@CD "%project_home%"
@CALL mvn clean install -DskipTests >nul 2>&1
@fatmind
fatmind / MockConstructionTest.java
Last active January 12, 2022 04:28
powermock example
package demo.powermock;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.powermock.api.mockito.PowerMockito;
import org.powermock.core.classloader.annotations.PrepareForTest;
import org.powermock.modules.junit4.PowerMockRunner;
import static org.junit.Assert.*;
@fatmind
fatmind / gist:4030105
Created November 7, 2012 07:59
坏代码的味道
public boolean process(Map<String, Object> context) throws Exception {
BizOrderDO tcOrderDO = (BizOrderDO) context
.get(FlowConstants.TC_BIZ_ORDER);
FullOrderTO fullOrderTO = (FullOrderTO) context
.get(FlowConstants.FULL_ORDER_TO);
boolean redo=true;
boolean isWarehouseStore = false;
boolean isCom = false;
// 是否找到库存记录