This file contains 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
#!/usr/bin/env python3 | |
"""Create a QR Code | |
""" | |
import os | |
import sys | |
import argparse |
This file contains 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
from setuptools import setup, find_packages | |
from pathlib import Path | |
with open("README.md", "r") as readme: | |
long_description = readme.read() | |
scripts_dir = Path(__file__).parent / 'openaiwrappers' / 'scripts' | |
scripts = [fn.stem for fn in scripts_dir.iterdir() | |
if not fn.stem.startswith('__')] |
This file contains 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
#!/usr/bin/env python3 | |
"""Reformat sqlcmd output to csv | |
- writes output of the sql query to a temporary file | |
- saves query as unicode and converts utf-16 to utf-8 | |
- replaces "NULL" with empty cells | |
""" | |
import os |
This file contains 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
#!/usr/bin/env python3 | |
"""Scrape all urls from an html document | |
""" | |
import os | |
import sys | |
import argparse |
This file contains 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
#!/usr/bin/env python3 | |
"""Describe author contributions for one or more git repositories by date | |
Output is a csv with columns (repo, author, timestamp, churn) where | |
'churn' is the sum of lines added and lines removed. | |
Requires pandas and plotnine | |
""" |
This file contains 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
// ==UserScript== | |
// @name medialab_cap_topics | |
// @namespace http://tampermonkey.net/ | |
// @version 0.6 | |
// @description Add a menu to MediaLab inspection proof to filter CAP checklist items | |
// @author Noah Hoffman | |
// @match https://www.medialab.com/lms/admin/ad_ic_viewchecklist.aspx?* | |
// @require http://code.jquery.com/jquery-3.4.1.min.js | |
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw== | |
// @grant none |
This file contains 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
#!/usr/bin/env python3 | |
"""Show cloudwatch log events. | |
Examples: | |
Show log stream containing the most recent event for a log group: | |
cwlog.py -g /aws/lambda/lambda-labreport |
This file contains 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
#!/usr/bin/env python3 | |
"""Reformat of output/per_pquery_assign (output of 'gappa assign') | |
see https://github.com/lczech/gappa/wiki/Subcommand:-assign | |
Use "afract" for filtering, based on two criteria. | |
1. keep lineages with afract => min-afract | |
2. keep ranks with a cumulative value of afract >= min-total |
This file contains 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
#!/usr/bin/env python | |
"""Produce a table of classifications for each input sequence in the | |
output of guppy classify | |
""" | |
from __future__ import print_function | |
import sys | |
import argparse |
This file contains 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
--- | |
title: [title] | |
author: Noah Hoffman | |
date: "`r format(Sys.time(), '%Y-%m-%d')`" | |
output: | |
html_document: | |
toc: true | |
--- | |
# setup |
NewerOlder