This file contains hidden or 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
# Run with Python 3 | |
import json | |
import requests | |
# 1. Get your keys at https://stepic.org/oauth2/applications/ (client type = confidential, authorization grant type = client credentials) | |
client_id = ... | |
client_secret = ... | |
# 2. Get a token |
This file contains hidden or 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
# Run with Python 3 | |
import json | |
import requests | |
# 1. Get your keys at https://stepic.org/oauth2/applications/ (client type = confidential, authorization grant type = client credentials) | |
client_id = ... | |
client_secret = ... | |
# 2. Get a token |
This file contains hidden or 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
## | |
## begin of Fullscreen + History API fix based on http://stackoverflow.com/a/21963459/92396 | |
## | |
fixed_location = null | |
class Em.FixedHistoryLocation extends Em.HistoryLocation | |
implementation: 'history-fullscreen' | |
pathQueue = [] |