This file contains hidden or 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
| >> User.first.email | |
| >> User.all.collect{|u| u.status}.uniq.size | |
This file contains hidden or 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
| Add a new feature that allows for a Matching Question. | |
| Matching Questions should allow multiple pairs of options and answers. | |
| EXAMPLE: | |
| Matching | |
| 40-44) Match the weather to the word that best describes it. |
This file contains hidden or 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
| #!/usr/bin/env bash | |
| apt-get -y update | |
| apt-get -y install git-core ruby1.9.1 | |
| gem install chef ruby-shadow --no-ri --no-rdoc |
This file contains hidden or 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
| variables: | |
| DOCKER_DRIVER: overlay2 | |
| DOCKER_HOST: tcp://docker:2375/ | |
| DOCKER_BUILDKIT: 1 | |
| build: | |
| stage: build | |
| services: | |
| - name: docker:dind | |
| command: ["dockerd", "--host=tcp://0.0.0.0:2375"] |
This file contains hidden or 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
| class CommentsController < ApplicationController | |
| def users_comments | |
| posts = Post.all | |
| comments = posts.map(&:comments).flatten | |
| @user_comments = comments.select do |comment| | |
| comment.author.username == params[:username] | |
| end | |
| end | |
| end |