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
# file should export: | |
# functions = [f1, f2, ..., fn] functions to stress test (maybe the first will be the naive implementation) | |
# gen_params() - returns a list or tuple of function parameters to test the functions with | |
# in main file use if __name__=="__main__" for standard IO code so that you can submit it for grading | |
import sys | |
from time import time | |
import FILE as runner # import your filename here | |
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 sh | |
# Link good as of May 2020 | |
# Download lists, unpack and filter, write to stdout | |
curl -s -A 'Mozilla/5.0 (X11; Linux x86_64; rv:77.0) Gecko/20100101 Firefox/77.0' https://www.iblocklist.com/lists.php \ | |
| sed -n "s/.*value='\(http:.*\?list=.*\)'.*/\1/p" \ | |
| xargs wget -O - \ | |
| gunzip \ | |
| egrep -v '^#' |
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
{ | |
init: function(elevators, floors) { | |
// ---------------------------- | |
// INIT | |
// ---------------------------- | |
let myFloors = []; | |
initFloors(); |