First, add pry-rails to your Gemfile:
https://github.com/rweng/pry-rails
gem 'pry-rails', group: :developmentThen you'll want to rebuild your Docker container to install the gems
First, add pry-rails to your Gemfile:
https://github.com/rweng/pry-rails
gem 'pry-rails', group: :developmentThen you'll want to rebuild your Docker container to install the gems
#How I built an audio book reader for my nearly blind grandfather
Last year, when visiting my family back home in Holland, I also stopped by my grand-parents. My grand-father, now 93 years old, had always been a very active man. However, during the presceding couple of months, he'd gone almost completely blind and now spent his days sitting in a chair. Trying to think of something for him to do, I suggested he try out audio books. After finally convincing him -- he said audio books were for sad old people -- that listening to a well performed recording is actually a wonderful experience, I realized the problem of this idea.
####The problem with audio devices and the newly blind. After my first impulse to jump up and go buy him an
| #!/bin/bash | |
| PROJECT_NAME=MyApp | |
| SCHEME_NAME=MyApp | |
| STARTTIME=$(date +%s); | |
| set -e | |
| set -x | |
| ### Install dependencies | |
| echo "--- Install dependencies [Time Elapsed $(($(date +%s) - $STARTTIME))s]" |
| class ApplicationController < ActionController::Base | |
| before_filter :ensure_proper_protocol | |
| protected | |
| def ssl_allowed_action? | |
| (params[:controller] == 'users/sessions' && ['new', 'create'].include?(params[:action])) || | |
| (params[:controller] == 'users/registrations' && ['new', 'create', 'edit', 'update'].include?(params[:action])) || | |
| (params[:controller] == 'users/omniauth_callbacks') | |
| end |
| @mixin background-image-retina($file, $type, $width, $height) { | |
| background-image: url($file + '.' + $type); | |
| @media (-webkit-min-device-pixel-ratio: 2), (-moz-min-device-pixel-ratio: 2) { | |
| & { | |
| background-image: url($file + '@2x.' + $type); | |
| -webkit-background-size: $width $height; | |
| } | |
| } | |
| } |
| module Delayed | |
| module Plugins | |
| class Airbrake < Plugin | |
| module Notify | |
| def error(job, error) | |
| ::Airbrake.notify_or_ignore(error) | |
| super | |
| end | |
| end |
| $stack, $draws = [], {} | |
| def method_missing *args | |
| return if args[0][/^to_/] | |
| $stack << args.map { |a| a or $stack.pop } | |
| $draws[$stack.pop(2)[0][0]] = args[1] if args[0] == :< | |
| end | |
| class Array | |
| def +@ |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>fileTypes</key> | |
| <array> | |
| <string>haml</string> | |
| <string>sass</string> | |
| </array> | |
| <key>foldingStartMarker</key> |