Pass transaction table contents (without header) via stdin, get formatted CSV in stdout
The following compression scheme compresses characters, ignoring whitespace, and utilizes markers like (10x2) to indicate a repetition of the subsequent 10 characters 2 times. The marker itself isn't included in the decompressed output. Parentheses or other characters within the data referenced by a marker are treated as normal data.
Examples of decompression include:
MURPHY
→MURPHY
(length 6)(3x3)DBZ
→DBZDBZDBZ
(length 9)A(2x2)BCD(2x2)EFG
→ABCBCDEFEFG
(length 11)
This file contains hidden or 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
/* adjust 60rem to your liking */ | |
.markdown-preview-view.is-readable-line-width .markdown-preview-sizer { | |
max-width: 60rem; | |
} | |
.markdown-source-view.mod-cm6.is-line-wrap.is-readable-line-width .cm-line:not(.HyperMD-table-row) { | |
max-width: 60rem; | |
} |
This file contains hidden or 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
[user] | |
email = [email protected] | |
name = John | |
[includeIf "gitdir:~/Work/ACME/gitlab/*/"] | |
path = ~/Work/ACME/.gitconfig |
This file contains hidden or 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
[redshift] | |
; Set the day and night screen temperatures | |
; --- | |
; From f.lux FAQ | |
; Ember: 1200K | |
; Candle: 1900K | |
; Warm Incandescent: 2300K | |
; Incandescent: 2700K | |
; Halogen: 3400K | |
; Fluorescent: 4200K |
This file contains hidden or 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
# fonts | |
font_family Comic Mono | |
font_size 15 | |
# scroll history | |
scrollback_lines 10000 | |
# window size stuff | |
remember_window_size yes | |
initial_window_width 640 |
This file contains hidden or 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 sys | |
import argparse | |
import importlib | |
def format_field(col): | |
if col.foreign_keys or col.primary_key: | |
extra = " ({extra})".format(extra="PK" if col.primary_key else "FK") | |
else: | |
extra = "" |
This file contains hidden or 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
CREATE USER readonly WITH PASSWORD 'supersecret'; | |
GRANT SELECT ON ALL TABLES IN SCHEMA public TO readonly; | |
ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON TABLES TO readonly; |
This file contains hidden or 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 argparse | |
import re | |
import csv | |
import decimal | |
import sys | |
import logging | |
from getpass import getpass | |
import pandas as pd | |
from decimal import Decimal |
This file contains hidden or 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 youtube_dl | |
from gooey import Gooey, GooeyParser | |
from youtube_dl import read_batch_urls, preferredencoding | |
def on_progress(d): | |
print("", flush=True) | |
audio_options = { |
NewerOlder