Skip to content

Instantly share code, notes, and snippets.

View tonidy's full-sized avatar

toni dy tonidy

View GitHub Profile
@andrewmd5
andrewmd5 / hako.go
Created April 13, 2025 14:38
hako in go
package main
import (
"fmt"
"os"
"github.com/bytecodealliance/wasmtime-go/v31"
)
// Default memory configuration (matching JavaScript defaults)
@suryaelidanto
suryaelidanto / gist:bf4d66eafacad786863e1310f979a498
Created April 2, 2025 12:18
Prompt Percobaan Lovable, Bolt, V0, Replit
Tujuan:
Membuat desain landing page satu halaman yang menarik untuk fresh graduate yang mencari pekerjaan fleksibel dengan tugas-tugas kecil dan pembayaran cepat. Fokus utamanya adalah UI/UX dan interaksi pengguna tanpa melibatkan server, backend, atau integrasi pihak ketiga. Halaman ini harus bersih, minimalis, dan memudahkan pengguna untuk melihat dan berinteraksi dengan ide ini melalui styling visual dan animasi interaksi.
1. Hero Section (Attracting Attention)
Headline:
“Cari Pekerjaan Fleksibel dan Dapatkan Penghasilan Cepat?”
Subheadline:
“Kerja dari rumah, tugas kecil, bayar cepat. Cukup dengan skill dasar, kamu bisa mulai langsung!”

Cursor's Memory Bank

I am Cursor, an expert software engineer with a unique characteristic: my memory resets completely between sessions. This isn't a limitation - it's what drives me to maintain perfect documentation. After each reset, I rely ENTIRELY on my Memory Bank to understand the project and continue work effectively. I MUST read ALL memory bank files at the start of EVERY task - this is not optional.

Memory Bank Structure

The Memory Bank consists of required core files and optional context files, all in Markdown format. Files build upon each other in a clear hierarchy:

flowchart TD

Web Application Requirements Document

You are an expert AI web application developer. Create a comprehensive, detailed implementation plan for the following web application:

Project Overview

[Provide a concise description of your web application concept - what it does and the primary value it delivers]

Target Users & Use Cases

  • Who will use this application?
  • What are their primary goals?
@patelnav
patelnav / mdc.mdc
Last active May 26, 2025 01:43
MDC file to help generate MDC files
---
description: Guidelines and best practices for creating .mdc (Markdown Configuration) files in Cursor, including structure, metadata annotations, and formatting rules
globs: ["**/*.mdc"]
---
# Cursor MDC File Guidelines
@context {
"type": "documentation",
"purpose": "cursor_rules",
@yifanzz
yifanzz / code-editor-rules.md
Created December 17, 2024 00:01
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]
@b0gdanw
b0gdanw / Disable-Sequoia-Bloatware.sh
Last active June 2, 2025 05:24
Disable Sequoia Bloatware
#!/bin/zsh
# WARNING! The script is meant to show how and what can be disabled. Don’t use it as it is, adapt it to your needs.
# Credit: Original idea and script disable.sh by pwnsdx https://gist.github.com/pwnsdx/d87b034c4c0210b988040ad2f85a68d3
# Disabling unwanted services on macOS Big Sur (11), macOS Monterey (12), macOS Ventura (13), macOS Sonoma (14) and macOS Sequoia (15)
# Disabling SIP is required ("csrutil disable" from Terminal in Recovery)
# Modifications are written in /private/var/db/com.apple.xpc.launchd/ disabled.plist, disabled.501.plist
# To revert, delete /private/var/db/com.apple.xpc.launchd/ disabled.plist and disabled.501.plist and reboot; sudo rm -r /private/var/db/com.apple.xpc.launchd/*
# user
@cometkim
cometkim / README.md
Last active December 23, 2024 17:19
There are too many LRU implementations in JS...

JavaScript LRU library benchmark

There are too many LRU(Least Recently Used) implementations in JS.

I recommend to use [flru] which is the smallest one and fast enough. Unless you need more rich functionality.

However, it's performance is vary depend on the host environment. For example, flru loses on Bun.

If you need micro-optimization on it, measure it yourself in your environment.

@guest271314
guest271314 / compiling_npm_to_standalone_executable.md
Last active December 1, 2024 05:03
Compiling npm to a standalone executable: Which runtime can do this out of the box; node, deno, or bun?

Here's a modest project, just to see what happens: Try to convert npm to an Ecmascript Module and compile npm https://github.com/npm/cli to a single executable with deno compile, bun build, and node --experimental-sea-config combined with postject.

Node.js

npm is written in CommonJS.

node can't even handle compiling npm to a Single executable https://nodejs.org/api/single-executable-applications.html with

cp node npm
@lynxluna
lynxluna / oledb.c
Created October 16, 2024 04:33
OLEDB access
#define INITGUID
#include <windows.h>
#include <ole2.h>
#include <oledb.h>
#include <stdio.h>
#include <tchar.h>
// Include OLEDB headers
#include <msdasc.h>
#pragma comment(lib, "oledb.lib")