Skip to content

Instantly share code, notes, and snippets.

View errakeshpd's full-sized avatar
🎯
Focusing

Rakesh.P.D errakeshpd

🎯
Focusing
View GitHub Profile
[ ] WHEN USERS ?
[] when we click on single user profile
[ ] when we click on profile informations as a user
[ ] where i can see profile visitors ? as a user
[ ] where i can see profile followers ?
[ ] where i can see my skills with creation form ,
[ ] how other user will see this block ?
[ ] how can i update social media links and
[ ] how i can see icons ?
@errakeshpd
errakeshpd / code
Last active January 16, 2017 06:44
code
"""
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
@errakeshpd
errakeshpd / gist:83c6fc29f22fe73251d4
Last active August 29, 2015 14:27
How can specify this ruby code in the lambda section
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) } }
@errakeshpd
errakeshpd / gist:0f2bd2eb5064b5255fa7
Created July 7, 2015 04:32
Is there any way to create text fields based on the javascript variable
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.
@errakeshpd
errakeshpd / gist:1d7cd337cc4130868cf0
Last active August 29, 2015 14:13
command in the scripts
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;
@errakeshpd
errakeshpd / gist:b884d43b32c8d05c49ef
Created January 20, 2015 05:14
automatically setup the production instance for the customer if he press a button of a rails application
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
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.
@errakeshpd
errakeshpd / gist:ae92a837baa51d53aaa2
Created December 30, 2014 04:52
BDD - How want to approach the below scenarios ?
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
@errakeshpd
errakeshpd / gist:236602e118d1803babd6
Last active August 29, 2015 14:12
check csv column is nill.
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.
@errakeshpd
errakeshpd / gist:5f2c7e247cd3a1370543
Last active August 29, 2015 14:11
how to write this in rails ORM method ?
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