diff --git a/.gitattributes b/.gitattributes index ad65e23..dd0b37a 100644 --- a/.gitattributes +++ b/.gitattributes @@ -13,194 +13,10 @@ ## Handle line endings automatically for files detected as ## text and leave all files detected as binary untouched. ## This will handle all files NOT defined below. -* text=auto - -# Source code -*.bash text eol=lf -*.bat text eol=crlf -*.cmd text eol=crlf -*.coffee text -*.css text -*.htm text diff=html -*.html text diff=html -*.inc text -*.ini text -*.js text -*.json text -*.jsx text -*.less text -*.ls text -*.map text -diff -*.od text -*.onlydata text -*.php text diff=php -*.pl text -*.ps1 text eol=crlf -*.py text diff=python -*.rb text diff=ruby -*.sass text -*.scm text -*.scss text diff=css -*.sh text eol=lf -*.sql text -*.styl text -*.tag text -*.ts text -*.tsx text -*.xml text -*.xhtml text diff=html - -# Docker -Dockerfile text - -# Documentation -*.ipynb text -*.markdown text -*.md text -*.mdwn text -*.mdown text -*.mkd text -*.mkdn text -*.mdtxt text -*.mdtext text -*.txt text -AUTHORS text -CHANGELOG text -CHANGES text -CONTRIBUTING text -COPYING text -copyright text -*COPYRIGHT* text -INSTALL text -license text -LICENSE text -NEWS text -readme text -*README* text -TODO text - -# Templates -*.dot text -*.ejs text -*.haml text -*.handlebars text -*.hbs text -*.hbt text -*.jade text -*.latte text -*.mustache text -*.njk text -*.phtml text -*.tmpl text -*.tpl text -*.twig text -*.vue text - -# Configs -*.cnf text -*.conf text -*.config text -.editorconfig text -.env text -.gitattributes text -.gitconfig text -.htaccess text -*.lock text -diff -package-lock.json text -diff -*.toml text -*.yaml text -*.yml text -browserslist text -Makefile text -makefile text - -# Heroku -Procfile text - -# Graphics -*.ai binary -*.bmp binary -*.eps binary -*.gif binary -*.gifv binary -*.ico binary -*.jng binary -*.jp2 binary -*.jpg binary -*.jpeg binary -*.jpx binary -*.jxr binary -*.pdf binary -*.png binary -*.psb binary -*.psd binary -# SVG treated as an asset (binary) by default. -*.svg text -# If you want to treat it as binary, -# use the following line instead. -# *.svg binary -*.svgz binary -*.tif binary -*.tiff binary -*.wbmp binary -*.webp binary - -# Audio -*.kar binary -*.m4a binary -*.mid binary -*.midi binary -*.mp3 binary -*.ogg binary -*.ra binary - -# Video -*.3gpp binary -*.3gp binary -*.as binary -*.asf binary -*.asx binary -*.fla binary -*.flv binary -*.m4v binary -*.mng binary -*.mov binary -*.mp4 binary -*.mpeg binary -*.mpg binary -*.ogv binary -*.swc binary -*.swf binary -*.webm binary - -# Archives -*.7z binary -*.gz binary -*.jar binary -*.rar binary -*.tar binary -*.zip binary - -# Fonts -*.ttf binary -*.eot binary -*.otf binary -*.woff binary -*.woff2 binary - -# Executables -*.exe binary -*.pyc binary - -# RC files (like .babelrc or .eslintrc) -*.*rc text - -# Ignore files (like .npmignore or .gitignore) -*.*ignore text - # SCSS -*.*css binary -*.scss binary -assets/css/** binary +*.*css linguist-vendored +*.scss linguist-vendored +assets/css/** linguist-vendored +Dockerfile text diff --git a/MendezResume.pdf b/MendezResume.pdf index 74e5b28..6086f63 100644 Binary files a/MendezResume.pdf and b/MendezResume.pdf differ diff --git a/_posts/2022-02-20-making-this-site.md b/_posts/2022-02-20-making-this-site.md index e7f4668..06b09f1 100644 --- a/_posts/2022-02-20-making-this-site.md +++ b/_posts/2022-02-20-making-this-site.md @@ -4,11 +4,9 @@ author: paulipotter tags: Github-Pages --- -I've wanted to have a personal website *for so long* now! It's almost embarrassing that, as a programmer, I haven't had *some* sort of website. All summer, I pondered between +I've wanted to have a personal website *for so long* now! It's almost embarrassing that, as a programmer, I haven't had *some* sort of website. All summer, I pondered between *flexing my Python skills* and creating a Flask website or rely on a simpler, quicker version that gets me the desired result without hassle. - *flexing my Python skills* and creating a Flask website -or rely on a simpler, quicker version that gets me the desired result without hassle. -Although creating a Flask website is a fantastic idea, it may not be the most time-efficient decision, and boy, it takes time. I even created (and almost finished!) a Flask+Bootstrap site with my own color palette and customized theme. It wasn't until I almost reached the final stages (ironically, that meant setting up the blog's database and CSS) that it hit me. Worst of all is that I *already had* this website up! It just wasn't being used to its fullest potential. +Although creating a Flask website is a fantastic idea, it may not be the most time-efficient decision, and boy, it takes time. I even created (and almost finished!) a [Flask+Bootstrap site](https://github.com/paulipotter/Flask-Website/tree/main) with *my own color palette and customized theme.* It wasn't until I almost reached the final stages (ironically, that meant setting up the blog's database and CSS) that it hit me. Worst of all is that I *already had* this website up! It just wasn't being used to its fullest potential. ### A non-comprehensive list of reasons why I ended up choosing GitHub Pages: - Free hosting service @@ -18,6 +16,4 @@ Although creating a Flask website is a fantastic idea, it may not be the most ti - Overall quick code-to-deploy turnaround ### Inspiration and acknowledgments - Theme: [Minimalist](https://www.bodunhu.com/minimalist/), [Etch](https://lukasjoswiak.github.io/etch/) -- Cool icons from [font-awesome](https://fontawesome.com/icons) - - +- Cool icons from [font-awesome](https://fontawesome.com/icons) \ No newline at end of file diff --git a/_posts/2022-07-15-welcome.md b/_posts/2022-07-15-welcome.md index 2becfb9..420f24e 100644 --- a/_posts/2022-07-15-welcome.md +++ b/_posts/2022-07-15-welcome.md @@ -10,7 +10,8 @@ Almost a year ago, I decided it was time to refresh my Python coding skills. Aft Truth is, I didn't start it until almost 6 months after purchasing the course 😬 but when I did, I committed to work on it consistently on weekdays and I actually stuck to it! _Who would have believed!_ Fast forward to today, I'm on day 80-something working on the final portfolio projects as time allows. -You can check out my progress in a [github repo I created](https://github.com/paulipotter/Python-100-Days-of-Code). +You can check out my progress in a [github repo I created](https://github.com/paulipotter/Python-100-Days-of-Code). + ``` # README.md contents -> for day in 100_days_of_python_code: diff --git a/_posts/2023-5-15-misc-python-scripts.md b/_posts/2023-5-15-misc-python-scripts.md new file mode 100644 index 0000000..6f8b095 --- /dev/null +++ b/_posts/2023-5-15-misc-python-scripts.md @@ -0,0 +1,18 @@ +--- +layout: post +author: paulipotter +tags: Python +--- + +Introducing Python-Projects: A Collection of Python Snippets + +In the quest to expand my coding skills and showcase my expertise, I have created a repository called python-projects on GitHub. This repository houses various small Python snippets that I have worked on over time. + +Let's take a closer look at some of the projects featured in this repository: + +| Name | Description | URL | +|---|---|---| +| Binary Trees | Various binary tree sorting and trimming activities | [🔗](https://github.com/paulipotter/python-projects/tree/main/binary-tree) | +| Implementing a data structure | Write a set of procedures that create and manipulate instances of said structure. | [🔗](https://github.com/paulipotter/python-projects/tree/main/implement-data-structure) | +| Pascal Triangle | Given an integer numRows, return the first numRows of Pascal's triangle. | [🔗](https://github.com/paulipotter/python-projects/tree/main/pascal-triangle) | +| Two Sum | Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target. | [🔗](https://github.com/paulipotter/python-projects/tree/main/two-sum) | \ No newline at end of file diff --git a/_posts/2023-5-30-python-venv-terminal-alias.md b/_posts/2023-5-30-python-venv-terminal-alias.md new file mode 100644 index 0000000..31e305a --- /dev/null +++ b/_posts/2023-5-30-python-venv-terminal-alias.md @@ -0,0 +1,28 @@ +--- +layout: post +author: paulipotter +tags: Python venv zsh +--- +Simplify Your Virtual Environment Workflow with Zsh Aliases + +Managing virtual environments is an essential part of many development workflows. However, constantly typing out the full command to activate or create a virtual environment can be time-consuming and cumbersome. Thankfully, there's a solution that can streamline your workflow in the Zsh shell. + +By adding a few lines to your `.zshrc` file, you can create custom aliases that simplify the process. Inspired by a helpful gist found at [this link](https://gist.github.com/haridas/4966347), I have created [my own version](https://gist.github.com/paulipotter/3d4fe8b17ec18faad1336fbcdcc10e66) of these aliases. At the end of your `.zshrc`, add the following: +```shell +alias activate='source .venv/bin/activate || echo "no venv available in current folder"' +alias mkenv='python3 -m venv .venv 2>/dev/null && echo "Virtual environment created." || echo "venv already exists"' +alias rmenv='rm -rf .venv && echo "venv removed." || echo "No venv available in current folder"' +``` +Make sure you restart your terminal before you test it out. + +### Usage + +| Command | Description | Longer Command | +|---|---|---| +| `mkenv` | Creates a new virtual environment | `python3 -m venv .venv` | +| `activate` | Activate your virtual environment | `source ./.venv/bin/activate`| +| `rmenv` | Removes the virtual environment if it exists. | `rm -rf .venv` | + +By simplifying the process of working with virtual environments, these aliases can save you valuable time and keystrokes. + +Give these aliases a try and experience a more efficient virtual environment workflow in your Zsh shell! \ No newline at end of file