Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 pandas as pd | |
df = pd.util.testing.makeDataFrame() |
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
c.InteractiveShellApp.exec_lines = [ | |
"import numpy as np", | |
"import pandas as pd" | |
] | |
c.TerminalInteractiveShell.color_info = True | |
c.TerminalInteractiveShell.colors = 'NoColor' | |
c.TerminalInteractiveShell.highlight_matching_brackets = True | |
c.TerminalInteractiveShell.highlighting_style = "dracula" |
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
repos: | |
- repo: https://github.com/pre-commit/pre-commit-hooks | |
rev: v4.5.0 | |
hooks: | |
- id: check-yaml | |
exclude: mkdocs.yml | |
- id: check-toml | |
- id: check-json | |
- id: check-symlinks | |
- id: end-of-file-fixer |
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
alias df 'df -m' | |
alias j jobs | |
alias l ls | |
alias ll 'ls -la' | |
alias ls 'ls -FG' | |
alias su 'su -m' |
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
def case_1() -> None: | |
"""Case 1: regular integer incrementation""" | |
for _ in range(10): | |
i = i + 1 | |
print(i) | |
def case_2() -> None: | |
"""Case 2: integer incrementation with division""" | |
i: float = 1.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
import argparse | |
from pathlib import Path | |
def merge_textfiles_files(directory, output_file, file_format): | |
with open(output_file, 'w') as outfile: | |
for file in sorted(Path(directory).rglob(f'*.{file_format}')): | |
with open(file, 'r') as infile: | |
outfile.write(infile.read()) | |
outfile.write("\n\n") |