Skip to content

Instantly share code, notes, and snippets.

View Thomasparsley's full-sized avatar

Tomáš Petržela Thomasparsley

View GitHub Profile
@Thomasparsley
Thomasparsley / base64-plot.py
Last active January 20, 2024 06:41
Pandas plot to base64 | Integray Python processor
import io
import base64
import numpy as np
import pandas as pd
from matplotlib import pyplot as plt
# Sample DataFrame
data = {
"Category": ["A", "B", "C", "D"],
function createElementWithClass(tag, classNames) {
const element = document.createElement(tag);
element.classList.add(...classNames);
return element;
}
function makeBox() {
let even = false;
let installed = false;
@Thomasparsley
Thomasparsley / htmx-reorder-list-anim.html
Last active May 17, 2022 19:51
HTMX - Reorder list anim
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HTMX animating re-ordering</title>
<script src="https://unpkg.com/htmx.org@1.7.0"
crossorigin="anonymous"></script>