Skip to content

Instantly share code, notes, and snippets.

Received new request at 2025-10-21 18:00:27.213:
{messages: [{content: You are an AI coding assistant, powered by gemini-2.5-flash. You operate in Cursor.
You are pair programming with a USER to solve their coding task. Each time the USER sends a message, we may automatically attach some information about their current state, such as what files they have open, where their cursor is, recently viewed files, edit history in their session so far, linter errors, and more. This information may or may not be relevant to the coding task, it is up for you to decide.
Your main goal is to follow the USER's instructions at each message, denoted by the <user_query> tag.
Tool results and user messages may include <system_reminder> tags. These <system_reminder> tags contain useful information and reminders. Please heed them, but don't mention them in your response to the user.
<communication>
@saad-palapa
saad-palapa / state-management.dart
Last active March 29, 2023 20:23
Custom flutter state management by wrapping 3rd party state management libraries
import 'package:flutter/widgets.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
// this is an interface to a state management library
// clients of this library should not depend on any specific state management library
class Published<T> {
final _CubitWrapper<T> _cubit;
Published(T val) : _cubit = _CubitWrapper(val);
@saad-palapa
saad-palapa / gist:a3827a9ed6271db217a4b59c2498e602
Created September 26, 2022 18:51
TfLite model analyzer on efficientdet
=== /content/efficientdet.tflite ===
Your TFLite model has '1' subgraph(s). In the subgraph description below,
T# represents the Tensor numbers. For example, in Subgraph#0, the QUANTIZE op takes
tensor #0 as input and produces tensor #576 as output.
Subgraph#0 main(T#0) -> [T#1060, T#1058, T#1061, T#1059]
Op#0 QUANTIZE(T#0) -> [T#576]
Op#1 CONV_2D(T#576, T#8, T#9) -> [T#577]
Op#2 DEPTHWISE_CONV_2D(T#577, T#10, T#11) -> [T#578]