Skip to content

Instantly share code, notes, and snippets.

View vitoo's full-sized avatar

Vito vitoo

  • Paris, France
  • 06:39 (UTC +02:00)
View GitHub Profile
@eduardoarandah
eduardoarandah / UploadController.php
Last active November 3, 2023 17:11
File upload with dropzone and alpine js
<?php
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use App\Models\User;
use Illuminate\Http\Request;
use Storage;
class UploadController extends Controller
@BrendonKoz
BrendonKoz / leaflet-darkmode.md
Last active August 29, 2024 13:45
Automatic Dark Mode for Leaflet.js
// Leaflet JS - note the *className* attribute
// [...]

L.tileLayer('https://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png', {
    attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',
    className: 'map-tiles'
}).addTo(map);

// [...]
@laravel-shift
laravel-shift / .php-cs-fixer.php
Last active August 8, 2024 23:45
PHP CS Fixer - Laravel Coding Style Ruleset
<?php
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
$rules = [
'array_indentation' => true,
'array_syntax' => ['syntax' => 'short'],
'binary_operator_spaces' => [
'default' => 'single_space',
@robertopc
robertopc / adminer.css
Last active April 2, 2023 14:16
Adminer Black Custom Theme
/** theme "easy on the eyes" for Adminer by p.galkaev@miraidenshi-tech.jp */
/** customized by RobertoPC in https://gist.github.com/robertopc/bf2edac131bbaf789343fa9ce3ceb2e4 **/
@import url(//fonts.googleapis.com/css?family=Roboto+Mono:400,900);
/* for font awesome */
*:not(.fa) {
font-family: 'Roboto Mono', sans-serif;
}