This file contains 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 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"], |
This file contains 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
function createElementWithClass(tag, classNames) { | |
const element = document.createElement(tag); | |
element.classList.add(...classNames); | |
return element; | |
} | |
function makeBox() { | |
let even = false; | |
let installed = false; |
This file contains 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
<!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> |