Skip to content

Instantly share code, notes, and snippets.

View NanoExplorer's full-sized avatar

Christopher Rooney NanoExplorer

View GitHub Profile
@NanoExplorer
NanoExplorer / tape_read.py
Created March 20, 2023 22:19
A small python script for reading multiple tar files from a SCSI tape drive.
#!/usr/bin/env python
import subprocess
import os
import shutil
from glob import glob
from pathlib import Path
import time
import argparse
@NanoExplorer
NanoExplorer / tarotware.txt
Last active July 20, 2024 05:23
TarotWare---Divine words for your passwords by drawing 3 cards from a 78-card Tarot deck!
This file has been truncated, but you can view the full file.
Instructions: Draw 3 cards from the Tarot deck.
Each column below corresponds to one of the cards
you drew. Major Arcana cards are referred to only
by their number (i.e. "0" is The Fool) and minor
arcana cards have a suit and a number (for example
the King of Cups is c14). The third column has two
options (e.g. 2/3 in the first entry) because there
are twice as many possible 3-card draws as there are
words in this word list.
from KinMS import KinMS
import numpy as np
import KinMS_testsuite as kstest
#set very simple parameter values for testing
xs=1
ys=1
vs=800
nchan=80
cellsize=0.01
dv=vs/nchan
@NanoExplorer
NanoExplorer / stuff.py
Created July 22, 2018 03:57
a thingy that acts like a cpu monitor
class animatedplot():
def __init__(self,size):
self.size=size
self.utiliz=np.ones(self.size)*np.nan
self.timearr=np.ones(self.size)*np.nan
self.fig = plt.figure()
self.ax = self.fig.add_subplot(1,1,1)
self.ln, = plt.plot(self.utiliz,self.timearr)
self.anim = FuncAnimation(self.fig,self.update,frames = np.arange(1000),