Use gnuplot to plot data in a csv file
gnuplot -p -c csv-plot.gp data.csv
Use gnuplot to plot data in a csv file
gnuplot -p -c csv-plot.gp data.csv
| #!/usr/bin/env python3 | |
| import pandas as pd | |
| import re | |
| # Input string | |
| email_str = """ | |
| Foo Bar <[email protected]>, [email protected], Alice B. Charlie <[email protected]>, Pete <[email protected]>, Sam Fred Webster Clarke <[email protected]>, [email protected] | |
| """ |
| #!/usr/bin/env python3 | |
| from datetime import datetime | |
| import objc | |
| from Contacts import (CNMutableContact, CNContactStore, CNSaveRequest, CNLabeledValue, | |
| CNPhoneNumber, CNLabelURLAddressHomePage) | |
| from Foundation import NSCalendar, NSDateComponents | |
| class Contact: | |
| """ |
| #!/usr/bin/env bash | |
| # split a long mp3 into separate mp3s of equal length | |
| # args: | |
| # <input_mp3>: filename of the long mp3 | |
| # <n_parts>: how many shorter mp3s you want to cut the long one into | |
| # ./splitmp3 long-mp3-audio.mp4 3 # -> gives you 3 output mp3s of equal length | |
| if [ "$#" -ne 2 ]; then | |
| echo "Usage: $0 <input_mp3> <n_parts>" | |
| exit 1 |
| # -*- coding: utf-8 -*- | |
| import subprocess | |
| import os | |
| # need to install Calibre e-book mgmt tool dependencies | |
| # https://calibre-ebook.com/ | |
| # https://www.epubor.com/calibre-drm-removal-plugins.html | |
| def kindle2pdf(kindle_file, output_directory): | |
| """ |
| convert_webm_to_mp4() { | |
| for file in *.webm; do | |
| if [[ ! -e "$file" ]]; then | |
| echo "No .webm files found in the current directory." | |
| return 1 | |
| fi | |
| local newfile="${file/.webm/.mp4}" |
| #!/usr/bin/env python3 | |
| import os | |
| import requests | |
| import pandas as pd | |
| ENDPOINTS = { | |
| "/search": {"url": "https://maps.googleapis.com/maps/api/place/findplacefromtext/json", "params": ["input", "inputtype", "fields"]}, | |
| "/details": {"url": "https://maps.googleapis.com/maps/api/place/details/json", "params": ["place_id", "fields"]} | |
| } |
install these libs
pip3 install -r reqs.txt
then you can run the script on the test img file like so
| #!/usr/bin/env bash | |
| # -*- coding: utf-8 -*- | |
| filename=$(basename -- "$1") | |
| extension="${filename##*.}" | |
| filename="${filename%.*}" | |
| ffmpeg -i "$1" \ | |
| -vf scale=-1:720\ | |
| -c:v libx264\ |
installed the package
brew install imagemagick
Test that it worked
# imagemagick ships w/ a few default images