Skip to content

Instantly share code, notes, and snippets.

View ashrafhasson's full-sized avatar

Ashraf Hasson ashrafhasson

View GitHub Profile
unbind r
bind r source-file ~/.config/tmux/tmux.conf
set -g mouse on
# act like vim
setw -g mode-keys vi
bind-key h select-pane -L
bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -R
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration.
You should not put any user code in this function besides modifying the variable
values."
(setq-default
;; Base distribution to use. This is a layer contained in the directory
@ashrafhasson
ashrafhasson / ensure_permissions.ex
Last active April 21, 2016 02:49
Guardian modification to allow OR behaviour when checking permissions
defmodule Guardian.Plug.EnsurePermissions do
@moduledoc """
Use this plug to ensure that there are the
correct permissions set in the claims found on the connection.
### Example
alias Guardian.Plug.EnsurePermissions
# read and write permissions for the admin set
@ashrafhasson
ashrafhasson / radio-button-group.hbs
Last active August 29, 2015 14:05
ember-radio-button-group
<label class="label">{{name}}</label>
{{#each option in options}}
{{radio-button checked=option.checked value=option.value title=option.title name=name class='toggle'}}
{{/each}}