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
| /** SCORES (RESULTS) | |
| Average rating at Oakland University: 3.12 | |
| Average difficulty at Oakland University: 3.56 | |
| Based on 123 professors and 4636 ratings in the Mathematics department. | |
| https://www.ratemyprofessors.com/search/professors/716?q=*&did=38 | |
| Average rating at Oakland Community College: 3.44 | |
| Average difficulty at Oakland Community College: 3.35 | |
| Based on 14 professors and 132 ratings in the Mathematics department. | |
| https://www.ratemyprofessors.com/search/professors/11931?q=*&did=38 |
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
| #include <bits/stdc++.h> | |
| using namespace std; | |
| int solution(vector<int> arr, int days_til_exam) { | |
| // number of chapters | |
| int n_chaps = arr.size(); | |
| // longest chapter | |
| int m = *max_element(arr.begin(), arr.end()); |
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
| defshell -bash | |
| hardstatus alwayslastline | |
| hardstatus string '%{= kw}%-w%{= BW}%50>%n %t%{= kw}%+w%<' | |
| shelltitle "" | |
| multiuser off | |
| vbell_msg "Beep!" | |
| startup_message off | |
| defscrollback 40000 | |
| #terminfo and termcap for nice 256 color terminal | |
| # allow bold colors - necessary for some reason |
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
| [[ -r "/usr/local/etc/profile.d/bash_completion.sh" ]] && . "/usr/local/etc/profile.d/bash_completion.sh" | |
| [[ -r "/usr/local/etc/bash_completion.d/python-argcomplete" ]] && . "/usr/local/etc/bash_completion.d/python-argcomplete" | |
| _ssh() | |
| { | |
| local cur prev opts | |
| COMPREPLY=() | |
| cur="${COMP_WORDS[COMP_CWORD]}" | |
| prev="${COMP_WORDS[COMP_CWORD-1]}" | |
| opts=$(grep '^Host' ~/.ssh/config ~/.ssh/config.d/* 2>/dev/null | grep -v '[?*]' | cut -d ' ' -f 2-) |
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
| class Node: | |
| def __init__(self, parent_id, id, name): | |
| self.id = id | |
| self.parent_id = parent_id | |
| self.name = name | |
| self.children = [] | |
| def printChildren(node, level=1): | |
| for c in node.children: |
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
| .headers on | |
| .mode column | |
| PRAGMA foreign_keys = 1; |
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
| #!/usr/bin/env python3.7 | |
| # -*- coding: utf-8 -*- | |
| """ | |
| Created on Tue Sep 11 13:55:12 2018 | |
| @author: shane | |
| """ | |
| import os, sys | |
| import subprocess |
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
| [ | |
| { | |
| "vendor":0, | |
| "path":[ | |
| [ | |
| -97.743, | |
| 30.284 | |
| ], | |
| [ | |
| -97.743, |
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
| #!/bin/bash | |
| # A script for updating apt-based Linux distros | |
| # ... put it in ~/.local/bin, /usr/local/bin, or anywhere in your $PATH | |
| # exit on error | |
| set -e | |
| # Function Definitions | |
| function exec_red { | |
| printf "\\n\e[1;31m%s\e[0m\\n" "$*" |