Skip to content

Instantly share code, notes, and snippets.

@person4268
person4268 / slack-download.py
Created June 28, 2024 10:37 — forked from colelawrence/slack-download.py
Slack file downloader from export archive (2021)
# -*- coding: utf-8 -*-
#
# Slack file downloader from export archive
#
# Updated to python 3 with 2to3, and tqdm was added.
# Usage: slack-download.py <extracted archive export dir> <full path to download dir>
import json
import sys
import urllib.request, urllib.parse, urllib.error
@person4268
person4268 / averagesort.py
Created September 17, 2022 18:23
FRC Scouting Data Sorting
import csv
import sys
# Use with https://github.com/the-gearheads/ghScouting
# sys.argv[1]: Input csv name
# sys.argv[2]: Output csv name
# Amount of decimal places to round to
round_places = 2
@person4268
person4268 / convert.py
Last active October 18, 2021 23:33
@tweet2doom demo converter
import struct
import sys
buffer = open(sys.argv[1], "rb")
header = buffer.read(13)
header_fmt_string = "ccccccccccccc"
header = struct.unpack(header_fmt_string, header)
def read_header(pos):