This file contains 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_relative '../rook' | |
class Rook::User | |
include DataMapper::Resource | |
attr_accessor :password, :password_confirmation | |
property :id, Serial, :writer => :protected, :key => true | |
property :email, String, :required => true, :length => (5..40), | |
:unique => true, :format => :email_address |
This file contains 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
# NAME: authinabox | |
# VERSION: 1.01 (Dec 27, 2008) | |
# AUTHOR: Peter Cooper [ http://www.rubyinside.com/ github:peterc twitter:peterc ] | |
# DESCRIPTION: An "all in one" Sinatra library containing a User model and authentication | |
# system for both session-based logins OR HTTP Basic auth (for APIs, etc). | |
# This is an "all in one" system so you will probably need to heavily tailor | |
# it to your own ideas, but it will work "out of the box" as-is. | |
# COMPATIBILITY: - Tested on 0.3.2 AND the latest rtomayko Hoboken build! (recommended for the latter though) | |
# - NEEDS DataMapper! | |
# - Less work needed if you use initializer library -- http://gist.github.com/40238 |
This file contains 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
1 require_relative '../spec_helper'¬ | |
2 require_relative '../../models/user'¬ | |
3 ¬ | |
4 describe Rook::User do¬ | |
5 before do¬ | |
6 @user = Rook::User.gen¬ | |
7 end¬ | |
8 ¬ | |
9 it 'has a username' do¬ | |
10 @user.username.must_equal 'DecoyDrone'¬ |
This file contains 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
BACKTRACE | |
(expand) | |
JUMP TO: GET POST COOKIES ENV | |
/Users/Inkpen1986/Fountain/Ruby/Rook/views/index.haml in evaluate_source | |
= will_paginate @opportunites | |
/Users/Inkpen1986/Fountain/Ruby/Rook/routes/opportunity.rb in block in <class:Rook> | |
haml :index | |
GET | |
No GET data. | |
POST |
This file contains 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
HOMEBREW_VERSION: 0.9 | |
HEAD: d308e2098b7b2bb894a2e970b0a6477b97ff5814 | |
HOMEBREW_PREFIX: /usr/local | |
HOMEBREW_CELLAR: /usr/local/Cellar | |
CPU: 8-core 64-bit sandybridge | |
OS X: 10.7.3 | |
Kernel Architecture: x86_64 | |
Xcode: 4.3.1 | |
GCC-4.0: N/A | |
GCC-4.2: build 5666 |
This file contains 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
==> Downloading https://github.com/b4winckler/macvim/tarball/snapshot-64 | |
Already downloaded: /Users/Inkpen1986/Library/Caches/Homebrew/macvim-7.3-64.tgz | |
/usr/bin/tar xf /Users/Inkpen1986/Library/Caches/Homebrew/macvim-7.3-64.tgz | |
==> ./configure --with-features=huge --with-tlib=ncurses --enable-multibyte --with-macarchs=x86_64 --enable-perlinterp --enable-pythoninterp --enable-rubyinterp --enable-tclinterp | |
./configure --with-features=huge --with-tlib=ncurses --enable-multibyte --with-macarchs=x86_64 --enable-perlinterp --enable-pythoninterp --enable-rubyinterp --enable-tclinterp | |
checking whether make sets $(MAKE)... yes | |
checking for gcc... gcc | |
checking for C compiler default output file name... a.out | |
checking whether the C compiler works... yes | |
checking whether we are cross compiling... no |
This file contains 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
Without light there would be no color. Everything we look at is actually reflecting certain wavelengths of light and then absorbing the rest. The wavelength colors that our eyes can process are a part of the visible spectrum, a tiny sliver of the electromagnetic spectrum. The principle colors are, violet, blue, green, yellow, orange, and red. All light that we can see exists between the rainbow of violet on one end and red on the other. | |
Once light reflects off an object the wavelengths that weren’t absorbed make it into our eye. The lens focuses the light onto the retinal area that is made up of nerve endings called rods and cones. Rods are only sensitive to intensity or brightness. Color sensitive cones come in three types: the first is more sensitive to red, the second to blue and the third to green. These nerve endings turn light into electrochemical signals that are sent down the optical nerve to the brain. Then based on what is receive the brain interprets the signals and gives us sight. |
NewerOlder