Skip to content

Instantly share code, notes, and snippets.

View jfarmer's full-sized avatar
🐢

Jesse Farmer jfarmer

🐢
View GitHub Profile
@jfarmer
jfarmer / default.md
Created June 22, 2025 02:13 — 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.
@jfarmer
jfarmer / 1 - Original Post.csv
Created March 24, 2025 02:55 — forked from spdustin/1 - Original Post.csv
GSA's Non-core Properties Listing
Name City State Square Footage
11 W QUINCY COURT CHICAGO IL 106606
1202 BUILDING SEATTLE WA 181195
12021 BUILDING SEATTLE WA 0
122 W 3RD ST BUILDING GREENSBURG PA 8962
18 W. JACKSON CHICAGO IL 9506
1801 N. LYNN ST. ARLINGTON VA 364917
22ND & STOUT ST SURFACE PARKING LOT DENVER CO 0
230 S. STATE ST. CHICAGO IL 25250
2306 E. BANNISTER ROAD KANSAS CITY MO 405607
@jfarmer
jfarmer / license.java
Created May 4, 2024 15:13 — forked from Chino-chan/license.java
Bloated code?
//Various Messages
final String boxMessage = "License Game";
final String welcomeMessage = "Welcome to License Game";
//Questions
final String question1 = "What does this mean... A: text B: text C: ";
final String question2 = "What does this mean... A: text B: text C: ";
final String question3 = "What does this mean... A: text B: text C: ";
final String question4 = "What does this mean... A: text B: text C: ";
final String question5 = "What does this mean... A: text B: text C: ";
@jfarmer
jfarmer / key.md
Created November 22, 2020 05:20
Twitter (un)official Consumer Key

Twitter Official Consumer Key

Twitter for Android

type:            PIN
Consumer key:    3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys

Twitter for iPhone

type:            PIN

Consumer key: IQKbtAYlXLripLGPWd0HUA

@jfarmer
jfarmer / index.html
Last active February 25, 2020 00:46 — forked from keithjng/css
todos
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="./main.css">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>TODO List</title>
</head>
<body>
<section>
# Method name: item_counts
# Input: An arbitrary array
#
# Returns: A hash where every item is a key whose value is the number of times
# that item appears in the array
#
# Prints: Nothing
# Version 0.1
# ====================================================
@jfarmer
jfarmer / rot_n_jesse.rb
Last active August 29, 2015 14:05 — forked from Katzy/ROTN
def rot_n_char(char, rot_by)
fail ArgumentError, "First argument must be a 1-letter String (got `#{char}')" unless char.length == 1
case char
when ('a'..'z')
((char.ord - 'a'.ord + rot_by) % 26 + 'a'.ord).chr
when ('A'..'Z')
((char.ord - 'A'.ord + rot_by) % 26 + 'A'.ord).chr
else
char
def textalyzer (string)
file_name = ARGV[0]
string = open(file_name).read
histogram(freq(count(str_char(sanitize(string)))))
return
end
def count (string)

Questions

How do I get it to return per line, isn't that the point of this exercise? For instance, how would I get it to return each value, such as line 35's list "total = 0" on one line, next "total = 0 + 11", next line "total = 11+22".

I could not find a way to do it like, 'running_total = return item[0], return item[0] + item[1]...item[i]'.

First, it's good that you understand what you need to do and are referring to the last item of the list as item[i]. Keep in mind that if the list is in the variable list then to get the item at, say, index 10, we want list[10], not item[10]. Imagine if you could write code like this:

def sum(list)
class GuessingGame
def initialize(answer)
@answer = answer
end
def guess(guess)
@last_guess = guess
if guess == @answer
return :correct
elsif guess < @answer