This gist is meant just as remote storage for two text files, hello.txt
and world.txt
, as used by my data wrangling template project example:
https://github.com/dannguyen/pydataproject-template
Direct URLs for the files:
# Helpful resources: | |
# https://superuser.com/questions/1188772/mac-command-to-change-the-background-color-in-a-terminal | |
# https://apple.stackexchange.com/questions/348762/how-to-have-a-random-background-color-in-terminal-app | |
# https://stackoverflow.com/questions/8063228/how-do-i-check-if-a-variable-exists-in-a-list-in-bash | |
cbg(){ | |
local OCMD="" | |
local RED=0; local GRN=0; local BLU=0; | |
local THEMES="pro basic grass homebrew ocean" ## preset themes | |
local HELPMSG; read -r -d '' HELPMSG <<EOF |
This gist is meant just as remote storage for two text files, hello.txt
and world.txt
, as used by my data wrangling template project example:
https://github.com/dannguyen/pydataproject-template
Direct URLs for the files:
<!doctype html><title>PRODUCTION READY CODE MOTHAF KER!</title> | |
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"> | |
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script> |
import matplotlib.pyplot as plt | |
from PyQt5 import QtCore | |
import numpy as np | |
import time | |
import math | |
class VisualiseFrequency(QtCore.QThread): | |
def __init__(self, song, canvas, player): |
This is a guide that basically combines protolium's very helpful ffmpeg cheatsheet with the spleeter library.
Here's a tweet thread that shows a video snippet, with separate bass, vocals, and drums track:
https://twitter.com/dancow/status/1191068710968209408
(using Office for Mac 16.16.15)
printf "hello,world\nNǐ hǎo,shìjiè\n你好,世界\n" > nihao.csv
# or:
# curl -o nihao.csv https://gist.githubusercontent.com/dannguyen/13d5c39d499e4bbec622e055283fbb19/raw/f1c50ced36033b9a3aed36ebbbf0cf8734a98809/nihao.csv
open -a 'Microsoft Excel' nihao.csv
The full raw file can be downloaded from this WaPo article page (direct link here]
Here's a link to the Drug Enforcement Agency Office of Diversion Control's ARCOS Registrant Handbook
$ curl -Lo arcos_all_washpost.tsv.gz \
https://d2ty8gaf6rmowa.cloudfront.net/dea-pain-pill-database/bulk/arcos_all_washpost.tsv.gz
$ gunzip arcos_all_washpost.tsv.gz
""" | |
bashfoo.yaml | |
https://gist.github.com/dannguyen/ad80b9d03f755822d3cc03174bcbef74 | |
Dan Nguyen's personally curated list of bash/command-line commands and snippets | |
that are useful but yet he keeps forgetting | |
""" | |
# gist: https://gist.github.com/dannguyen/ad80b9d03f755822d3cc03174bcbef74 |
AWS Textract is now out of closed beta. You can read the features page here, and you can also read about its limits here (e.g. no handwriting). Basically, if you've ever had to deal with the hell of getting structured data out of a PDF (scanned image or not), Textract is aiming for your business:
This short gist contains some of my brief observations about Textract and its demo, as well as direct links to the most relevant and important files, such as the Textract demo sample image and the resulting data files from Textract's API. If you have an AWS account, I h