Skip to content

Instantly share code, notes, and snippets.

View yashasvigirdhar's full-sized avatar
💭
Building

Yashasvi yashasvigirdhar

💭
Building
View GitHub Profile
@yashasvigirdhar
yashasvigirdhar / newsletter.toml
Created August 5, 2025 16:35
A custom command for gemini cli to convert my new blog post into raw markdown for the newsletter.
name = "newsletter"
prompt = """
Take the latest blog post and convert it into a raw Markdown format suitable for an email newsletter, saving the output to a temporary file.
Here is the process to follow:
1. Read the file `src/pages/latest.astro` to identify the URL of the latest post.
2. Construct the full path to the post's `.astro` file from that URL. For example, if the URL is `/posts/my-post`, the file path is `src/pages/posts/my-post.astro`.
3. Read the content of the latest post's file.
4. Apply the following conversion rules to transform the Astro file's content into clean Markdown:
- **Remove Frontmatter:** The `---` block at the top of the Astro file must be deleted.
@yashasvigirdhar
yashasvigirdhar / AndroidJavaCodeReview.md
Created July 25, 2016 18:37 — forked from srivastavarobin/AndroidJavaCodeReview.md
Code Review Checklist for Android (Java Only)

My Android Java Code Review Checklist

  1. Is the functionality correct?
  2. Are the classes named suitably?
  3. Are the functions named suitably?
  4. How's the datastructure being used? Is it the correct DS or it needs improvement?
  5. Can the classes be further borken into small classes?
  6. Do we need an interface?
  7. If it contain functions that can be reused later then are there Utils created for them?
  8. Can it use already available Util functions?
  9. Does the large set of input for a function deserve a new bean to be created?