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 cols[1] == 12 | |
| ------------------------- | |
| ------------------------- | |
| ------------------------- | |
| ------------------------- | |
| ------------------------- | |
| ------------------------- | |
| end | |
| this fails when the cols[1] is reading from csv . its considering as string |
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
| SELECT et.id | |
| FROM examtypes et | |
| LEFT JOIN categoryexams ce ON et.id = ce.examtype_id | |
| LEFT JOIN categoryexamusers ceu ON ce.id = ceu.categoryexam_id | |
| LEFT JOIN categoryusers cu ON cu.id = ceu.categoryuser_id | |
| LEFT JOIN users u ON u.id = cu.user_id | |
| WHERE u.id =71 |
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
| Ruby on rails | |
| -------------------------- | |
| This line is a record in the csv file. | |
| 4,3,"_ is my _, _d indians are_ _ .",Hint 4,10,1,0,3,"",India,Country,All,sad,,, | |
| we want to check cols[8] is nil, i.e column before India. |
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
| In our project we are documenting unit test case manually. | |
| And in the previous sprint we implemented a functionality like | |
| Excel/ods/csv -> files | |
| Question importing | |
| Such as | |
| 1.true/false | |
| 2.yes/no |
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
| Scrum involves: | |
| Initial appointment of a project manager called the "scrum master." | |
| Definition and prioritization of tasks to be done. | |
| Planning sessions for each task. | |
| Daily meetings among teams. | |
| Identification and evaluation of potential project risks and process pitfalls. | |
| Execution of projects in brief, high-intensity, frequent work sessions. | |
| Reviews of progress and evaluations of completed projects. | |
| Openness to constructive criticism and ideas for improvement. |
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
| we have a "marketinginstance" & "our application ABC" | |
| if any one purchase the application ABC from the marketing instance. automatically want to setup the rails application for them. | |
| A - > purchase application | |
| he choose a domain "railz" | |
| then the task is that |
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
| chmod +x myinstance.sh; | |
| cp ../vx/ ../instance/myinstance -r; | |
| mv myinstance.yml ../instance/myinstance/config/ -r; | |
| mv myinstance_sidekiq.yml ../instance/myinstance/config/ -r; | |
| sudo mv myinstance.yml /etc/apache2/sites-available/myinstance-site; | |
| mv myinstance.rb ../instance/myinstance/; | |
| chown group pitadmin:pitadmin../instance/myinstance/ -r | |
| cd ../instance/myinstance/ | |
| bundle install&; | |
| rake db:create; |
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
| in a model popup receiving a variable as question type id as '$('#subquestion').val()' based on this value the model popup content have to create | |
| <%@lg = Language.all %> | |
| <% @qs_type = Question.find( javascript value ).question_type %> | |
| <% @lg.each do |n| %> | |
| if ( @qs_type == 11) | |
| matchingtype question two textbox | |
| <%= text_area %> | |
| <%= text_area %> | |
| elsif @qs_type == 3 | |
| mutiple choice one textbox. |
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
| How can specify this ".sort_by{ |o| o.reviews.sum(:rating) }" in the lambda section | |
| scope :sort_by_recommended, lambda{ } | |
| Just like this : | |
| scope :sort_by_recommended, lambda{ .sort_by{ |o| o.reviews.sum(:rating) } } |
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 is a command line application that allows you to scrape twitter! | |
| """ | |
| import collections | |
| import json | |
| from argparse import ArgumentParser | |
| from datetime import datetime | |
| from os.path import isfile | |
| from json import dump | |
| import logging |
OlderNewer