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 Api::SessionsController < ApplicationController | |
before_action :current_user, except: :create | |
def show | |
render json: @user, serializer: UserSerializer | |
end | |
def create | |
@auth = false | |
if params[:password].present? |
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 Api::SessionsController < ApplicationController | |
before_action :current_user, except: :create | |
def show | |
render json: @user, serializer: UserSerializer | |
end | |
def create | |
@auth = false | |
if params[:password].present? |
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
if !self.video_answers.empty? and self.interview.questions.count == (self.video_answers.with_state(:to_merge).count + self.video_answers.with_state(:convert_finish).count) and self.uncompleted? | |
self.complete | |
end |
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
if self.temp_state != self.status && self.temp_state.present? and !self.uncompleted? | |
event = self.temp_state | |
self.send(event) | |
self.temp_state = "" | |
self.save | |
end |
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
<script type="text/template" id="content"> | |
<div class="header-block"></div> | |
<div class="index-content fill"> |
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
### USAGE | |
### | |
### ./ElasticSearch.sh 1.5.0 will install Elasticsearch 1.5.0 | |
### ./ElasticSearch.sh 1.4.4 will install Elasticsearch 1.4.4 | |
### ./ElasticSearch.sh will fail because no version was specified (exit code 1) | |
### | |
### CLI options Contributed by @janpieper | |
### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch | |
### ElasticSearch version |
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
InterviewResponse.last.email_stats | |
InterviewResponse Load (0.5ms) SELECT `interview_responses`.* FROM `interview_responses` ORDER BY `interview_responses`.`id` DESC LIMIT 1 | |
EmailStat Load (0.4ms) SELECT `email_stats`.* FROM `email_stats` WHERE `email_stats`.`stat_id` = 4 AND `email_stats`.`stat_type` = 'InterviewResponse' | |
=> #<ActiveRecord::Associations::CollectionProxy [#<EmailStat id: 3, user_id: 5, message_id: "<[email protected]>", status: "delivered", stat_id: 4, stat_type: "InterviewResponse", created_at: "2015-07-16 13:56:11", updated_at: "2015-07-16 13:56:14">]> |
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
locale: Cannot set LC_ALL to default locale: No such file or directory | |
Setting up mongodb-org-shell (2.6.0) ... | |
Setting up mongodb-org-server (2.6.0) ... | |
Adding system user `mongodb' (UID 104) ... | |
Adding new user `mongodb' (UID 104) with group `nogroup' ... | |
Not creating home directory `/home/mongodb'. | |
Adding group `mongodb' (GID 107) ... | |
Done. | |
Adding user `mongodb' to group `mongodb' ... | |
Adding user mongodb to group mongodb |
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
Шестьдесят населенных пунктов восьми звездных систем, от Солнца до Альтаира, зависели от торговли умами. Правда заключалась в том, что человечество шагнуло слишком далеко, и каждая планета не могла позволить себе развивать все области науки и техники. Зачем содержать тысячи средних медицинских училищ повсюду, если можно иметь пять высших и выпускать медиков высшей квалификации и торговать ими с другими планетами, где они могли бы учить других. Преимущества такой системы были огромными, число искусственных специалистов ограничено, больше того, прогресс шел быстрее, если все специалисты в одной области тесно соприкасались друг с другом. | |
Система казалась высоко практичной. Донал был одним из немногих людей, ясно видевших заключенные в ней недостатки. | |
Спорным вопросом торговли контрактами было следующее: насколько искусный специалист является индивидуальностью со своими правами и насколько он является собственностью нанимателя. Если он индивидуальность, торговля между мирами превращалась в серию индивидуальных сд |
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
api_v1_employer_applicant_comments GET /api/v1/employer_applicant_comments(.:format) api/v1/employer_applicant_comments#index | |
POST /api/v1/employer_applicant_comments(.:format) api/v1/employer_applicant_comments#create | |
new_api_v1_employer_applicant_comment GET /api/v1/employer_applicant_comments/new(.:format) api/v1/employer_applicant_comments#new | |
edit_api_v1_employer_applicant_comment GET /api/v1/employer_applicant_comments/:id/edit(.:format) api/v1/employer_applicant_comments#edit | |
api_v1_employer_applicant_comment GET /api/v1/employer_applicant_comments/:id(.:format) api/v1/employer_applicant_comments#show | |
PATCH /api/v1/employer_applicant_comments/:id(.:format) api/v1/employer_applicant_comments#update | |
PUT /api/v1/employer_applicant_comments/:id(.:format) api/v1/employer_applicant_comments#update | |