Companies
- Flipboard http://engineering.flipboard.com/
| var savefy = function() { | |
| //grab all the script files in your browser with type "text/template", stored as an array | |
| var templates = document.querySelectorAll('script[type="text/template"]'); | |
| //iterate through each template | |
| _.each(templates, function(template) { | |
| if (template.id) { | |
| //grab the id of the template and store as a handlebars filename | |
| var filename = (template.id + '.hbs').toString(); | |
| //store the contents of the template.... |
Companies
validates :username, presence: true, uniqueness: true, length: {minimum: 3}
validates :email, presence:true
validates :password_digest, presence:true, length; {minimum: 8}<!--userscontroller.rb-->
def create
| if (typeof JSON !== "object") { | |
| JSON = {} | |
| }(function() { | |
| "use strict"; | |
| function f(n) { | |
| return n < 10 ? "0" + n : n | |
| } | |
| if (typeof Date.prototype.toJSON !== "function") { | |
| Date.prototype.toJSON = function() { |
###Downloads
Begin by downloading and installing The Heroku Toolkit via [MacOSX] or [Ubuntu]. (If you havent done so already) (The Toolkit includes Heroku Command Line utility, as well as git and Foreman.)
Install the Bundler gem for Ruby. ( Learn about [Bundler] )
$ gem install bundler
| 1. Open preferences in iTerm. | |
| 2. Click on 'Profiles'. | |
| 3. On the right hand side, under "Working Directory", select "Reuse previous sessions directory". | |
| 4. Close preferences. | |
| Note. Working Directory allows you to choose which Directory opens in a New Session Window, such as Home Directory, or a Directory of your Choice. |