THIS GIST WAS MOVED TO TERMSTANDARD/COLORS
REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
THIS GIST WAS MOVED TO TERMSTANDARD/COLORS
REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
; OpenVim.ahk | |
; | |
; Author: Arthur Jaron | |
; EMail: [email protected] | |
; Overview: | |
; Explorer_GetSelection(): Helper function (found in the AHK-forums) | |
; OpenVim(): Core function | |
; Hotkeys: | |
; Win+Enter: Open current file in gVim session "GVIM" |
#Laravel 5 Simple ACL manager
Protect your routes with user roles. Simply add a 'role_id' to the User model, install the roles table and seed if you need some example roles to get going.
If the user has a 'Root' role, then they can perform any actions.
Simply copy the files across into the appropriate directories, and register the middleware in App\Http\Kernel.php
* Update (12.09.2017): I have improved the trait so that it can be used with objects other than Eloquent Models.
Some days ago I came across a task where I needed to implement managable state for an Eloquent model. This is a common task, actually there is a mathematical model called "Finite-state Machine". The concept is that the state machine (SM) "can be in exactly one of the finite number of states at any given time". Also changing from one state to another (called transition) depends on fulfilling the conditions defined by its configuration.
Practically this means you define each state that the SM can be in and the possible transitions. To define a transition you set the states on which the transition can be applied (initial conditions) and the only state in which the SM should be after the transition.
That's the theory, let's get to the work.
<?php | |
/* | |
Plugin Name: wp_filter functions | |
Plugin URI: http://www.damiencarbery.com/2017/06/list-functions-attached-to-an-action/ | |
Description: List functions attached to all actions and filters. DON'T DO IT! | |
Author: Damien Carbery | |
Version: 0.1 | |
*/ | |
add_action( 'wp_head', 'wp_filter_the_wrong_way' ); |
scriptencoding utf-8 " basic | |
set nocompatible " basic | |
filetype off " basic | |
filetype plugin on " Enable filetype plugins | |
filetype indent on " Enable loading the indent file for specific file types | |
syntax enable " Enable syntax highlighting | |
set encoding=utf-8 " Encoding (needed in youcompleteme) | |
set fileencoding=utf-8 " The encoding written to file. | |
set noerrorbells " No annoying sound on errors | |
set number " Line numbers on |
# Reload tmux config | |
bind r source-file ~/.tmux.conf | |
# one of these should work: | |
# set -g default-terminal tmux-256color | |
# set -g default-terminal xterm-256color | |
# neovim :checkhealth suggests | |
set -g default-terminal screen-256color | |
set-option -sa terminal-overrides ',xterm-256color:RGB' |
// I'm tired of extensions that automatically: | |
// - show welcome pages / walkthroughs | |
// - show release notes | |
// - send telemetry | |
// - recommend things | |
// | |
// This disables all of that stuff. | |
// If you have more config, leave a comment so I can add it!! | |
{ |