Skip to content

Instantly share code, notes, and snippets.

View fanaugen's full-sized avatar
🙂
always learning

Alex Jahraus fanaugen

🙂
always learning
  • Berlin
View GitHub Profile
@fanaugen
fanaugen / Rails Repo Walkthrough Prompt.md
Last active September 11, 2026 11:09
A prompt for generating an engineering overview for a given code repository (tailored to Ruby applications)

Generating a Guide for a New Team Member

I asked Claude chat to make a prompt (which could later be turned into a skill) for inspecting a code repo and creating a human-readable overview / onboarding intro that should help a new joiner understand the problem or business domain that the software system exists to solve, the architecture and implementation choices that were made, and the typical engineering workflow for introducing new changes.

  • here’s the full prompt
  • and here’s the report that Google antigravity CLI produced when I called it with this prompt in the context of the Codebar Planner repo (checked out locally), a community-maintained open-source project built with Ruby on Rails.
@fanaugen
fanaugen / Code Golf – Transaction Tally.md
Last active June 13, 2025 06:35 — forked from yshapiraGC/fraud_detection_shortest_code.rb
GoCardless Coding Challenge 1: Fraud Detection Shortest Code Challenge

Scenario

You're developing a system to analyze transactions for potential fraud.

You have a list of transactions, each with a variety of attributes like amount, currency, status, and a fraud score.

Your goal is to calculate total amounts for different currencies only for transactions flagged non clean.

You shall refactor ONLY the analyze_transactions method to be the shortest possible, without changing any other pieces of the code.

@fanaugen
fanaugen / ruby on ice 2019.md
Created September 24, 2019 09:13
Ruby on Ice 2019 Notes
@fanaugen
fanaugen / leipzig.md
Last active July 5, 2019 11:30
Leipzig Must-see

Must-see locations in Leipzig

It depends, of course, on whether you’re looking for nature, culture, history, art, music, or night life, but here are some things to check out:

  • Obviously, city center, Augustusplatz, with its new Mein Building of Leipzig University (that looks like a church, because it was built where the GDR had destroyed a centuries-old church)
  • Thomaskirche, if you want to listen to organ music, or see the final resting ground of the mortal remains of J.S. Bach
  • Moritzbastei – just behind the city skyscraper that is visible from anywhere. This is an underground bar / concert location. Literally underground, with nice round vaults
  • The area around Markt is also worth walking around
  • Clara-Zetkin-Park (esp. area around Sachsenbrücke)
@fanaugen
fanaugen / config.fish
Created July 26, 2017 23:51
fish abbreviation for each git alias
# for each git alias of the form XX, create fish abbreviation gXX
function git_alias --desc "Add a git abbreviation"
abbr -a g$argv[1] git $argv[2]
end
for _alias in (git config --global --get-regexp '^alias\.*' | sed s/alias.//)
git_alias (string split -m1 ' ' "$_alias")
end
@fanaugen
fanaugen / my_podcasts.md
Last active September 11, 2025 16:36
My PocketCasts subscriptions
@fanaugen
fanaugen / steamroller.js
Created January 12, 2016 23:05
recursive function to flatten a js Array
function steamroller(arr) {
for (var i = 0; i < arr.length; i++) {
if(Array.isArray(arr[i])) {
// recurse: replace this array with all its elements
// for instance, if arr is [1, [2, 3], 4]
// then we want to return [1, 2, 3, 4]
var left = arr.slice(0, i);
var right = arr.slice(i + 1);
return steamroller(
@fanaugen
fanaugen / export-tasks.sh
Last active June 8, 2017 14:20
rake tasks to wiki
#!/bin/bash
# Run `rake -D` and format the task descriptions as a
# GitHub-Markdown table (for our Wiki)
# Write the output to tasks.md
touch tasks.md
echo '<dl>' > tasks.md
bundle exec rake -D |