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 | |
""" | |
npycat: cat utility and swiss army knife for numpy and pytorch files. | |
""" | |
import numpy, argparse | |
args = None | |
def main(): |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
<!DOCTYPE html> | |
<html> | |
<!-- | |
+lightbox.html, a page for automatically showing all images in a | |
directory on an Apache server. Just copy it into the directory. | |
Works by scraping the default directory HTML at "./" - David Bau. | |
--> | |
<head> | |
<script src="https://cdn.jsdelivr.net/npm/vue@2.5.16/dist/vue.js" | |
integrity="sha256-CMMTrj5gGwOAXBeFi7kNokqowkzbeL8ydAJy39ewjkQ=" |
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
# Google form submit-maker. | |
# | |
# Usage: python googlesender.py https://docs.google.com/forms/d/e/1.../viewform | |
# | |
# Point this python file at a live Google forms URL, and it will generate | |
# code for a Javascript function that submits to that form cross-domain. | |
# | |
# Notes: | |
# - The form should be created with "short answer text" questions. | |
# - The viewform URL to scrape is the link shared when the form is sent. |
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
''' | |
To use a runningstats object, | |
1. Create the the desired stat object, e.g., `m = Mean()` | |
2. Feed it batches via the add method, e.g., `m.add(batch)` | |
3. Repeat step 2 any number of times. | |
4. Read out the statistic of interest, e.g., `m.mean()` | |
Built-in runningstats objects include: |
OlderNewer