Skip to content

Instantly share code, notes, and snippets.

@vincentbel
vincentbel / agent loop
Created March 17, 2025 03:45 — 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
@vincentbel
vincentbel / redux-typescript.ts
Last active January 21, 2018 01:40
redux + typescript
// User module
const enum UserActionTypes {
UserRequest = 'user/user-request',
UserSuccess = 'user/user-success',
UserFailure = 'user/user-failure',
RoleRequest = 'user/role-request',
RoleSuccess = 'user/role-success',
RoleFaliure = 'user/role-failure',
}
@vincentbel
vincentbel / app.js
Last active February 12, 2017 16:28
Chainable route example of [service-mocker](https://github.com/service-mocker/service-mocker)
import { createServer } from 'service-mocker'
import createRoutes from './routes/'
const server = createServer()
createRoutes(server.router)
// ...
@vincentbel
vincentbel / setup-shadowsocks-on-debian.sh
Last active May 22, 2024 20:51
Setup shadowsocks on debian
#!/bin/bash
########## Install Shadowsocks ##########
# <https://github.com/shadowsocks/shadowsocks/blob/master/README.md>
apt-get update
apt-get install python-pip -y
pip install shadowsocks
@vincentbel
vincentbel / vim-today.md
Last active February 26, 2018 09:18
vim today.

2017-11-02

  • zm: fold one more
  • zr: reduce one fold
  • zM: fold all
  • zR: unfold all

2016-11-28

@vincentbel
vincentbel / export-material-design-24px-svg-icons.js
Created August 18, 2016 12:39
Export material design 24px svg icons
const glob = require('glob')
const path = require('path')
const execSync = require('child_process').execSync
const savedDir = path.join(__dirname, '__exported_svg')
execSync(`mkdir -p ${savedDir}`)
const count = glob.sync(`${__dirname}/*/`)
.map(typePath => {