Skip to content

Instantly share code, notes, and snippets.

View jechazelle's full-sized avatar

Jérémie Chazelle jechazelle

View GitHub Profile
@worc
worc / dropzone.js
Last active January 23, 2024 20:18
react-dropzone formData example
// there's a sandbox to try this out on the react-dropzone website:
// https://react-dropzone.js.org/
import React from 'react';
import {useDropzone} from 'react-dropzone';
function Basic(props) {
const {acceptedFiles, getRootProps, getInputProps} = useDropzone();
const files = acceptedFiles.map(file => (
@laravel-shift
laravel-shift / .php-cs-fixer.php
Last active November 21, 2025 10:25
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',
@DawidMyslak
DawidMyslak / vue.md
Last active April 22, 2024 12:49
Vue.js and Vuex - best practices for managing your state

Vue.js and Vuex - best practices for managing your state

Modifying state object

Example

If you have to extend an existing object with additional property, always prefer Vue.set() over Object.assign() (or spread operator).

Example below explains implications for different implementations.