- Check appropriate water level (ensure not empty)
- Check for coffee beans (fill hopper if not full, close to lid not completely though, beans are in cabinet above)
- Remove porta-filter from espresso machine (this is the thing which holds the coffee grounds / cakes)
- Press Espresso on grinder to select espresso mode (its timing should be preconfigured for you)
- Hold porta-filter under grinder and press start (angle porta-filter up to hold mess in)
- Tap and level off coffee grindings a bit manually
- Remove tamper from espresso machine and push it down on top of the porta-filter so the line between the black and metal is right at the top and make it level
- Tap off flattener and return to espresso machine
This file contains hidden or 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
$ rails new issue10336 | |
$ cd issue10336 | |
$ rails g model guaranty name:string product_id:integer | |
$ rails g model product name:string | |
$ rake db:migrate | |
$ rails console | |
Loading development environment (Rails 4.0.0.rc1) | |
1.9.3-p194 :001 > g = Guaranty.new |
This file contains hidden or 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
# config/application.rb | |
# You must either set the following in this file or set consider_all_requests_local to false in config/environments/development.rb | |
config.middleware.delete ActionDispatch::DebugExceptions |
This file contains hidden or 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
class InstallStepsController < ApplicationController | |
before_filter lambda { | |
if params[:release_id] | |
@installable = Release.includes(:product).find(params[:release_id]) | |
elsif params[:virtual_machine_id] | |
@installable = VirtualMachine.find(params[:virtual_machine_id]) | |
else | |
redirect_to root_url | |
end | |
} |
This file contains hidden or 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 'rspec' | |
class TriangleClassifier | |
def classify(len1, len2, len3) | |
lengths = [len1, len2, len3].sort | |
raise ArgumentError unless lengths.select {|length| length <= 0}.empty? | |
raise ArgumentError unless lengths[0] + lengths[1] > lengths[2] | |
case lengths.uniq.count | |
when 3 then :scalene | |
when 2 then :isoceles |
This file contains hidden or 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
Dir.chdir('public') | |
Dir.glob("**/**").select {|file| File.file?(file)}.each do |file| | |
File.open(file, 'r').each_with_index do |line, index| | |
puts "#{file} #{index}: #{line}" if line.include?('I18n.t(') | |
end | |
end |
NewerOlder