Skip to content

Instantly share code, notes, and snippets.

View pabloagn's full-sized avatar
♦️
Coding

Pablo Aguirre pabloagn

♦️
Coding
View GitHub Profile
@pabloagn
pabloagn / 01_sample_dataset_watches.csv
Last active March 24, 2023 18:45
Resources for Portfolio Project: Sentiment Analysis With Python
We can make this file beautiful and searchable if this error is corrected: It looks like row 6 should actually have 15 columns, instead of 14. in line 5.
marketplace,customer_id,review_id,product_id,product_parent,product_title,product_category,star_rating,helpful_votes,total_votes,vine,verified_purchase,review_headline,review_body,review_date
US,3653882,R3O9SGZBVQBV76,B00FALQ1ZC,937001370,"Invicta Women's 15150 ""Angel""",Watches,5,0,0,N,Y,Five Stars,Absolutely love this watch!,8/31/2015
US,14661224,RKH8BNC3L5DLF,B00D3RGO20,484010722,Kenneth Cole New York Women's KC4944,Watches,5,0,0,N,Y,I love thiswatch it keeps time wonderfully,I love this watch it keeps time wonderfully.,8/31/2015
US,27324930,R2HLE8WKZSU3NL,B00DKYC7TK,361166390,Ritche 22mm Black Stainless Steel,Watches,2,1,1,N,Y,Two Stars,Scratches,8/31/2015
US,7211452,R31U3UH5AZ42LL,B000EQS1JW,958035625,Citizen Men's BM8180-03E Eco-Drive,Watches,5,0,0,N,Y,Five Stars,"It works well on me. However, I found cheaper prices in other places.",8/31/2015
US,12733322,R2SV659OUJ945Y,B00A6GFD7S,765328221,Orient ER27009B Men's Symphony Automatic,Watches,4,0,0,N,Y,"Beautiful face, but cheap sounding links",Beautiful w
@pabloagn
pabloagn / 01_get_font_families.py
Last active March 11, 2023 03:41
Font families provided by tkinter and customtkinter Python libraries, with a script to export available fonts to .txt document.
from tkinter import *
from tkinter import font
from os import system
root=Tk()
fonts=list(font.families())
for font in fonts :
system(f"echo {font} >> fonts_names_list.txt")
@pabloagn
pabloagn / filenames.txt
Last active March 2, 2023 14:28
Figures used in deep dive article: polars-a-lightning-fast-dataframe-library-for-python-and-rust
<script src="https://gist.github.com/pabloagn/6833c60dc47b5bc6bda1222e89e78147.js?file=polars-1.txt"></script>
<script src="https://gist.github.com/pabloagn/6833c60dc47b5bc6bda1222e89e78147.js?file=polars-2.txt"></script>
<script src="https://gist.github.com/pabloagn/6833c60dc47b5bc6bda1222e89e78147.js?file=polars-3.txt"></script>
<script src="https://gist.github.com/pabloagn/6833c60dc47b5bc6bda1222e89e78147.js?file=polars-4.txt"></script>
<script src="https://gist.github.com/pabloagn/6833c60dc47b5bc6bda1222e89e78147.js?file=polars-5.txt"></script>
<script src="https://gist.github.com/pabloagn/6833c60dc47b5bc6bda1222e89e78147.js?file=polars-6.txt"></script>
<script src="https://gist.github.com/pabloagn/6833c60dc47b5bc6bda1222e89e78147.js?file=polars-7.txt"></script>
<script src="https://gist.github.com/pabloagn/6833c60dc47b5bc6bda1222e89e78147.js?file=polars-8.txt"></script>
<script src="https://gist.github.com/pabloagn/6833c60dc47b5bc6bda1222e89e78147.js?file=polars-9.txt"></script>
<script src="https://gist
@pabloagn
pabloagn / normal-distribution.tex
Last active February 24, 2023 00:52
A collection of gists used in blog post.
\begin{tikzpicture}
\begin{axis}[no markers, domain=0:10, samples=100,
axis lines*=left, xlabel=Test, ylabel=axis $y$,
height=6cm, width=10cm,
xticklabels={Test A,Test B,Test C,Test D, Test A,Test B,Test C,Test D}, ytick=\empty,
enlargelimits=false, clip=false, axis on top,
grid = major]
\addplot [fill=cyan!20, draw=none, domain=-3:3] {gauss(0,1)} \closedcycle;
\addplot [fill=orange!20, draw=none, domain=-3:-2] {gauss(0,1)} \closedcycle;
\addplot [fill=orange!20, draw=none, domain=2:3] {gauss(0,1)} \closedcycle;
@pabloagn
pabloagn / discord_channel_names.rtf
Last active February 22, 2023 18:36
Channel name template for Discord Servers
📂|general
📝|blog
🔎|deep-dives
📈|guided-projects
📖|documentation
💎|suggestions
🎓|mentees
📜|faq
@pabloagn
pabloagn / julia-for-beginners.txt
Created February 20, 2023 00:12
Figures used in blog article: julia-for-beginners
_
_ _ _(_)_ | Documentation: https://docs.julialang.org
(_) | (_) (_) |
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 1.8.3 (2022-11-14)
_/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |
@pabloagn
pabloagn / interface.css
Last active February 15, 2023 22:52
Obsidian custom css snippets for pdf exporting and interface customization
body {
--radius-m: 0;
--input-radius: 0;
}
body:not(.is-mobile) .modal {
border: none;
}
.markdown-preview-view h1,
.cm-s-obsidian .cm-header.cm-header-1
{
@pabloagn
pabloagn / 01_install-jupyterthemes.ps1
Last active February 9, 2023 16:11
Collection of snippets for installing and managing Jupyter Notebook custom themes
pip install jupyterthemes
Correlation Coefficient for a Direct Relationship Correlation Coefficient for an Indirect Relationship Relationship Strength of the Variables
0 0 None/trivial
0.1 -0.1 Weak/small
0.3 -0.3 Moderate/medium
0.5 -0.5 Strong/large
1 -1 Perfect
@pabloagn
pabloagn / install-lf.sh
Created February 4, 2023 02:18
Instructions for installing different programs and command line utilities
# Installing lf on WSL2 using Ubuntu
curl -L https://github.com/gokcehan/lf/releases/latest/download/lf-linux-amd64.tar.gz | sudo tar xzC /usr/local/bin