Skip to content

Instantly share code, notes, and snippets.

View deependersingla's full-sized avatar

Deepender Singla deependersingla

View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
{"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
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,
pry(main)> f = Foo::Bar.new
=> #<Foo::Bar:0x000000030204d8>
[3] pry(main)> $ f.[]
From: (pry) @ line 3:
Owner: Foo::Bar
Visibility: public
Number of lines: 3
def [](key)
Test:
[2] pry(main)> f = Foo::Bar.new
=> #<Foo::Bar:0x00000002f105e8>
[3] pry(main)> $ f.[]
From: (pry) @ line 3:
Owner: Foo::Bar
Visibility: public
Number of lines: 3
[2] pry(main)> f = Foo::Bar.new
=> #<Foo::Bar:0x000000032174a8>
[3] pry(main)> $ f.[]
From: (pry) @ line 3:
Owner: Foo::Bar
Visibility: public
Number of lines: 3
def [](key)
it 'should take care of corner cases like mongo[] e.g Foo::Bar.new[]- issue 998' do
klass = Class.new { def []; :hello; end }
meth = Pry::Method.from_str("klass.new[]", Pry.binding_for(binding))
meth.name.should == "[]"
end
[3] pry(main)> reload-code self
/home/deepender/pry/lib/pry/core_extensions.rb:7: warning: already initialized constant Pry::BINDING_METHOD_IMPL
/home/deepender/pry/lib/pry/core_extensions.rb:7: warning: previous definition of BINDING_METHOD_IMPL was here
self was reloaded!
[4] pry(main)> reload-code
/home/deepender/pry/lib/pry/core_extensions.rb:7: warning: already initialized constant Pry::BINDING_METHOD_IMPL
/home/deepender/pry/lib/pry/core_extensions.rb:7: warning: previous definition of BINDING_METHOD_IMPL was here
self was reloaded!
deepender@deepender-Vostro-1450:~/niveshi$ dbundle --verbose
Fetching gem metadata from https://rubygems.org/..........
Fetching additional metadata from https://rubygems.org/..
Resolving dependencies...
Using rake 10.1.0
Using i18n 0.6.5
Using multi_json 1.8.1
Using activesupport 3.2.12
Using builder 3.0.4
Using activemodel 3.2.12