Skip to content

Instantly share code, notes, and snippets.

View Elteoremadebeethoven's full-sized avatar
🏠
I'm studying

Alexander Vázquez Elteoremadebeethoven

🏠
I'm studying
  • Mexico City
View GitHub Profile
@Elteoremadebeethoven
Elteoremadebeethoven / hiatus.py
Created February 14, 2025 20:32
Hiatus announcement, code in ManimPresenter
from presenter import *
config.disable_caching = True
jt = lambda mob: JustifyText(mob, tex_width=8.6)
def get_element(name, tex_type=jt):
return {
"name": name,
"type": tex_type,
}
@Elteoremadebeethoven
Elteoremadebeethoven / basics_manimgl.py
Created December 27, 2024 20:12
From my video "From ManimCE to ManimG" code
from manimlib import *
# manim_config["camera"]["background_color"] = YELLOW
# manim_config["camera"]["fps"] = 60
class Example0(Scene):
def construct(self):
# Tex (GL) = MathTex (CE)
# TexText (GL) = Tex (CE)
t = TexText("This is a test")
@Elteoremadebeethoven
Elteoremadebeethoven / Dockerfile
Last active October 28, 2024 15:54
Dockerfile with my nvim config
FROM ubuntu:latest
RUN apt update && \
apt upgrade -y && \
apt install -y curl unzip zip git ninja-build gettext cmake build-essential zsh && \
echo "PROMPT='%n@%m %~ %# '" > /root/.zshrc
RUN chsh -s $(which zsh)
SHELL [ "/bin/zsh", "-c" ]
ENV SHELL=/bin/zsh
@Elteoremadebeethoven
Elteoremadebeethoven / sqrt_2.py
Created October 9, 2024 01:08
Code from my Short "Sqrt(2) is irrational".
from manim import *
config.disable_caching = True
# Change default font size
DEFAULT_FONT_SIZE = 28
MathTex.set_default(font_size=DEFAULT_FONT_SIZE)
Tex.set_default(font_size=DEFAULT_FONT_SIZE)
SCALE_FACTOR = 1
tmp_pixel_height = config.pixel_height
@Elteoremadebeethoven
Elteoremadebeethoven / init.vim
Last active April 3, 2024 06:20
Basic nvim config without plugins for tutorials in CoCalc
syntax on
set number "Show numbers
set tabstop=2 "Tabulator size is 2 spaces
set shiftwidth=2 "Every 2 spaces is a tabulator
set expandtab "Convert tabulator to spaces
set autoindent
set mouse=a "Enable mouse
set undofile "Enable undo history
set undodir=~/.config/nvim/undo "set undo file
@Elteoremadebeethoven
Elteoremadebeethoven / i3_linux_mint.md
Last active February 20, 2025 06:57
Install i3 on Linux Mint

Compile i3 on Linux Mint (Ubuntu distros)

Install dependencies:

sudo apt install libxcb1-dev libxcb-keysyms1-dev libpango1.0-dev \
                 libxcb-util0-dev libxcb-icccm4-dev libyajl-dev \
                 libstartup-notification0-dev libxcb-randr0-dev \
                 libev-dev libxcb-cursor-dev libxcb-xinerama0-dev \
                 libxcb-xkb-dev libxkbcommon-dev libxkbcommon-x11-dev \
                 autoconf libxcb-xrm0 libxcb-xrm-dev automake \
@Elteoremadebeethoven
Elteoremadebeethoven / anims_1.ipynb
Last active July 29, 2023 14:08
Manim: Class Animations in depth
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Elteoremadebeethoven
Elteoremadebeethoven / i3_and_rofi_config.md
Last active September 10, 2023 17:45
i3+rofi installation
# Font config
font_family MesloLGSDZ Nerd Font
bold_font auto
italic_font auto
bold_italic_font auto
font_size 14
# Theme
foreground #a9b1d6
background #1A1B26

ZSH config

Install dependencies

  • ZSH
  • curl
  • wget
  • git
  • xclip
  • ripgrep