Skip to content

Instantly share code, notes, and snippets.

View dave-alvarez's full-sized avatar

Dave Alvarez dave-alvarez

View GitHub Profile
@danielgross
danielgross / mathpix2gpt.py
Last active October 21, 2024 05:51
mathpix2gpt.py
import requests
import time
import os
import sys
import openai
import tiktoken
from termcolor import colored
openai.api_key = open(os.path.expanduser('~/.openai')).read().strip()
If you're into
- Laravel, https://laravel.com/
- Filament https://filamentphp.com/
- DTOs or Json columns.
Some templates...
@pxlrbt
pxlrbt / PageTemplates_Faq.php
Last active August 1, 2024 14:49
Filament Template
<?php
namespace App\Filament\PageTemplates;
use Filament\Forms\Components\Repeater;
use Filament\Forms\Components\RichEditor;
use Filament\Forms\Components\TextInput;
final class Faq
{
@gruberdev
gruberdev / my-awesome.md
Last active November 14, 2024 22:55
starred
@fzldn
fzldn / beautifier.js
Last active July 28, 2023 18:28
VS Code Laravel Blade formatter using extension Beautify 1.5.0 by HookyQR with js-beautify hacks
...
Beautifier.prototype.beautify = function() {
...
var source_text = this._source_text;
// BEGIN
source_text = source_text.replace(/\{\{(--)?((?:(?!(--)?\}\}).)+)(--)?\}\}/g, function(m, ds, c, dh, de) {