Skip to content

Instantly share code, notes, and snippets.

View vitoo's full-sized avatar

Vito vitoo

  • Paris, France
  • 06:58 (UTC +01:00)
View GitHub Profile
@robertopc
robertopc / adminer.css
Last active April 2, 2023 14:16
Adminer Black Custom Theme
/** theme "easy on the eyes" for Adminer by [email protected] */
/** 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;
}
@laravel-shift
laravel-shift / .php-cs-fixer.php
Last active November 10, 2024 11:16
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',
@BrendonKoz
BrendonKoz / leaflet-darkmode.md
Last active September 25, 2024 19:25
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);

// [...]
@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