Skip to content

Instantly share code, notes, and snippets.

Update Development Diary

Create or update the diary.md file in the project root with development activity from Claude Code history and git logs.

Instructions

1. Extract Claude Code History with Active Time

Run this to get project history grouped by day with active time (excluding gaps >30 min):

@dkandalov
dkandalov / plugin.kts
Last active December 25, 2024 04:49
Mini-plugin to measure the duration of tests in IntelliJ IDEs (because test runners don't show the actual time)
import com.intellij.execution.ExecutionListener
import com.intellij.execution.ExecutionManager.Companion.EXECUTION_TOPIC
import com.intellij.execution.process.ProcessHandler
import com.intellij.execution.runners.ExecutionEnvironment
import java.util.concurrent.ConcurrentHashMap
val startTimeByRunProfile = ConcurrentHashMap<String, Long>()
project!!.messageBus.connect(pluginDisposable)
.subscribe(EXECUTION_TOPIC, object : ExecutionListener {
@cosic
cosic / mirakle.sh
Last active January 6, 2025 19:09
Mirakle Activation Script
#!/bin/bash
###############################################
# How to use from terminal:
# $> mirakle.sh on – to enable
# $> mirakle.sh off – to disable
###############################################
MIRAKLE_INIT_SCRIPT_DIR="${HOME}/.gradle/init.d/"
MIRAKLE_INIT_SCRIPT_FILE="${MIRAKLE_INIT_SCRIPT_DIR}/mirakle_init.gradle"
@mrousavy
mrousavy / MEMOIZE.md
Last active November 5, 2025 11:06
Memoize!!! 💾 - a react (native) performance guide
In computing, memoization or memoisation
is an optimization technique used primarily
to speed up computer programs by storing
the results of expensive function calls and  
returning the cached result when the same
inputs occur again.                                         
                                                     — wikipedia
@solkaz
solkaz / detox-ts.md
Last active August 14, 2024 18:07
Writing Detox Tests with TypeScript

Usage

This guide assumes you've got a project using Detox with Jest, and you want to write your Detox tests in TypeScript.

  • Refer to this guide if you need to set up such a project.

1. Add TypeScript + ts-jest to package.json

We'll be using ts-jest to run Jest tests with TypeScript.

cache:
key:
stages:
- build
- test
- deploy
after_script:
- (if [ "$(lsof -n -i4TCP:2137)" != "" ]; then kill -9 $(lsof -n -i4TCP:2137); else echo "Cleaned"; exit 33; fi);
@dinukasal
dinukasal / .gitlab-ci.yml
Created February 4, 2018 14:28
Gitlab CI for react-native builds
image: openjdk:8-jdk
# image: jangrewe/gitlab-ci-android
variables:
ANDROID_COMPILE_SDK: "23"
ANDROID_BUILD_TOOLS: "23.0.1"
ANDROID_SDK_TOOLS: "3859397"
before_script:
@ZacSweers
ZacSweers / DiscussionGuidelines.md
Created November 20, 2017 07:04
Discussion guidelines

Guidelines

To keep the arguments and examples to the point there are few helpful rules:

  • No abstract examples/arguments. These cause the discussion to lose focus and make examples harder to follow. The example/argument must be traceable to a real-world problem - ___ is intended to solve real problems, not imaginary ones.
  • Examples must show the full complexity of the problem domain. Simplified examples trivialize the problems and the solutions intended to solve those simplified examples may not work for the complex problems.
  • Examples of problematic ___ code must be the “best way” of writing the code in ___ - if it can be improved then the improved version should be used instead.
  • Arguments must be straight to the point and as concise as possible.
  • Arguments should take the point of view of an average programmer - not the über-programmer who doesn’t make design mistakes.
@Pulimet
Pulimet / AdbCommands
Last active December 8, 2025 11:04
Adb useful commands list
Hi All!
I've recently launched a tool that wraps many of the commands here with a user interface. This desktop application is currently available for macOS. There's a roadmap outlining planned features for the near future.
Feel free to request any features you'd like to see, and I'll prioritize them accordingly.
One of the most important aspects of this application is that every command executed behind the scenes is displayed in a special log section. This allows you to see exactly what’s happening and learn from it.
Here's the link to the repository: https://github.com/Pulimet/ADBugger
App Description:
ADBugger is a desktop tool designed for debugging and QA of Android devices and emulators. It simplifies testing, debugging, and performance analysis by offering device management, automated testing, log analysis, and remote control capabilities. This ensures smooth app performance across various setups.
@brennanMKE
brennanMKE / EventEmitter.swift
Last active November 14, 2025 08:49
React Native Event Emitter for RCTEventEmitter in Objective-C and Swift
class EventEmitter
/// Shared Instance.
public static var sharedInstance = EventEmitter()
// ReactNativeEventEmitter is instantiated by React Native with the bridge.
private static var eventEmitter: ReactNativeEventEmitter!
private init() {}