Skip to content

Instantly share code, notes, and snippets.

View jordan-cutler's full-sized avatar

Jordan Cutler jordan-cutler

View GitHub Profile
@jordan-cutler
jordan-cutler / cursor-agent-system-prompt.txt
Created March 23, 2025 13:13 — forked from sshh12/cursor-agent-system-prompt.txt
Cursor Agent System Prompt (March 2025)
You are a powerful agentic AI coding assistant, powered by Claude 3.5 Sonnet. You operate exclusively in Cursor, the world's best IDE.
You are pair programming with a USER to solve their coding task.
The task may require creating a new codebase, modifying or debugging an existing codebase, or simply answering a question.
Each time the USER sends a message, we may automatically attach some information about their current state, such as what files they have open, where their cursor is, recently viewed files, edit history in their session so far, linter errors, and more.
This information may or may not be relevant to the coding task, it is up for you to decide.
Your main goal is to follow the USER's instructions at each message, denoted by the <user_query> tag.
<communication>
1. Be conversational but professional.
@jordan-cutler
jordan-cutler / instructions.md
Created March 1, 2024 13:50
ChatGPT Custom Instructions

Usage

Go to https://chat.openai.com/#settings/Personalization, open custom GPT instructions, and paste these in for the answers to the GPT instructions, swapping what makes sense for you

What would you like ChatGPT to know about you to provide better responses?

My name is Jordan Cutler. I'm a Senior Software Engineer specializing in frontend development.

I'm also a content creator writing about software engineering career growth. I write daily on LinkedIn and Twitter. I write weekly on Substack on my newsletter. My writing is concise, friendly, warm, authentic, transparent.

I cement what I write through personal stories and anecdotes.

@jordan-cutler
jordan-cutler / _summary.md
Last active August 19, 2024 18:55
VSCode Settings - Frontend Dev at Gusto by Jordan Cutler

Summary

Highlights from this set of configurations

  • Auto save
  • Auto format on save and fix all quick fix issues
  • Auto import on save
  • Format on save and paste
  • Prepopulate command palette and file search with the last searched thing
  • Limit the number of active tabs and allow them to wrap on smaller screens
  • Auto import on paste (via an extension that works part of the time)
@jordan-cutler
jordan-cutler / plugins
Created December 15, 2018 04:32
Plugins for zsh with comments
plugins=(
# adds a bunch of git aliases. See aliases here. https://github.com/robbyrussell/oh-my-zsh/wiki/Plugin:git . Repo here https://github.com/robbyrussell/oh-my-zsh/tree/master/plugins/git
git
# docker autocompletions https://github.com/robbyrussell/oh-my-zsh/tree/master/plugins/docker
docker
# shell command autocompletions https://github.com/zsh-users/zsh-autosuggestions
zsh-autosuggestions
PROMPT='$(_current_dir)$(git_prompt_info) '
# PROMPT='$(_current_dir)$(git_prompt_info) $FG[105]%(!.#.»)%{$reset_color%} '
# uncomment and comment other if you want a little » prompt
function _current_dir() {
local _max_pwd_length="65"
if [[ $(echo -n $PWD | wc -c) -gt ${_max_pwd_length} ]]; then
echo "%{$fg_bold[blue]%}%-2~ ... %3~%{$reset_color%}"
else
echo "%{$fg_bold[blue]%}%~%{$reset_color%}"
public static boolean isAnagramOfPalindrome(String test) {
HashSet<Character> vals = new HashSet<>();
int length = test.length();
for (int i = 0; i < length; i++) {
if (Character.isWhitespace(test.charAt(i))) {
// do nothing
}
else if (vals.contains(test.charAt(i))) {
vals.remove(test.charAt(i));
}