Skip to content

Instantly share code, notes, and snippets.

View jfernandez's full-sized avatar
🦀
Rust and eBPF

Jose Fernandez jfernandez

🦀
Rust and eBPF
View GitHub Profile
@a-c-m
a-c-m / reflection.md
Last active July 8, 2025 22:50
reflection.md - a way to have claude-code self improve its context.

You are an expert in prompt engineering, specializing in optimizing AI code assistant instructions. Your task is to analyze and improve the instructions for Claude Code. Follow these steps carefully:

  1. Analysis Phase: Review the chat history in your context window.

Then, examine the current Claude instructions, commands and config <claude_instructions> /CLAUDE.md /.claude/commands/*

def retry_times(exception = StandardError, times = 3, &block)
yield
rescue Exception => e
if times <= 1 || !e.is_a?(exception)
raise
else
sleep(0.5)
retry_times(exception, times - 1, &block)
end
end
//
// BarModel.h
// MusicalNotation
//
// Created by August Lilleaas on 8/4/10.
// Copyright (c) 2010 Shortcut AS. All rights reserved.
//
#import <Foundation/Foundation.h>
def bundle
sudo "#{$0} _#{VERSION}_ install_bundler 1.0.0.rc.3"
run "cd #{config.release_path} && bundle _1.0.0.rc.3_ install --deployment --path #{config.shared_path}/bundled_gems"
end
gemcutter => redis downloads spec
=================================
keys
----
downloads => global counter for all gem downloads
downloads:today => sorted set for downloads from today
downloads:rubygem:rails => counter for all rails downloads
downloads:version:rails-2.3.5 => counter for all rails 2.3.5 downloads