Good for Open Source/Multi-contributor projects
- Overview
- Step Details
- Important Details/Warnings
- Upstream: The original, organization-based repo (e.g. fsu-acm/contest-suite).
| def select(left, right): | |
| """Choose the minimum front from left and right, but handle empty lists.""" | |
| return left.pop(0) if (len(left) > 0 and len(right) is 0) or (len(left) > 0 and left[0] < right[0]) else right.pop(0) | |
| def merge(left, right): | |
| """Conquer: Merge together the selected (min) front of left and right.""" | |
| return [select(left,right) for i in range((len(left) + len(right)))] | |
| def sort(l): | |
| """Divide: Recursive call to split input list into managable sublists.""" |
| # If you come from bash you might have to change your $PATH. | |
| # export PATH=$HOME/bin:/usr/local/bin:$PATH | |
| # Path to your oh-my-zsh installation. | |
| export ZSH=/Users/andrew/.oh-my-zsh | |
| # Set name of the theme to load. Optionally, if you set this to "random" | |
| # it'll load a random theme each time that oh-my-zsh is loaded. | |
| # See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes | |
| ZSH_THEME="materialshell-oceanic" |
| module.exports = { | |
| config: { | |
| // default font size in pixels for all tabs | |
| fontSize: 12, | |
| // font family with optional fallbacks | |
| fontFamily: 'Menlo, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace', | |
| // terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk) | |
| cursorColor: 'rgba(248,28,229,0.8)', |
| nginx.1 | 162.243.44.174 172.17.0.1 - - [07/Sep/2017:23:01:58 +0000] "HEAD / HTTP/1.0" 503 0 "-" "Mozilla/5.0 Jorgee" | |
| nginx.1 | 162.243.44.174 172.17.0.1 - - [07/Sep/2017:23:14:56 +0000] "HEAD /mysql/admin/ HTTP/1.0" 503 0 "-" "Mozilla/5.0 Jorgee" | |
| nginx.1 | 162.243.44.174 172.17.0.1 - - [07/Sep/2017:23:14:56 +0000] "HEAD /mysql/dbadmin/ HTTP/1.0" 503 0 "-" "Mozilla/5.0 Jorgee" | |
| nginx.1 | 162.243.44.174 172.17.0.1 - - [07/Sep/2017:23:14:56 +0000] "HEAD /mysql/sqlmanager/ HTTP/1.0" 503 0 "-" "Mozilla/5.0 Jorgee" | |
| nginx.1 | 162.243.44.174 172.17.0.1 - - [07/Sep/2017:23:14:56 +0000] "HEAD /mysql/mysqlmanager/ HTTP/1.0" 503 0 "-" "Mozilla/5.0 Jorgee" | |
| nginx.1 | 162.243.44.174 172.17.0.1 - - [07/Sep/2017:23:14:56 +0000] "HEAD /phpmyadmin/ HTTP/1.0" 503 0 "-" "Mozilla/5.0 Jorgee" | |
| nginx.1 | 162.243.44.174 172.17.0.1 - - [07/Sep/2017:23:14:56 +0000] "HEAD /phpMyadmin/ HTTP/1.0" 503 0 "-" "Mozilla/5.0 Jorgee" | |
| nginx.1 | 162.243.44.174 172.17.0.1 - - [07/Sep/2017:23:14:57 +0000] "HEAD /phpMyAdmin/ HT |
| from pynput.keyboard import Key, Controller | |
| import time | |
| keyboard = Controller() | |
| # # Press and release space | |
| # keyboard.press(Key.space) | |
| # keyboard.release(Key.space) | |
| # |
| # | |
| # hackfsu_com.views.generic.api_multi_view | |
| # | |
| class ApiMultiView(ApiView): | |
| http_method_names = [] # This must be overridden for every multiview | |
| http_delegates = {} # Dictionary of delegate ApiView objects, key is the method | |
| def work(self, request: HttpRequest, req: dict, res: dict): | |
| PROMPT='%m %{$fg[green]%}%c%{$fg_bold[blue]%}$(git_prompt_info)%{$reset_color%} ' | |
| ZSH_THEME_GIT_PROMPT_PREFIX=" (" | |
| ZSH_THEME_GIT_PROMPT_SUFFIX=")" | |
| ZSH_THEME_GIT_PROMPT_DIRTY=" ✗" | |
| ZSH_THEME_GIT_PROMPT_CLEAN=" ✔" |
| """ | |
| Implementation is inspired by this article: | |
| https://dev.to/mxl/dijkstras-algorithm-in-python-algorithms-for-beginners-dkc | |
| Graph is from this video: | |
| https://www.youtube.com/watch?v=gdmfOwyQlcI | |
| """ | |
| import math |