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
def ftrain(l): | |
'''Convert an iterable to a nested list based on ordered comparison''' | |
i = iter(l) | |
tree, seen = ftrain_helper(i, i.next()) | |
# This might not be the desired behavior, but it's not terrible | |
# You could also emit a warning or an exception here | |
while(not seen is None): | |
rest_tree, seen = ftrain_helper(i, seen) | |
tree = [tree] + rest_tree | |
return tree |
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
{ | |
"axes": [], | |
"data": [ | |
{ | |
"format": { | |
"feature": "world-countries", | |
"type": "topojson" | |
}, | |
"name": "countries", | |
"transform": [ |
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
How to: | |
1. Writing good questions | |
2. Code | |
3. I added this | |
4. I also | |
a. added this |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
#!/usr/bin/env python3 | |
'''ungraded.py - extract answers to ungraded problems | |
Data is obtained from the `course_structure` and `courseware_studentmodule` | |
data, which are currently specified at the top of the file. | |
This was developed in response to a request from an instructor to obtain | |
individual student responses to ungraded questions *with 0 weight*. However, | |
upon inspection, I noted that all items had either 0 weight, or had weight |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
#!/usr/bin/bash | |
# XXX The below was made before the jupyter switch and would be nice to | |
# update! For now, you can run this *before* ever running the jupyter notebook, | |
# OR you can `rm ~/.jupyter/migrated` and move any existing `jupyter_notebook_config.py` | |
# after you run this script and it should re-import. -DJC | |
# Make it easy to set up password / encryption for IPython notebook | |
echo " |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
OlderNewer