Skip to content

Instantly share code, notes, and snippets.

View deependersingla's full-sized avatar

Deepender Singla deependersingla

View GitHub Profile
lastSize 25
bidPrice 328.25
bidSize 222
askPrice 328.6
askSize 50
bidSize 222
volume 531873
askPrice 328.3
askSize 5
askSize 5
{
"credential": {
"name": "Professional Risk Manager",
"description": "The Professional Risk Manager (PRM\u2122) Designation is a globally recognized, graduate-level risk management credential. The PRM Program is a series of evaluation exams, designed for the development of professional risk managers. Endorsed by leading university programs and industry firms, it is the global standard for risk management professionals.",
"template_name": "Professional Risk Manager Designation",
"recipient": {
"name": "Test Account",
"email": "test@example.com"
},
"issued_on": "2016-01-01",
payload = {
"credential":
{
"name": course_name,
"description": description,
"achievement_id": contents['course_id'] ,
"course_link": "/courses/" +contents['course_id'] + "/about",
"approve": approve,
"template_name": course_name,
"grade": grade_contents,
@deependersingla
deependersingla / truecaller.rb
Created November 25, 2015 11:21
using truecaller using script
require 'net/http'
require "json"
number = ARGV[0]
unless defined? number
raise "number not given"
end
{"credential":{"name":"Example Course","description":"This course provides an introduction to example. The recipient has proved their competency in example. They also demonstrated proficiency in example subject.","issued_on":"2015-07-03T07:10:04.306Z","achievement_id":"courseExample","template_name": "courseExample", "course_link":"http://example.com","complete":true,"approve":true,"learning_outcomes":["java","ruby","critical thinking","differential equations"],"evidence_items":[{"description":"Video Example","url":"https://www.youtube.com/watch?v=O-MfrT0wvMg","category":"video"},{"description":"Course Transcript","string_object":"[{\"category\":\"Homework\",\"percent\":95},{\"category\":\"Homework\",\"percent\":87},{\"category\":\"Homework\",\"percent\":70},{\"category\":\"Homework\",\"percent\":89},{\"category\":\"Exam\",\"percent\":92}]","category":"transcript"},{"description":"Final Grade","string_object":"89","category":"grade"}], "recipient":{"name":"John Doe","email":"deepender@accredible.com"},"refere
result_date value company_code_id field_id
2007-12-31 3.00 11 7
2008-03-31 4.00 11 7
2008-06-30 1.00 11 7
2008-09-30 0.00 11 7
2008-12-31 3.00 11 7
2009-03-31 4.00 11 7
2009-06-30 1.00 11 13
2009-09-30 2.00 11 13
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2014-10-24 11:56:01,634 INFO 30453 [dd.dogapi] dog_stats_api.py:66 - Initializing dog api to use statsd: localhost, 8125
Fetching enrolled students for edX/DemoX/Demo_course
Traceback (most recent call last):
File "manage.py", line 90, in <module>
startup = importlib.import_module(edx_args.startup)
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
File "/edx/app/edxapp/edx-platform/lms/startup.py", line 5, in <module>
from django.conf import settings
ImportError: No module named django.conf