A ZSH theme optimized for people who use:
- Solarized
- Git
- Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)
For Mac users, I highly recommend iTerm 2 + Solarized Dark
| /* Basic text-shadow example */ | |
| p { | |
| font-size: 6em; | |
| color: orange; | |
| text-align: center; | |
| text-shadow: -0.1em -0.1em; | |
| } |
| /** | |
| * Copyright 2013 Omar Miatello - omar.miatello@justonetouch.it | |
| * Based on http://stackoverflow.com/a/18000094/1228545 | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * |
#Simple Authentication with Bcrypt
This tutorial is for adding authentication to a vanilla Ruby on Rails app using Bcrypt and has_secure_password.
The steps below are based on Ryan Bates's approach from Railscast #250 Authentication from Scratch (revised).
You can see the final source code here: repo. I began with a stock rails app using rails new gif_vault
##Steps