Skip to content

Instantly share code, notes, and snippets.

View andreiverdes's full-sized avatar
🏠
Working from home

Andrei Verdes andreiverdes

🏠
Working from home
View GitHub Profile
@andreiverdes
andreiverdes / ai-usage-audit-prompt.md
Created July 8, 2026 15:53
AI usage audit + meta-review prompt

AI usage audit + meta-review prompt

Copy everything below into a Claude Code session started from your home directory (or wherever your config lives). Works best on a strong model with web access.


Audit how I actually use you, then meta-review my prompt & context engineering against the current state of the art. Use your own knowledge of how Claude Code, skills, agents, hooks, memory, and model routing are meant to work as the standard I'm measured against. Everything you claim must trace to something you read this session — no advice that would apply to any random user. Do not write or edit any files; end with a prioritized build list and let me pick what you implement.

Data sources — discover, then read

@andreiverdes
andreiverdes / NonRecomposingSizeModifiers.kt
Created August 28, 2025 20:58 — forked from elyesmansour/NonRecomposingSizeModifiers.kt
Jetpack Compose size modifiers that skip recomposition
package com.elyesmsr.sizemodifier
import androidx.compose.ui.Modifier
import androidx.compose.ui.layout.layout
import androidx.compose.ui.unit.Constraints
import androidx.compose.ui.unit.Density
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.DpSize
import androidx.compose.ui.unit.constrain
@andreiverdes
andreiverdes / android_instructions_23.md
Created December 28, 2018 17:36 — forked from agrcrobles/android_instructions_29.md
Setup Android development environment on a Mac

Here is a high level overview for what you need to do to get most of an Android environment setup and maintained.

Prerequisites (for Homebrew at a minimum, lots of other tools need these too):

  • XCode is installed (via the App Store)
  • XCode command line tools are installed (xcode-select --install will prompt up a dialog)
  • Java

Install Homebrew:

@andreiverdes
andreiverdes / AwesomeCursorAdapter.java
Last active August 29, 2015 14:14
Faster alternative for OrmLiteCursorAdapter with OrmLite 4.48
package com.example.ormlite.cursor;
/**
* Created by andrei on 27/01/15.
*/
import android.content.Context;
import android.database.Cursor;
import android.view.View;
import android.view.ViewGroup;
actions=true
ads=true
analytics=true
appindexing=true
appstate=true
auth=true
cast=true
common=true
drive=false
dynamic=true
def toCamelCase(String string) {
String result = ""
string.findAll("[^\\W]+") { String word ->
result += word.capitalize()
}
return result
}
afterEvaluate { project ->
Configuration runtimeConfiguration = project.configurations.getByName('compile')
import java.io.IOException;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URI;
import java.net.URISyntaxException;
import java.util.List;
import java.util.Map;
import java.util.zip.GZIPOutputStream;
import org.springframework.http.ContentCodingType;
This file has been truncated, but you can view the full file.
: DEBUG/BrowseLayerCarouselActivity(8073): isScreenOn = true
02-21 16:02:43.483: DEBUG/BrowseLayerCarouselActivity(8073): intent onResume Broadcast
02-21 16:02:43.483: VERBOSE/MfLog(8073): BrowseLayerCarouselFragment{41ddc438 #0 id=0x36f8056f}, onResume
02-21 16:02:43.493: DEBUG/TaskStore(8073): com.android.htccontacts.TabProvider: version = 3
02-21 16:02:43.498: DEBUG/PowerManagerService(442): releaseWakeLock(4293b440): PARTIAL_WAKE_LOCK , tag=GTALK_CONN, flags=0x1
02-21 16:02:43.503: DEBUG/PowerManagerService(442): acquireWakeLock(42ce3800): PARTIAL_WAKE_LOCK , tag=GTALK_CONN, flags=0x1, pid=1205, uid=10025, mUserState=0x3
02-21 16:02:43.508: DEBUG/PowerManagerService(442): releaseWakeLock(42ce3800): PARTIAL_WAKE_LOCK , tag=GTALK_CONN, flags=0x1
02-21 16:02:43.513: ERROR/PeopleApp(8073): DialerService connected !
02-21 16:02:43.513: DEBUG/PowerManagerService(442): acquireWakeLock(42b420a8): PARTIAL_WAKE_LOCK , tag=GTALK_CONN, flags=0x1, pid=1205, uid=10025, mUserState=0x3
02-21 16:02:43.513: INFO/ActivityMa
@andreiverdes
andreiverdes / DashboardLayout.java
Created April 23, 2011 19:19 — forked from romannurik/DashboardLayout.java
A custom Android layout class that arranges children in a grid-like manner, optimizing for even horizontal and vertical whitespace.
/*
* Copyright 2011 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software