pip install -e git+https://github.com/vikranth22446/cookiecutter@update-config#egg=cookiecutter
The fork branch extends cookiecutter to include:
- custom prompt
- description
- prompt_user
from mip import * | |
import networkx as nx | |
from dataclasses import dataclass | |
def solve(graph, start_node, end_node): | |
m = Model(sense=MINIMIZE) | |
total_flow = len(graph.nodes()) - 1 | |
path_taken = {} | |
flow_constraints = {} |
# Gurobi installation on server with non academic domain for academic purposes | |
# Used for cs170 project | |
# Run on Ubuntu 19.10 | |
sudo apt-get update | |
sudo apt-get install python3 python3-pip virtualenv | |
wget https://packages.gurobi.com/9.0/gurobi9.0.0_linux64.tar.gz | |
tar xzvf gurobi9.0.0_linux64.tar.gz | |
# now run part 2 | |
# get key at https://www.gurobi.com/downloads/end-user-license-agreement-academic/ |
# Instructions: pip install selenium requests & brew install geckodriver. | |
import requests | |
from selenium import webdriver | |
tinyurl = "INSERT_EXTENSION" | |
resp = requests.get("http://tinyurl.com/{}".format(tinyurl)) | |
# use chrome via driver = webdriver.Chrome() | |
driver = webdriver.Firefox() | |
driver.get(resp.url) | |
full_name = "INSERT_FULL_NAME" |
/** | |
- Run via pasting into inspect element in the console tab on the Bio Progress Report. | |
- Check the CSV for a SUM Function, and click the function button. | |
**/ | |
if (document.title.match(/Progress/g) != null) { | |
function generateBioCSV() { | |
var csv_data = "Assignment Type, Title, Your Score :(, Total Score :), SUM(C:C), SUM(D:D), SUM(C:C)/SUM(D:D) \n" | |
$('td.home_left tr').each(function() { | |
var $grade = $(this).find('td:nth-child(5):not(th)'); | |
$grade = $grade.prop('outerHTML') |
I hereby claim:
To claim this, I am signing this object: