Skip to content

Instantly share code, notes, and snippets.

View Nayshins's full-sized avatar

Jake Nations Nayshins

View GitHub Profile
@Nayshins
Nayshins / agent loop
Created March 11, 2025 16:50 — 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
hash = { "C" => [[0,1],[0,3]],
"O" => [[0,2],[1,0]],
"M" => [[1,3], [2,0]],
"E" => [[0,0], [2,2]]
}
#puts hash["C"]
arr = []
hash.each_key { |key|
arr << hash[key]}
def gen_index(num_ele)
arr = []
num_ele.times do |index|
arr = add_index(arr, index)
end
arr
end
def add_index(arr, index)
arr + arr.reverse.map { |ele| ele.dup << index } << [index]
@Nayshins
Nayshins / 0.2.1-boggle_class_from_methods.rb
Last active January 2, 2016 14:49 — forked from dbc-challenges/0.2.1-boggle_class_from_methods.rb
phase 0 unit 2 week 1 boggle class challenge
class BoggleBoard
def initialize(board)
@board = board
end
def create_word(*coords)
coords.map { |coord| @board[coord.first][coord.last]}.join("")
end