Skip to content

Instantly share code, notes, and snippets.

View jtemporal's full-sized avatar
😎
Working from home

Jessica Temporal jtemporal

😎
Working from home
View GitHub Profile
@jtemporal
jtemporal / jesstemporal.zsh-theme
Last active August 29, 2025 12:39
Robby Russel modified version
# modified from robby russel's
# theme location on Codespaces: ~/.oh-my-zsh/themes
# touch ~/.oh-my-zsh/themes/jesstemporal.zsh-theme
PROMPT="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ )%{$fg[black]%}%c%{$reset_color%}"
PROMPT+=' $(git_prompt_info)'
PROMPT+="
%(?:%{$fg_bold[green]%}➜ $ :%{$fg_bold[red]%}➜ $ )%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}git:(%{$fg[red]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
sequenceDiagram
    autonumber
    Vercel->>Vercel: <br>
    Note right of Vercel: Click on the <br>Auth0 integration
    Vercel->>Auth0: <br>You are redirected to <br>Auth0 to authenticate
    Note right of Vercel:  Vercel never sees <br>your Auth0 credentials
    Auth0-->Auth0: 
    Note right of Auth0: If you are new to Auth0<br>your tenant is <br>bootstraped for you 
 %% Auth0-&gt;&gt;Auth0: 
.note {
stroke: #decc93 !important;
fill: #fff5ad !important;
}
import time, math
import badger2040
import badger_os
# Global Constants
WIDTH = badger2040.WIDTH
HEIGHT = badger2040.HEIGHT
# Tic-Tac-Toe / Noughts and Crosses game
@jtemporal
jtemporal / script.py
Created January 7, 2024 01:32
Script to update exif data from .jpeg files
"""
This script will automatically pick up on all JPG files in a folder
requirements.txt
piexif==1.1.3
pillow==10.2.0
"""
import seaborn as sns
from sklearn.cluster import KMeans
# preparando nossos dados
iris = sns.load_dataset('iris')
df = iris.drop('species', axis=1)
# calculando a soma dos quadrados para as 19 quantidade de clusters
def optimal_number_of_clusters(wcss):
x1, y1 = 2, wcss[0]
x2, y2 = 20, wcss[len(wcss)-1]
distances = []
for i in range(len(wcss)):
x0 = i+2
y0 = wcss[i]
numerator = abs((y2-y1)*x0 - (x2-x1)*y0 + x2*y1 - y2*x1)
denominator = sqrt((y2 - y1)**2 + (x2 - x1)**2)
def calculate_wcss(data):
wcss = []
for n in range(2, 21):
kmeans = KMeans(n_clusters=n)
kmeans.fit(X=data)
wcss.append(kmeans.inertia_)
return wcss
/**
* $out
* Provide the name of the output collection.
*/
'augustmoviescomments'
/**
* $lookup
* from: The target collection.
* localField: The local join field.
* foreignField: The target join field.
* as: The name for the results.
* pipeline: The pipeline to run on the joined collection.
* let: Optional variables to use in the pipeline field stages.
*/
{