Posted in
9
8:33 am, March 18, 2021
Creating a chart about charts.css with charts.css from the command line
Creating a chart about charts.css with charts.css from the command line:
BASH
(
echo "<table class='charts-css bar show-labels show-heading'>"
echo "<caption>Size of Charts.css releases</caption>"
for version in $(curl -sS https://github.com/ChartsCSS/charts.css/releases | grep -o releases/tag/[0-9.]* | cut -d/ -f3 | tac); do
url=https://cdn.jsdelivr.net/npm/charts.css@$version/dist/charts.min.css
size=$(($(curl -sS "$url" | wc -c)/1024))
echo "<tr><th>v$version</th><td style='--size: calc($size/100)'>${size}KiB</td></tr>"
done
echo "</table><link rel=stylesheet href='$url'>"
) > size-chart.html
Result: https://jsfiddle.net/wcfez6oq/
This is untested but thought it was cool, saved from here : https://news.ycombinator.com/item?id=26494819
View Statistics
This Week
23
This Month
179
This Year
0
Add Comment
Other Items in linux
simple backup to google drive fron linux
backup script to google drive that can be used for multiple directories
start ssh and add key git
play youtube videos on firefox in ubuntu 18
Creating a chart about charts.css with charts.css from the command line
linux mount a drive manually
installing exfat and ntfs drivers to enable reading of these filesystems
linux list all drives and partitions
how to check the temperature of the pi using command line
how to check linux kernel version on rasberry pi rasberian
how to find what version pi you are using
change file permissions to -rw-rw-r--
install atom editor on ubuntu
Enabling SSH on Ubuntu
certbot add a certificate for one domain
renew all SSL certificates with certbot
To make Ubuntu do nothing when laptop lid is closed
add a user to a group
loop through each directory in a target directory and compress them
loop through each directory in a target directory
tar.gz to compress a directory in linux and then decompress it
Find Disk Space Usage using DU
how to unzip in linux
Related Search Terms
Other Categories in Code
c testing apache apps asp bat bootstrap bootstrap templates core css css grid design elements fancybox fonts foundation framework gimp git html icons ideas images javascript jquery js linux mac nginx node php php functions php simple html dom pi400 python react sections site bugs site documentation sql sqlite sublime svg templates tools virtual box webdev windows wordpress