Skip to content

Instantly share code, notes, and snippets.

@diogogpinto
diogogpinto / Instructions.MD
Created January 3, 2025 13:14
Best Laravel AI Prompt to use with Claude

I have been utilizing artificial intelligence to enhance and optimize my codebases. After evaluating various models, applications, and editors, I find the claude.ai interface with a Pro Account to be the most effective. Here’s the approach I’ve developed to achieve optimal results:

This gist contains a carefully crafted prompt and a script designed to convert your entire Laravel codebase (excluding the resources folder, which can be easily added if needed) into a TXT file with the following structure:

<File Start: ./path/filename.extension> Content of file <End File: ./path/filename.extension>

To implement this method:

@Jlaird
Jlaird / Arduino.cpp
Last active January 14, 2025 10:43
hc-12 basic example
#include <SoftwareSerial.h>
SoftwareSerial HC12(10, 11);
void setup() {
Serial.begin(9600);
HC12.begin(9600);
pinMode(LED_BUILTIN, OUTPUT);
}
void loop() {
@lestoni
lestoni / gist:8c74da455cce3d36eb68
Last active January 14, 2025 10:42
vim folding cheatsheet

via (https://www.linux.com/learn/tutorials/442438-vim-tips-folding-fun)

  • zf#j creates a fold from the cursor down # lines.
  • zf/string creates a fold from the cursor to string .
  • zj moves the cursor to the next fold.
  • zk moves the cursor to the previous fold.
  • zo opens a fold at the cursor.
  • zO opens all folds at the cursor.
  • zm increases the foldlevel by one.
  • zM closes all open folds.
@KaKi87
KaKi87 / awesome-android-x3Free.md
Last active January 14, 2025 10:40
Awesome list — Free, ad-free and in-app-free Android apps

Inspired by Awesome

Awesome

DISCLAIMER : this isn't really an awesome list, I don't care about guidelines, rules and etc. so I don't bother make a real repo and a real pull request.

About this list

This list uses the power of my advanced Google Play search engine to get some free, in-app-free and ad-free apps from it.

<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Titre de l'Article - Nom du Site</title>
<link rel="stylesheet" href="style.css"> <!-- Lien vers votre feuille de style CSS -->
</head>
<body>
<header>
@richardhundt
richardhundt / patch_httpx_asgi.py
Last active January 14, 2025 10:35
Patch httpx ASGITransport to stream responses for testing
import asyncio
from contextlib import asynccontextmanager
import typing
import asyncio
from httpx._models import Request, Response
from httpx._transports.asgi import ASGITransport
from httpx._types import AsyncByteStream
class ASGIResponseByteStream(AsyncByteStream):
@RobertTalbert
RobertTalbert / gpTemplate.md
Created July 8, 2015 17:40
Markdown template file for Guided Practice assignments

Title

Overview

Overview

Learning objectives

Basic objectives: Each student is responsible for gaining proficiency with each of these tasks prior to engaging in class discussions, through the use of the learning resources (below) and through the working of exercises (also below).

@Xunnamius
Xunnamius / colortest.py
Last active January 14, 2025 10:32 — forked from justinabrahms/colortest.py
Small utility to test terminal support for 256-color output. Updated for Python 3.
#!/usr/bin/env python
# Ported to Python from http://www.vim.org/scripts/script.php?script_id=1349
print("Color indexes should be drawn in bold text of the same color.")
print()
colored = [0] + [0x5f + 40 * n for n in range(0, 5)]
colored_palette = [
"%02x/%02x/%02x" % (r, g, b)
for r in colored
@LouveBannie47
LouveBannie47 / hello.c
Last active January 14, 2025 10:32
mon hello world
int main()
{
printf("Hello World");
return 0;
}
@AlifiChiganjati
AlifiChiganjati / flutter_install.md
Created January 14, 2025 10:27
Flutter for Void Linux or any distro

It's for Void Linux but I think work for any distro

Install openjdk

  • Install package
doas xbps-install openjdk openjdk17