- Passion
- Wants to learn
- Eager to learn
- Aptitude
- Can learn a new language with little help
- Understands basics to a Language
- Language comprehension
| { "_id" : ObjectId("4cc624373437595e787c1d0e"), "attrs" : [ | |
| { | |
| "name" : "First Name", | |
| "value" : "Amos", | |
| public : false | |
| }, | |
| { | |
| "name" : "age", | |
| "value" : 29, | |
| "public" : true |
| class Connection | |
| include Mongoid::Document | |
| references_one :originating_user, :inverse_of => :my_connections, :class_name => "User" | |
| references_one :destination_user, :inverse_of => :other_connections, :class_name => "User" | |
| end |
| <html> | |
| <head> | |
| <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js" type="text/javascript" charset="utf-8"></script> | |
| <style type="text/css" media="screen"> | |
| .hidden { | |
| display:none; | |
| } | |
| </style> | |
| </head> | |
| <body> |
| require 'spec_helper' | |
| require 'benchmark' | |
| describe 'performance tracking for accessing sitewide information' do | |
| include Mongo | |
| describe 'sitewide privacy settings maintained in an user info attribute collection' do | |
| before(:all) do | |
| db = Connection.new.db('user-acl-specs') | |
| @users = db.collection('users') |
| Getting more duplicates |
| /* | |
| I want to remove all the bool fields(inside the props array) from the following collection. | |
| */ | |
| //Initial state of collection | |
| db.foos.find(); | |
| //#=> | |
| { "_id" : ObjectId("4d60699c768262073556634f"), "props" : [ | |
| { | |
| "bool" : true, | |
| "name" : "bob" |
| shared_examples_for 'example' do | |
| it 'should pass' do | |
| true.should == true | |
| end | |
| end | |
| describe 'a new example' do | |
| it_should_behave_like 'example' | |
| it 'should fail' do |
| # This passes the block to second_method | |
| one_method second_method {...} | |
| # This passes the block to one_method | |
| one_method second_method do ... end |
| require 'mongoid' | |
| module GluU | |
| class Carousel | |
| include Mongoid::Document | |
| field :link, type: String | |
| field :index, type: Integer | |
| embeds_one :image, class_name: 'GluU::Carousel::Image', cascade_callbacks: true | |
| delegate :url, to: :background_image, prefix: true |