Skip to content

Instantly share code, notes, and snippets.

View lksudha's full-sized avatar

Sudhakaran Packianathan lksudha

View GitHub Profile
@lksudha
lksudha / initial_gemini_py_prompt.txt
Created May 16, 2025 05:32
prompt to improve python skills
help me improve this prompt:
"""
I want to use to notebooklm to help me improve my python coding skills. Input will be a skill dev roadmap frrom beginner to intermediate and then some code from my previous project. I want notebooklm to suggest refactoring exercies and help me go from basic to intermediate expertise level. How best can I use notebooklm for this.
"""
@lksudha
lksudha / py_learning_gemini_using_nlm.txt
Created May 16, 2025 05:29
prompt improvement to learn py using notebooklm
Okay, I understand. I'm sorry that the prompts still aren't visible despite my attempts to format them. This is unusual.
It seems like the way the prompt text was formatted (even inside code blocks) might not be displaying correctly in your environment.
I will try presenting the prompt text again, this time using *only* plain text, without any special formatting like code blocks or bolding within the prompt itself. I will use simple text markers to show you exactly where each prompt option begins and ends.
Please look for these markers and the plain text in between them.
---
@lksudha
lksudha / context.html
Created May 3, 2025 13:36
context issues
<table>
<thead>
<tr>
<th>Mistake</th>
<th>Description</th>
<th>Suggested Fix</th>
</tr>
</thead>
<tbody>
<tr>
@lksudha
lksudha / context prompt.md
Last active August 20, 2025 23:09
context and task prompt for ci migration

✅ CodeIgniter 4 Project — Context + Task Prompt Template

Use this format when working with ChatGPT to refactor or migrate pages to CI4. Submit the CONTEXT once, and use the TASK section for specific actions.


🧱 CONTEXT

This is a CodeIgniter 4.6 application.

@lksudha
lksudha / ci migration prompt.md
Created May 3, 2025 13:01
chatgpt template for CI migration prompt

📄 Prompt Template: Legacy PHP to CodeIgniter 4.6 Page Migration

✅ Goal:

I want to migrate the legacy PHP page [legacy_page.php] to CodeIgniter 4.6.

✅ Expectations:

  • Follow MVC style used in the existing page [driver_payments.php]
  • The controller method should be named: [methodName]
  • The controller is located in: DispatchController under app/Controllers/Dispatch/Pages
  • The view is placed at: app/Views/Pages/[new_view_name].php
@lksudha
lksudha / manager.py
Created April 9, 2019 13:54
custom manager for a doctor model in a EHR for use by doctor
# stdlib imports
import logging
import traceback
import json
from datetime import datetime
from dateutil import relativedelta
from sys import exc_info
# django imports
from django.db import models
@lksudha
lksudha / bobp-python.md
Created September 29, 2016 11:56 — forked from sloria/bobp-python.md
A "Best of the Best Practices" (BOBP) guide to developing in Python.

The Best of the Best Practices (BOBP) Guide for Python

A "Best of the Best Practices" (BOBP) guide to developing in Python.

In General

Values

  • "Build tools for others that you want to be built for you." - Kenneth Reitz
  • "Simplicity is alway better than functionality." - Pieter Hintjens
@lksudha
lksudha / beautiful_idiomatic_python.md
Created August 18, 2016 03:32 — forked from JeffPaine/beautiful_idiomatic_python.md
Transforming Code into Beautiful, Idiomatic Python: notes from Raymond Hettinger's talk at pycon US 2013. The code examples and direct quotes are all from Raymond's talk. I've reproduced them here for my own edification and the hopes that others will find them as handy as I have!

Transforming Code into Beautiful, Idiomatic Python

Notes from Raymond Hettinger's talk at pycon US 2013 video, slides.

The code examples and direct quotes are all from Raymond's talk. I've reproduced them here for my own edification and the hopes that others will find them as handy as I have!

Looping over a range of numbers

for i in [0, 1, 2, 3, 4, 5]: