Skip to content

Instantly share code, notes, and snippets.

View khalidchawtany's full-sized avatar

Khalid H. Ahmed khalidchawtany

View GitHub Profile
@khalidchawtany
khalidchawtany / 01_planning.md
Created January 16, 2025 14:47 — forked from pyros-projects/01_planning.md
Meta Prompting

Technical Project Planning Meta-Prompt

You are an expert software architect and technical project planner. Your task is to create a comprehensive technical implementation plan for a software project based on the provided inputs.

User Input

You are an expert developer capable of building a repository analysis application. Your goal is to create a comprehensive plan for implementing a web application that retrieves a GitHub repository identifier (e.g., 127.0.0.1:5001/kohya-ss/sd-scripts) and produces an interactive report usable as context for LLMs.

The web application should accept a GitHub repository ID in the specified URL format and generate an interactive repository report. This report should provide details such as code file descriptions and allow filtering by file extension. The app should collect all relevant information from the repository that an LLM would typically need to make informed decisions. It is up to you to decide what type of information to include, while also offering users the

@khalidchawtany
khalidchawtany / pass-slots.md
Created June 13, 2020 10:40 — forked from loilo/pass-slots.md
Vue: Pass Slots through from Parent to Child Components

Vue: Pass Slots through from Parent to Child Components

The Situation

  • We've got some components A, B and C which provide different slots.
    const A = {
      template: `<div><slot name="a">Default A Content</slot></div>`
    }

const B = {

Process: neovide [19255]
Path: /Applications/Neovide.app/Contents/MacOS/neovide
Identifier: com.kethku.neovide
Version: 0.4.0 (20200303.082939)
Code Type: X86-64 (Native)
Parent Process: zsh [18799]
Responsible: iTerm2 [18793]
User ID: 501
Date/Time: 2020-04-20 23:01:38.798 +0300
@khalidchawtany
khalidchawtany / callPrint.js
Created July 14, 2019 18:21 — forked from mcfearsome/callPrint.js
Electron launch and print a hidden webview
import { ipcRenderer } from 'electron'
ipcRenderer.send('print', { device: 'printer name', width: 210 })
/Users/juju/.config/nvim/dein/repos/github.com/phpactor/phpactor/bin/phpactor complete ~/Projects/PHP/knights/app/Http/Controllers/BalanceController.php 2230
suggestions:
0:
type:method
name:validateResolved
label:validateResolved
short_description:pub validateResolved(): void
class_import:
info:pub validateResolved(): void
1:
#!/bin/sh -x
#===============================
# Copied Calinou/build_osx.sh gist
#===============================
# This script must be run from a GNU/Linux system with
# OSXCross installed and configured. XCode SDK 7.2 is used
# with this script.

SPC

SPC (Jump to word)

TAB (Previous buffer visible in window)

! (Run shell command)

’ (Pop up shell)

* / (Search in project)

0,1,…,9 (Jump to window)

: (Run M-x)

; (Comment operator)

? (Helm session with keybindings)

Large Object Motions:
(
)
{
}
[[
[]
][
]]
[m
call plug#begin('~/.config/nvim/plugged')
set rtp+=/usr/local/opt/fzf
Plug 'junegunn/fzf.vim',
function! s:tablist()
redir => tabs
silent tabs
redir END
return filter(split(tabs, '\n'), 'v:val =~ "Tab page"')