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 a test from the container (with the right module settings) | |
| DJANGO_SETTINGS_MODULE=lms.envs.test python -m pytest lms/djangoapps/instructor/tests/test_api.py -xvs |
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
| # get the files | sort by size | don't list by specific text | limit of the list | |
| git ls-tree -r -t -l --full-name HEAD | sort -n -k 4 | grep -v '.js' | tail -n 30 |
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
| const downLoadImages = (links, title = 'img') => { | |
| links.forEach((element, i) => { | |
| const a = document.createElement('a'); | |
| a.setAttribute('href', element); | |
| a.setAttribute('download', `${title}_${i}.png`); | |
| document.body.appendChild(a); | |
| a.click(); | |
| a.remove(); | |
| }); |