Skip to content

Instantly share code, notes, and snippets.

@jeffcole
jeffcole / guard_and_spork_for_rails_3.rb
Last active August 29, 2015 14:00
Guard and Spork Setup for Rails 3.x
# Instructions
# 1. Add the following to the indicated files
# 2. $ bundle
# 3. $ guard
# 4. Specs should run automatically on file save
#
# Note that some finagling of gem versions might be necessary depending on the
# project.
# .rspec
@jeffcole
jeffcole / Guardfile
Last active August 29, 2015 14:05
Guardfile
# A sample Guardfile
# More info at https://github.com/guard/guard#readme
guard :rspec do
watch(%r{^spec/.+_spec\.rb$})
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
watch('spec/spec_helper.rb') { "spec" }
# Rails example
watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
@jeffcole
jeffcole / active_record_spec_helper.rb
Created November 30, 2015 17:22
ActiveRecord Spec Helper
# From Rails 4 Test Prescriptions
require 'spec_helper'
require 'active_record'
require 'yaml'
ActiveRecord::Base.establish_connection(
YAML.load_file("config/database.yml")["test"]
)
module Repositories
class Banana
attr_reader :relation
def initialize(relation = ::Banana.all)
self.relation = relation
end
def old
self.class.new(

How the Future Works: Leading Flexible Teams to Do the Best Work of Their Lives

By leaders of the "Future Forum (FF)," a research group that grew out of Slack and was accelerated by the pandemic, to determine how work would change in the future (and one can imagine, how to poise Slack's products to succeed in this environment).

Defining "Flexible" Work

  • "Remote" isn't the best term, because location flexibility is only part of the story.
  • Out of 10,000 knowledge workers surveyed across six countries:
    • 76% want flexibility in where they work
  • 93% want flexibility in when they work