Skip to content

Instantly share code, notes, and snippets.

Jason Walton jwalton512

View GitHub Profile
View gist:ea04953fa9ed29e2016ca35b83fe0dd5
append
break
can
cannot
component
continue
choice
each
else
elsecan
@jwalton512
jwalton512 / LogRequest.php
Created Nov 20, 2016
Request logging middleware
View LogRequest.php
<?php
namespace App\Http\Middleware;
use Closure;
use Illuminate\Support\Facades\Log;
class LogRequest
{
protected $dontLog = ['password', 'password_confirmation'];
View vim insert new line in insert mode
--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
Default EditorConfig
View .editorconfig
root = true
[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
View gist:1c51975824306cee2c1ab31ea66c4784
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 Oct 8, 2015
sublime project php-cd-fixer build system
View example.sublime-project
{
"folders":
[
{
"path": "."
}
],
"build_systems":
[
{
View addDomain.js
/*
* test
*/
module.exports = {
template: '<p>A custom component!</p>'
}
@jwalton512
jwalton512 / adddomain
Last active Sep 12, 2015 — forked from SimonJ/adddomain
app.js
View adddomain
module.exports = {
}
@jwalton512
jwalton512 / admin(v2).js
Last active May 15, 2018
Harmony with Laravel + Vue + Vue Router
View admin(v2).js
// 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>'
})
@jwalton512
jwalton512 / Api\Admin\TestCase.php
Created Aug 9, 2015
Api Testing With Laravel 5.1 (jwt-auth)
View Api\Admin\TestCase.php
<?php
namespace Tests\Api;
use App\User;
use Tests\TestCase as BaseTestCase;
use Illuminate\Contracts\Auth\Authenticatable as UserContract;
class TestCase extends BaseTestCase
{
You can’t perform that action at this time.