This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Everybody dreams about working with a team that is self-organising and high-performing. | |
In this talk, you will learn how to apply the principles of Autonomy, Mastery and Purpose | |
in the context of team building and culture. You will walk away with practical methods to | |
use these principles to make your team more self-organising. | |
I will explore: | |
* How to inject Autonomy into your team through Lean Startup and Product Thinking concepts. | |
* Instilling Mastery through utilising Agile and Data-Driven decision making. | |
* and, how to foster a sense of Purpose through the application of Goal Setting Theory and Vision Alignment. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Handle errors with Airbrake | |
Delayed::Worker.class_eval do | |
def handle_failed_job_with_airbrake(job, error) | |
handle_failed_job_without_notification job, error | |
# rescue if Airbrake fails for some reason | |
begin | |
Airbrake.notify error | |
rescue Exception => e | |
Rails.logger.error "Airbrake failed: #{e.class.name}: #{e.message}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def leaf_paths_of(paths) | |
paths.dup.reject do |path| | |
paths.any? { |p| p =~ %r{^#{Regexp.escape(path)}/} } | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe Library do | |
describe "leaf paths of" do | |
it "returns a path, if it doesn't have a sub dir in the list" do | |
Library.leaf_paths_of(["a"]).should == ["a"] | |
end | |
it "keeps unrelated paths" do | |
Library.leaf_paths_of(["a", "b"]).should == ["a", "b"] | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'time' | |
DAYS = { | |
"Sun" => 0, | |
"Mon" => 1, | |
"Tue" => 2, | |
"Wed" => 3, | |
"Thu" => 4, | |
"Fri" => 5, | |
"Sat" => 6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grammar Promo | |
rule root | |
empty rules:(trigger_or_effect empty)* { | |
def triggers | |
rules.elements.select { |r| r.elements.first.respond_to?(:trigger) }.map { |r| r.elements.first.trigger } | |
rescue NameError # nil for some object | |
[] | |
end |