Skip to content

Instantly share code, notes, and snippets.

@csc449
csc449 / agent loop
Created March 11, 2025 07:17 — 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
#%% imports
from dataclasses import dataclass
import math
import numpy as np
import os
import requests
import pandas as pd
import unicodedata
import re
import torch
@csc449
csc449 / dev.to.yaml
Created October 21, 2020 03:07 — forked from cor-bee/dev.to.yaml
Overdocumented Instant View Template for dev.to (https://instantview.telegram.org/contest/dev.to/template28/)
## General info:
# Function starts with @
# Variable starts with $
# Return of the most recently run function made by $@
# Key comments marked with ##
## Version of IV must be set first
~version: "2.1"
# Telegram doesn't support JW Player which is used in videoheaders
@csc449
csc449 / pgsql_backup.sh
Created September 18, 2020 05:24 — forked from sirbrillig/pgsql_backup.sh
Postgresql daily backup script.
#!/bin/bash
#
# Backup a Postgresql database into a daily file.
#
BACKUP_DIR=/pg_backup
DAYS_TO_KEEP=14
FILE_SUFFIX=_pg_backup.sql
DATABASE=
USER=postgres
# Ways to execute a shell script in Ruby
# Example Script - Joseph Pecoraro
cmd = "echo 'hi'" # Sample string that can be used
# 1. Kernel#` - commonly called backticks - `cmd`
# This is like many other languages, including bash, PHP, and Perl
# Returns the result of the shell command
# Docs: http://ruby-doc.org/core/classes/Kernel.html#M001111
@csc449
csc449 / discourse.log
Created March 22, 2020 14:58
discourse.log
$ bundle exec rails server
I, [2020-03-22T07:55:40.868562 #6495] INFO -- : Refreshing Gem list
Starting CSS change watcher
(1.3ms) SELECT "translation_overrides"."translation_key", "translation_overrides"."value", "translation_overrides"."compiled_js" FROM "translation_overrides" WHERE "translation_overrides"."locale" = 'en'
DEPRECATION WARNING: Initialization autoloaded the constants Migration::SafeMigrate, SiteSettings, SiteSettings::DeprecatedSettings, SiteSettingExtension, SiteSettings::YamlLoader, SiteSettings::DefaultsProvider, SiteSettings::Validations, SiteSettings::TypeSupervisor, Enum, RegexSettingValidation, StringSettingValidator, EmailSettingValidator, UsernameSettingValidator, GroupSettingValidator, AllowUserLocaleEnabledValidator, CategoriesTopicsValidator, IntegerSettingValidator, RegexPresenceValidator, CategoryPageStyle, EnableInviteOnlyValidator, EnableLocalLoginsViaEmailValidator, EnableSsoValidator, SsoOverridesEmailValidator, MinUsernameLengthValidator, MaxUsernameLengthValidator,
$ bundle exec rails server
I, [2020-03-22T07:55:40.868562 #6495] INFO -- : Refreshing Gem list
Starting CSS change watcher
(1.3ms) SELECT "translation_overrides"."translation_key", "translation_overrides"."value", "translation_overrides"."compiled_js" FROM "translation_overrides" WHERE "translation_overrides"."locale" = 'en'
DEPRECATION WARNING: Initialization autoloaded the constants Migration::SafeMigrate, SiteSettings, SiteSettings::DeprecatedSettings, SiteSettingExtension, SiteSettings::YamlLoader, SiteSettings::DefaultsProvider, SiteSettings::Validations, SiteSettings::TypeSupervisor, Enum, RegexSettingValidation, StringSettingValidator, EmailSettingValidator, UsernameSettingValidator, GroupSettingValidator, AllowUserLocaleEnabledValidator, CategoriesTopicsValidator, IntegerSettingValidator, RegexPresenceValidator, CategoryPageStyle, EnableInviteOnlyValidator, EnableLocalLoginsViaEmailValidator, EnableSsoValidator, SsoOverridesEmailValidator, MinUsernameLengthValidator, MaxUsernameLengthValidator,
@csc449
csc449 / cc-lang.cc
Created February 5, 2020 01:56
c++ syntax
#void main