Skip to content

Instantly share code, notes, and snippets.

View MarcelWeidum's full-sized avatar

Marcel MarcelWeidum

  • Netherlands
  • 08:46 (UTC +02:00)
View GitHub Profile
@MarcelWeidum
MarcelWeidum / Instructions.MD
Created January 9, 2025 14:49 — forked from diogogpinto/Instructions.MD
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:

@MarcelWeidum
MarcelWeidum / employees.php
Created September 8, 2021 12:15
Get employees
<?php
public function employees()
{
// Init client
$mplusqapiclient = new Mplusqapiclient();
$mplusqapiclient->setApiServer(env('MPLUS_URL'));
$mplusqapiclient->setApiPort(env('MPLUS_PORT'));
$mplusqapiclient->setApiIdent(env('MPLUS_IDENT'));
$mplusqapiclient->setApiSecret(env('MPLUS_SECRET'));
$('.single-content').hide();
$(document).ready(function() {
var slide_time = 500;
$(".blocks-container .block").click(function() {
console.log($(this).index());
var slide_status = $(this).parent().children().last().attr("slide-status");
if(slide_status == "closed") {
@MarcelWeidum
MarcelWeidum / CustomCell.swift
Created April 11, 2017 10:37
Expanding cell
import UIKit
class NewSongExpandableTableViewCell: UITableViewCell {
@IBOutlet var firstView: UIView!
@IBOutlet var secondView: UIView!
@IBOutlet var heightConstraintSecondView: NSLayoutConstraint!