Skip to content

Instantly share code, notes, and snippets.

View jwalton512's full-sized avatar

Jason Walton jwalton512

View GitHub Profile
@jwalton512
jwalton512 / .php-cs-fixer.php
Last active November 8, 2021 23:50 — forked from laravel-shift/.php-cs-fixer.php
PHP CS Fixer - Laravel Coding Style Ruleset (PHP CS Fixer v3)
<?php
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
$rules = [
'array_syntax' => ['syntax' => 'short'],
'binary_operator_spaces' => [
'default' => 'single_space',
'operators' => ['=>' => null],
append
break
can
cannot
component
continue
choice
each
else
elsecan
@jwalton512
jwalton512 / LogRequest.php
Created November 20, 2016 13:31
Request logging middleware
<?php
namespace App\Http\Middleware;
use Closure;
use Illuminate\Support\Facades\Log;
class LogRequest
{
protected $dontLog = ['password', 'password_confirmation'];
--start with (in insert mode):
foo bar baz |beep boop beep
-- would like to end up with (without leaving insert mode:
foo bar baz
|
beep boop beep
@jwalton512
jwalton512 / .editorconfig
Created May 16, 2016 06:48
Default EditorConfig
root = true
[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
var gulp = require('gulp'),
browserSync = require('browser-sync'),
sass = require('gulp-sass'),
prefix = require('gulp-autoprefixer'),
minifycss = require('gulp-minify-css'),
jshint = require('gulp-jshint'),
concat = require('gulp-concat'),
uglify = require('gulp-uglify'),
rename = require('gulp-rename'),
cp = require('child_process'),
@jwalton512
jwalton512 / example.sublime-project
Created October 8, 2015 21:11
sublime project php-cd-fixer build system
{
"folders":
[
{
"path": "."
}
],
"build_systems":
[
{
@jwalton512
jwalton512 / addDomain.js
Last active September 15, 2015 16:32 — forked from simonj/addDomain.js
/*
* test
*/
module.exports = {
template: '<p>A custom component!</p>'
}
@jwalton512
jwalton512 / adddomain
Last active September 12, 2015 14:36 — forked from simonj/adddomain
app.js
module.exports = {
}
@jwalton512
jwalton512 / admin(v2).js
Last active May 15, 2018 19:41
Harmony with Laravel + Vue + Vue Router
// dashboard component
var dashboard = Vue.extend({
template: '<p>Hello from dashboard</p>'
})
// user management component
var user = Vue.extend({
template: '<p>Hello from user management page</p>'
})