This file contains hidden or 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
% % Install uv | |
!curl -LsSf https://astral.sh/uv/install.sh | sh | |
% % Set up uv | |
% 1) Point PATH to where uv was installed | |
setenv('PATH', getenv('HOME')+"/.local/bin:"+getenv('PATH')); | |
% Sanity checks | |
system('which uv'); % should print ~/.local/bin/uv | |
system('uv --version'); | |
system('python --version'); |
This file contains hidden or 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
session = pyrun("import fastf1; session = fastf1.get_session(2023, 1, 'R'); session.load(telemetry=False, weather=False)","session") | |
drv = session.drivers; | |
%% Figure / axes (dark theme similar to FastF1) | |
figure('Color',[0.08 0.09 0.10],'Position',[100 100 900 500]); | |
ax = axes('Parent', gcf); | |
set(ax,'Color',[0.08 0.09 0.10],'XColor',[0.85 0.88 0.90], ... | |
'YColor',[0.85 0.88 0.90],'Box','off','LineWidth',1); | |
hold(ax,'on'); grid(ax,'on'); ax.GridColor=[0.25 0.28 0.30]; |
This file contains hidden or 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
%[text] # demucs with uv onlinedemucs | |
%[text:tableOfContents]{"heading":"**Table of Contents**"} | |
%[text] | |
%% | |
%[text] ### Install uv | |
!curl -LsSf https://astral.sh/uv/install.sh | sh %[output:09e95903] | |
%% | |
%[text] ### Set up uv | |
% 1) Point PATH to where uv was installed | |
setenv('PATH', [getenv('HOME') '/.local/bin:' getenv('PATH')]); |
This file contains hidden or 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
#!/usr/bin/env python3 | |
""" | |
Create a PowerPoint deck from a folder of images, widescreen (16:9). | |
Usage: | |
python make_ppt.py --images slides/ --out slides.pptx | |
""" | |
import argparse | |
from pathlib import Path |
This file contains hidden or 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
#!/usr/bin/env python3 | |
""" | |
Extract distinct slides from a presentation video. | |
Usage: | |
python extract_slides.py --video input.mp4 --out slides/ --interval 10 --threshold 6 | |
Args: | |
--video Path to the input video file. | |
--out Output folder for saved images (created if missing). |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 hidden or 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
#!/bin/bash | |
wget https://www.mathworks.com/mpm/glnxa64/mpm && \ | |
chmod +x mpm && \ | |
./mpm install --release=R2025a --destination=/opt/matlab --products=MATLAB Parallel_Computing_Toolbox Deep_Learning_Toolbox Statistics_and_Machine_Learning_Toolbox && \ | |
ln -fs /opt/matlab/bin/matlab /usr/local/bin/matlab && \ | |
MATLAB_DEPS_URL="https://raw.githubusercontent.com/mathworks-ref-arch/container-images/main/matlab-deps/r2025a/ubuntu22.04/base-dependencies.txt" && \ | |
MATLAB_DEPENDENCIES=base-dependencies.txt && \ | |
wget ${MATLAB_DEPS_URL} -O ${MATLAB_DEPENDENCIES} && \ | |
xargs -a ${MATLAB_DEPENDENCIES} -r apt-get install --no-install-recommends -y && \ |
This file contains hidden or 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 streamlit as st | |
import openai | |
avatar = { | |
"user": "🤓", | |
"assistant": "🤖", | |
} | |
if "messages" not in st.session_state: | |
st.session_state["messages"] = [] |
This file contains hidden or 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
Title | Genre | Premiere | Runtime | IMDB Score | Language | |
---|---|---|---|---|---|---|
Enter the Anime | Documentary | August 5, 2019 | 58 | 2.5 | English/Japanese | |
Dark Forces | Thriller | August 21, 2020 | 81 | 2.6 | Spanish | |
The App | Science fiction/Drama | December 26, 2019 | 79 | 2.6 | Italian | |
The Open House | Horror thriller | January 19, 2018 | 94 | 3.2 | English | |
Kaali Khuhi | Mystery | October 30, 2020 | 90 | 3.4 | Hindi | |
Drive | Action | November 1, 2019 | 147 | 3.5 | Hindi | |
Leyla Everlasting | Comedy | December 4, 2020 | 112 | 3.7 | Turkish | |
The Last Days of American Crime | Heist film/Thriller | June 5, 2020 | 149 | 3.7 | English | |
Paradox | Musical/Western/Fantasy | March 23, 2018 | 73 | 3.9 | English |