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
from time import sleep | |
from typing import List | |
def miracle_sort(items: List, reverse: bool = False) -> List: | |
""" Sorts a list, powered by miracles | |
Args: | |
items (List): list of items to be sorted |
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
from typing import List | |
def stalin_sort(items: List, reverse: bool = False) -> List: | |
""" Sorts a list, some items may or may not be missing. | |
"A single death is a tragedy; a million deaths is a statistic." | |
- Joseph Stalin | |
Args: |
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
" sensible.vim - Defaults everyone can agree on | |
" Maintainer: Tim Pope <http://tpo.pe/> | |
" Version: 1.2 | |
if exists('g:loaded_sensible') || &compatible | |
finish | |
else | |
let g:loaded_sensible = 'yes' | |
endif |
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
name: complex_env | |
channels: | |
- defaults | |
dependencies: | |
- pip=20.2.2 | |
- python=3.8.5 | |
- pip: | |
- numpy==1.19.1 | |
- pandas==1.1.1 | |
- tensorflow==2.3.0 |
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
name: simple_env | |
dependencies: | |
- python | |
- pip: | |
- flask | |
- numpy | |
- pandas | |
- pylint | |
- redis | |
- requests |
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
name: complex_env | |
channels: | |
- defaults | |
dependencies: | |
- pip=20.2.2 | |
- python=3.8.5 | |
- pip: | |
- flask==1.1.2 | |
- numpy==1.19.1 | |
- pandas==1.1.1 |
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
#!/bin/bash | |
# homebrew | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" | |
# zsh | |
brew install zsh zsh-completions | |
# oh-my-zsh | |
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" |
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
import sys | |
lines = [] | |
for line in sys.stdin: | |
lines.append(line.rstrip('\n')) | |
outputs = [] | |
for line in lines: | |
# process line |
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
import argparse | |
parser = argparse.ArgumentParser() | |
parser.add_argument('-i','--input', type=str, help='input filepath', required=True) | |
parser.add_argument('-o','--output', type=str, help='output filepath', required=True) | |
args = vars(parser.parse_args()) | |
lines = [] | |
with open(args['input']) as ff: |
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
lines = [] | |
with open('data/input01.txt') as ff: | |
lines = [line.rstrip('\n') for line in ff] | |
outputs = [] | |
for line in lines: | |
# process line | |
outputs.append(line) | |
with open('out/output01.txt') as ff: |
NewerOlder