Skip to content

Instantly share code, notes, and snippets.

View cimplesid's full-sized avatar
🎯
playing dart

Siddhartha joshi cimplesid

🎯
playing dart
View GitHub Profile
@cimplesid
cimplesid / CLAUDE.md
Created September 23, 2026 15:18
CLAUDE.md

Global rules (every project). A project's CLAUDE.md overrides these where they conflict.

  • When one of these rules stops or changes what you do, say so and name it, e.g. "Stopped: CLAUDE.md > Secrets".

Tokens

  • Before a large job, estimate tokens and wait for my go-ahead.
  • Search first (grep/glob), then read only the needed lines. Never dump whole files, logs, JSON or PDFs.
  • Run builds/tests with short output; grep the log for details.
  • Edit, don't rewrite files. Don't re-read a file you just edited.
  • Images only when a visual check is needed, downscaled.
  • No subagents or workflows unless the task truly needs them.
@cimplesid
cimplesid / longpressdrag.dart
Created September 15, 2020 15:33
Flutter widget for long press and drag support
class TestHome extends StatefulWidget {
@override
_TestHomeState createState() => _TestHomeState();
}
class _TestHomeState extends State<TestHome> {
var left = 100.2, top = 100.6;
@override
Widget build(BuildContext context) {
function convert_to_unicode() {
var array_one = new Array(
"ç",
"˜",
".",
"'m",
"]m",
"Fmf",
"Fm",
@cimplesid
cimplesid / index.xml
Last active September 5, 2019 15:26
premium template footer remove
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html b:version='2' class='v2' expr:dir='data:blog.languageDirection' xmlns='http://www.w3.org/1999/xhtml' xmlns:b='http://www.google.com/2005/gml/b' xmlns:data='http://www.google.com/2005/gml/data' xmlns:expr='http://www.google.com/2005/gml/expr'>
&lt;head&gt;
<meta content='width=device-width, initial-scale=1, maximum-scale=1' name='viewport'/>
<b:include data='blog' name='all-head-content'/>
<title>
<b:if cond='data:blog.pageType == &quot;index&quot;'>
@cimplesid
cimplesid / rollingSwitch.dart
Last active August 3, 2019 10:18
Animation Challenge
//Rolling switch -SIDTUBE
class RollingSwitch extends StatefulWidget {
@override
_RollingSwitchState createState() => _RollingSwitchState();
}
class _RollingSwitchState extends State<RollingSwitch>
with SingleTickerProviderStateMixin {
AnimationController animationController;