Skip to content

Instantly share code, notes, and snippets.

View Jibbscript's full-sized avatar
💭
Buidl the Cloud

Gibran Iqbal Jibbscript

💭
Buidl the Cloud
View GitHub Profile
@Jibbscript
Jibbscript / security-checklist.md
Created April 13, 2025 09:28 — forked from mattppal/security-checklist.md
A simple security checklist for your vibe coded apps

Frontend Security

Security Measure Description
Use HTTPS everywhere Prevents basic eavesdropping and man-in-the-middle attacks
Input validation and sanitization Prevents XSS attacks by validating all user inputs
Don't store sensitive data in the browser No secrets in localStorage or client-side code
CSRF protection Implement anti-CSRF tokens for forms and state-changing requests
Never expose API keys in frontend API credentials should always remain server-side
@Jibbscript
Jibbscript / .py
Created March 17, 2025 05:51 — forked from Madhav-MKNC/coding-agent.py
All the code you need to create a powerful agent that can create and edit any file on your computer using the new text_editor tool in the Anthropic API.
import anthropic
import os
import sys
from termcolor import colored
from dotenv import load_dotenv
class ClaudeAgent:
def __init__(self, api_key=None, model="claude-3-7-sonnet-20250219", max_tokens=4000):
"""Initialize the Claude agent with API key and model."""
@Jibbscript
Jibbscript / code-editor-rules.md
Created December 17, 2024 21:34 — forked from yifanzz/code-editor-rules.md
EP12 - The One File to Rule Them All

[Project Name]

Every time you choose to apply a rule(s), explicitly state the rule(s) in the output. You can abbreviate the rule description to a single word or phrase.

Project Context

[Brief description ]

  • [more description]
  • [more description]
  • [more description]
@Jibbscript
Jibbscript / README.md
Created June 21, 2024 08:17 — forked from disler/README.md
Use these Prompt Chains to build HIGH QUALITY AI Agents (Agentic Building Blocks)

Setup

  1. Create a new directory with these three files (requirements.txt, main.py, README.md)
  2. python -m venv venv
  3. source venv/bin/activate
  4. pip install -r requirements.txt
  5. python main.py
  6. Update main() to run the example prompt chains
@Jibbscript
Jibbscript / backtracking_template.py
Created May 30, 2022 22:25 — forked from RuolinZheng08/backtracking_template.py
[Algo] Backtracking Template & N-Queens Solution
def is_valid_state(state):
# check if it is a valid solution
return True
def get_candidates(state):
return []
def search(state, solutions):
if is_valid_state(state):
solutions.append(state.copy())
@Jibbscript
Jibbscript / Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts.py
Created June 4, 2021 00:42
Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts
class Solution:
def maxArea(self, h: int, w: int, horizontalCuts: List[int], verticalCuts: List[int]) -> int:
start, end = 0, 0
max_h, max_w = 0, 0
horizontalCuts.sort()
verticalCuts.sort()
for i in range(len(horizontalCuts)):
@Jibbscript
Jibbscript / interleaving_string.py
Created June 2, 2021 23:46
Interleaving String
class Solution:
def isInterleave(self, s1: str, s2: str, s3: str, memo: dict = {}) -> bool:
if len(s1) + len(s2) is not len(s3):
return False
if not s1 and not s2 and not s3:
return True
if (s1,s2,s3) in memo:
return memo[(s1,s2,s3)]
if (s1,s2,s3) not in memo:
@Jibbscript
Jibbscript / Evaluate Reverse Polish Notation.py
Created May 27, 2021 04:50
Evaluate Reverse Polish Notation
class Solution:
def evalRPN(self, tokens: List[str]) -> int:
operators = {
"+": (lambda a, b: a + b),
"-": (lambda a, b: a - b),
"*": (lambda a, b: a * b),
"/": (lambda a, b: a / b)
}
tkn_stack = []
@Jibbscript
Jibbscript / Partitioning Into Minimum Number Of Deci-Binary Numbers.py
Created May 27, 2021 04:47
Partitioning Into Minimum Number Of Deci-Binary Numbers
class Solution:
def minPartitions(self, n: str) -> int:
for i in range(9, -1, -1):
if str(i) in n:
return i