This file contains 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
{ | |
"product_instance": { }, | |
"service_offered": [ ], | |
"base_url_choice": [ ], | |
"message": [ | |
{ | |
"message_type": "basic-lti-launch-request", | |
"path": “https://acme.example.com/lti/launch”, | |
"parameter": [ | |
{ |
This file contains 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
### Keybase proof | |
I hereby claim: | |
* I am rivernate on github. | |
* I am rivernate (https://keybase.io/rivernate) on keybase. | |
* I have a public key whose fingerprint is 1C9E AE5E 2013 298C 42C8 0E18 FCF4 6130 1D92 4674 | |
To claim this, I am signing this object: |
This file contains 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
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
# Packages # |
This file contains 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
/** | |
* Notifications Form | |
*/ | |
.cw_email_list{ | |
width:175px; | |
border: 1px solid; | |
border-radius:5px 5px; | |
} |
This file contains 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
# do not create a queue: section for your test environment | |
test: | |
adapter: postgresql | |
encoding: utf8 | |
database: canvas_test | |
host: localhost | |
username: canvas | |
password: canvas | |
timeout: 5000 |
This file contains 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
require File.expand_path(File.dirname(__FILE__) + '../../../account_reports/spec_canvas/reports_helper') | |
describe "Auburn custom reports" do | |
it "should run course status report" do | |
Notification.find_or_create_by_name("Report Generated") | |
Notification.find_or_create_by_name("Report Generation Failed") | |
@account = Account.default | |
sub_account = Account.create(:parent_account => @account, :name => 'English') |
This file contains 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
module Canvas::AccountReports | |
class Auburn | |
include Api | |
include Canvas::ReportHelpers::DateHelper | |
def self.course_status_csv(account_report) | |
Auburn.new(account_report).course_status | |
end | |
def initialize(account_report) |
This file contains 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
require 'httparty' | |
require 'httmultiparty' | |
access_token = "" | |
domain = "" | |
course_id = "" | |
assignment_id = "" | |
file_path = '' | |
api_endpoint = "#{domain}/api/v1/courses/#{course_id}/assignments/#{assignment_id}/submissions/self/files" | |
file = File.new(file_path) |
This file contains 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
require 'simple_oauth' | |
SimpleOAuth::Header::ATTRIBUTE_KEYS << :body_hash unless SimpleOAuth::Header::ATTRIBUTE_KEYS.include? :body_hash | |
def self.validate(header, url, secret) | |
o = SimpleOAuth::Header.new(:post, url, {}, SimpleOAuth::Header.parse(header).merge({consumer_secret: secret})) | |
puts o.send(:signature) | |
puts o.send(:signature_base) | |
#puts o.send(:secret) | |
puts o.valid?() | |
o |
This file contains 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
Canvas File Upload Example |
OlderNewer