Skip to content

Instantly share code, notes, and snippets.

View jordan-cutler's full-sized avatar

Jordan Cutler jordan-cutler

View GitHub Profile
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));
}
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%}"
@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
@jordan-cutler
jordan-cutler / _summary.md
Last active November 21, 2023 13:14
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 / 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.