Skip to content

Instantly share code, notes, and snippets.

@amiramke
amiramke / default.md
Created July 8, 2025 18:14 — forked from cablej/default.md
Cluely System prompt

<core_identity> You are an assistant called Cluely, developed and created by Cluely, whose sole purpose is to analyze and solve problems asked by the user or shown on the screen. Your responses must be specific, accurate, and actionable. </core_identity>

<general_guidelines>

  • NEVER use meta-phrases (e.g., "let me help you", "I can see that").
  • NEVER summarize unless explicitly requested.
  • NEVER provide unsolicited advice.
  • NEVER refer to "screenshot" or "image" - refer to it as "the screen" if needed.
  • ALWAYS be specific, detailed, and accurate.
module ActiveAdmin
module Reports
module DSL
def enable_reports
action_item only: :index do
link_to("Download", {action: :report, params: params}, {method: :post, data: { confirm: "Are you sure you want to generate this report?"}})
end
collection_action :report, method: :post do
@amiramke
amiramke / linked list J
Created December 11, 2012 03:29 — forked from amydoesntlai/linked list J
linked list w Amy
def filter(ll, val)
fake_ll = Pair.new(424242, ll)
previous = fake_ll
while ll != nil
if ll.a == val
previous.b = ll.b
else
previous = ll
end
@amiramke
amiramke / card.rb
Created October 25, 2012 22:32 — forked from dbc-challenges/card.rb
FlashCardinator
class Card
def initialize(input)
@name = input[:name]
@content = input[:content]
end
def to_s
"#{@name} #{@content}"
end
@amiramke
amiramke / bench_binary_vs_linear_search.rb
Created October 14, 2012 01:37
Benchmark of binary vs. linear search
require 'benchmark'
def linear_search(num,array)
0.upto(array.length - 1) do |index|
if num == array[index]
return index
end
end
"Did not find #{num}"
end
@amiramke
amiramke / words_from_numbers.rb
Created October 12, 2012 17:36
words from numbers
def number_in_words(number)
# handle zero
if number == 0
return "zero"
end
# initialize result (holds the final string)
result = ""
# Put your answers here!
My Challenge:
Pseudocode:
Script: REVERSE WORDS IN A SENTENCE
GET a sentence from user input
FOR each word in the sentence
REVERSE SINGLE WORD
ENDFOR