Skip to content

Instantly share code, notes, and snippets.

View kyogesh's full-sized avatar

Yogesh Kumar kyogesh

  • EPAM India
  • Hyderabad
View GitHub Profile
@kyogesh
kyogesh / .json
Created September 2, 2015 12:24
[{"bin":"0-2","grad_percentage_total":0,"grad_percentage_other_college":0,"n_total_students":0,"n_grad_this_college":0,"n_grad_this_major":0,"grad_percentage_this_major":0,"n_grad_other_college":0,"bin_sort_order":0,"n_grad_institution_wide":0,"n_grad_total":0,"grad_percentage_diff_between_total_and_institution":0,"grad_percentage_institution_wide":0,"grad_percentage_this_college":0},{"bin":"3-5","grad_percentage_total":0,"grad_percentage_other_college":0,"n_total_students":0,"n_grad_this_college":0,"n_grad_this_major":0,"grad_percentage_this_major":0,"n_grad_other_college":0,"bin_sort_order":1,"n_grad_institution_wide":5,"n_grad_total":0,"grad_percentage_diff_between_total_and_institution":0,"grad_percentage_institution_wide":0,"grad_percentage_this_college":0},{"bin":"6-8","grad_percentage_total":0,"grad_percentage_other_college":0,"n_total_students":0,"n_grad_this_college":0,"n_grad_this_major":0,"grad_percentage_this_major":0,"n_grad_other_college":0,"bin_sort_order":2,"n_grad_institution_wide":12,"n_grad
n [5]: _request_pdapi_data(**req_dict)
************** request **************
Sending request to http://asheablapp-p01.advisory.com/prod/models/pdapi/
{"taken_in_major": false, "course_cd": ["ENGL1101"], "institution_id": "gsu_9990", "request_type": "grades", "grad_in_major": false, "chart_type": "grad_rate_by_grade"}
Out[5]:
{u'result': {u'final_grade': [u'A+',
u'A',
u'A-',
In [3]: req_dict = {
'institution_id': '9990',
'course_cd': ['ENGL1101'],
'request_type': 'grades',
'chart_type': 'grad_rate_by_grade'
}
In [4]: _request_pdapi_data(**req_dict)
************** request **************
Sending request to http://asheablapp-p01.advisory.com/prod/models/pdapi/
bower utility-interface#1.1.4 ECMDERR Failed to execute "git ls-remote --tags --heads ssh://git@repo.advisory.com:7999/eabui/utility-interface.git", exit code of #128 Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
Additional error details:
Permission denied (publickey).
fatal: Could not read from remote repository.
bower utility-enumeration#1.0.1
ECMDERR Failed to execute "git ls-remote --tags --heads ssh://git@repo.advisory.com:7999/eabui/utility-enumeration.git",
exit code of #128 Host key verification failed. fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
@kyogesh
kyogesh / gist:1dfcc963e93bd2d94f9f
Created August 28, 2015 11:07
bower install thows error.
bower tool-build-application#0.4.2 ECMDERR Failed to execute "git ls-remote --tags --heads ssh://git@repo.advisory.com:7999/eabui/tool-build-application.git", exit code of #128 ssh: Could not resolve hostname repo.advisory.com: nodename nor servname provided, or not known fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
Additional error details:
ssh: Could not resolve hostname repo.advisory.com: nodename nor servname provided, or not known
fatal: Could not read from remote repository.
npm ERR! Attempt to unlock /Users/yogeshkumar/Agiliq/Work/workbooks/www/node_modules/gulp-uncss, which hasn't been locked
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm WARN locking Error: EACCES, open '/Users/yogeshkumar/.npm/_locks/gulp-csso-a0f513fc9662b643.lock'
npm WARN locking at Error (native)
npm WARN locking /Users/yogeshkumar/.npm/_locks/gulp-csso-a0f513fc9662b643.lock failed { [Error: EACCES, open '/Users/yogeshkumar/.npm/_locks/gulp-csso-a0f513fc9662b643.lock']
npm WARN locking errno: -13,
npm WARN locking code: 'EACCES',
npm WARN locking path: '/Users/yogeshkumar/.npm/_locks/gulp-csso-a0f513fc9662b643.lock' }
{
"error": "Error in model.predict function\nError in value[[3L]](cond): [ERROR] Service failed: Error in postgresqlExecStatement(conn, statement, ...): RS-DBI driver: (could not Retrieve the result : ERROR: relation \"pdapi_mv_std_course_term\" does not exist\nLINE 1: SELECT * FROM (SELECT * FROM pdapi_mv_std_course_term) AS \"_...\n ^\n)\n\n\nmodel.predict <- function (params) \n{\n flog.info(\"Executing request: %s, %s\", params$request_type, \n params$institution_id)\n con <- max_con_src_postgres(host = cf$dbhost, user = cf$dbuser, \n password = cf$dbpassword, dbname = cf$dbname)\n dbGetQuery(con$con, sprintf(\"SET search_path TO %s\", params$institution_id))\n tryCatch(switch(params$request_type, grades = serv_grades(params, \n con), credit_buckets = serv_credit_buckets(params, con), \n student_groups = serv_stu_groups(params, con), courses = serv_courses(params, \n con), majors = serv_major(params, con), term_list
Traceback (most recent call last):
File "/Users/yogeshkumar/.virtualenvs/pySparta/lib/python2.7/site-packages/rq/worker.py", line 558, in perform_job
rv = job.perform()
File "/Users/yogeshkumar/.virtualenvs/pySparta/lib/python2.7/site-packages/rq/job.py", line 495, in perform
self._result = self.func(*self.args, **self.kwargs)
File "/Users/yogeshkumar/.virtualenvs/pySparta/lib/python2.7/site-packages/rq/job.py", line 206, in func
return import_attribute(self.func_name)
File "/Users/yogeshkumar/.virtualenvs/pySparta/lib/python2.7/site-packages/rq/utils.py", line 150, in import_attribute
module = importlib.import_module(module_name)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/importlib/__init__.py", line 37, in import_module
@kyogesh
kyogesh / gist:b0eb226a361845b40668
Created July 28, 2015 07:04
student_id ='481105362'
student_id | term_id |
------------+---------+
481105362 | 199803 |
481105362 | 199808 |
481105362 | 199905 |
481105362 | 199908 |
481105362 | 200005 |