Skip to content

Instantly share code, notes, and snippets.

View mylons's full-sized avatar

Mike Lyons mylons

  • Incline Village, NV
View GitHub Profile
@mylons
mylons / default.md
Created June 22, 2025 04:18 — 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.
type Corporation {
name: String!
mountains: [Mountain!]!
}
type Mountain {
name: String!
lifts: [Lift!]!
trails: [Trail!]!
employees: [Employee!]!
# Definition for singly-linked list.
class ListNode:
def __init__(self, x):
self.val = x
self.next = None
class Solution:
def reverseList(self, head: ListNode) -> ListNode:
if head is None or head.next is None:
return head
class Solution:
def numUniqueEmails(self, emails: List[str]) -> int:
uniques = set()
for email in emails:
uniques.add(parse_email(email))
return len(uniques)
def parse_email(email: str) -> str:
first_half, second_half = email.split('@')
class Solution:
def searchRange(self, nums: List[int], target: int) -> List[int]:
if len(nums) == 0:
return [-1, -1]
if len(nums) == 1:
if target == nums[0]:
return [0, 0]
def binary_search(left, right):
mid = math.floor((left + right) / 2)
class Solution:
def strStr(self, haystack: str, needle: str) -> int:
if needle == "":
return 0
if len(haystack) == 1 or len(haystack) == len(needle):
return 0 if haystack == needle else -1
if len(needle) > len(haystack):
return -1
class Solution:
def searchInsert(self, nums: List[int], target: int) -> int:
if target < nums[0]: return 0
elif target > nums[len(nums) - 1]: return len(nums)
def recurse(left, right):
if left >= right:
if nums[left] < target: return left + 1
elif nums[right] < target: return right + 1
return right
class Solution:
def lengthOfLongestSubstring(self, s):
"""
:type s: str
:rtype: int
"""
if len(s) < 2: return len(s)
subs = []
for x in range(0, len(s)):
class Solution:
def removeDuplicates(self, nums: List[int]) -> int:
if len(nums) < 2: return len(nums)
length = 1
cur = 0
future = 1
while future < len(nums):
if nums[cur] == nums[future]:
nums[future] = 0
from typing import List
def int_to_array(x: int) -> List[int]:
result = []
while x > 0:
tmp = x % 10
result.append(tmp)
x = int((x - tmp) / 10)