Skip to content

Instantly share code, notes, and snippets.

View syahmiibrahim's full-sized avatar

Syahmi Ibrahim syahmiibrahim

View GitHub Profile
@aashari
aashari / 00 - Cursor AI Prompting Rules.md
Last active March 31, 2026 12:48
Cursor AI Prompting Rules - This gist provides structured prompting rules for optimizing Cursor AI interactions. It includes three key files to streamline AI behavior for different tasks.

The Autonomous Agent Prompting Framework

This repository contains a disciplined, evidence-first prompting framework designed to elevate an Agentic AI from a simple command executor to an Autonomous Principal Engineer.

The philosophy is simple: Autonomy through discipline. Trust through verification.

This framework is not just a collection of prompts; it is a complete operational system for managing AI agents. It enforces a rigorous workflow of reconnaissance, planning, safe execution, and self-improvement, ensuring every action the agent takes is deliberate, verifiable, and aligned with senior engineering best practices.

I also have Claude Code prompting for your reference: https://gist.github.com/aashari/1c38e8c7766b5ba81c3a0d4d124a2f58

@apih
apih / extra-code-form-footer.html
Last active January 29, 2024 00:36
OnPay: Show current donation amount and progress bar in the order form's text
<?php
interface HasherContract
{
public function encrypt($string);
}
class Aes implements HasherContract{
public function encrypt($string)
@nasrulhazim
nasrulhazim / readme.md
Last active December 9, 2016 07:17
Setting up Ajax in Laravel and it's Usage

Add Script Section in Layout

@yield('scripts')

Setup CSRF Token in $.ajaxSetup

jQuery(document).ready(function($) {
@zulhfreelancer
zulhfreelancer / malaysia_postcode_list.json
Last active January 20, 2026 04:30
Malaysia Postcode List By State (JSON)
{
"prepared_by": "Zulhilmi Zainudin",
"last_update": "21 June 2016",
"data": [
{
"state": "Selangor",
"codes": [
"40000",
"40100",

Most active GitHub users in Malaysia

The count of contributions (summary of Pull Requests, opened issues and commits) to public repos at GitHub.com from Mon, 14 Apr 2014 04:55:12 GMT till Tue, 14 Apr 2015 04:55:12 GMT.

Only first 1000 GitHub users according to the count of followers are taken. This is because of limitations of GitHub search. Sorting algo in pseudocode:

githubUsers
 .filter((user) -&gt; user.location = 'malaysia')
@quawn
quawn / getWorkingDays.php
Last active September 10, 2024 19:41
PHP: GetWorkingDays excluding weekend and holidays
<?php
function getWorkingDays($startDate,$endDate,$holidays) {
// do strtotime calculations just once
$endDate = strtotime($endDate);
$startDate = strtotime($startDate);
//The total number of days between the two dates. We compute the no. of seconds and divide it to 60*60*24
//We add one to inlude both dates in the interval.
$days = ($endDate - $startDate) / 86400 + 1;