Skip to content

Instantly share code, notes, and snippets.

View simonlehmann's full-sized avatar

Simon Lehmann simonlehmann

  • Mable
  • Perth, Western Australia
View GitHub Profile
@simonlehmann
simonlehmann / Contract Killer 3.md
Created July 29, 2017 10:30
The latest version of my ‘killer contract’ for web designers and developers

Contract Killer

The popular open-source contract for web professionals by Stuff & Nonsense

  • Originally published: 23rd December 2008
  • Revised date: March 15th 2016
  • Original post

@simonlehmann
simonlehmann / ability.rb
Last active February 23, 2018 15:43 — forked from vmarcetic/ability.rb
Rails, Devise, CanCanCan, Rolify and User Group Roles
class Ability
include CanCan::Ability
def initialize(user)
user ||= User.new # This is used for not logged user if you have a need for it
case user.current_role
when 'admin'
can :manage, :all
@simonlehmann
simonlehmann / create_labels.sh
Last active September 7, 2016 02:55 — forked from omegahm/create_labels.sh
Create Gtihub labels from Bash
#!/usr/bin/env bash
# Colours picked from https://robinpowered.com/blog/best-practice-system-for-organizing-and-tagging-github-issues/
###
# Label definitions
###
declare -A LABELS
# Platform