Skip to content

Instantly share code, notes, and snippets.

View muellerzr's full-sized avatar

Zach Mueller muellerzr

View GitHub Profile
@muellerzr
muellerzr / param2docments.py
Last active January 26, 2022 19:34
A helpful script to convert nbdev Param into docments automatically.
from fastcore.script import call_parse
import tokenize
from io import BytesIO
from fastcore.xtras import Path
from nbdev.imports import get_config
from nbdev.export import read_nb, notebook2script
import json, re, os, token, nbformat
from dependency_checker import is_latest_version
def docment_function(func:str):
@muellerzr
muellerzr / SettingUpCondaUbuntuSubsystem.md
Last active September 23, 2021 14:48
Explicit directions for how I setup Ubuntu Subsystem with conda, pip, python, and had it mounted from the D directory

Installing and configuring conda, jupyter, etc on wsl2

  1. Install Ubuntu from the Windows Store
  2. Setup changing the default opening directory (based on this)
    1. Open Ubuntu
    2. sudo vim /etc/passwd
    3. Type "i" to enter the insert mode so we can make changes
    4. Find your account's line, should start with your username. Eg mine was muellerzr:x:1000, :home/muellerzr/:bin/bash
    5. We care about changing the /home part. Change it to /mnt/c to use the "C" drive, /mnt/d to use the "D" drive, and so forth
  3. Save our changes with :wq and enter
@muellerzr
muellerzr / einops.ipynb
Last active July 22, 2021 00:55
einops exploration
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@muellerzr
muellerzr / package.ipynb
Last active June 16, 2021 20:09
Example of torch.package
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@muellerzr
muellerzr / descriptive_show_doc.ipynb
Created June 7, 2021 11:40
Descriptive show_doc
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.
@muellerzr
muellerzr / lr-suggestors.ipynb
Last active April 19, 2023 04:06
LR Suggestors.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@muellerzr
muellerzr / show_batch_bug.ipynb
Last active May 1, 2021 21:54
show_batch_bug.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@muellerzr
muellerzr / EfficientInterpretation.ipynb
Last active March 12, 2023 21:29
Memory-Efficient-Interpretation
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@muellerzr
muellerzr / make_pr
Created January 24, 2021 05:44
Make a new pr from an existing cloned repository by simply doing `make_pr`
#!/bin/bash
echo "Setting up a new PR"
# Ask for username
echo "Please enter the original GitHub organization or username of the repository (the part of the URL after github.com/): "
read org
# Ask for repo
echo "Please enter the repository name: "
read name
#Ask for branch
read -e -p "Please enter the branch of the repository you wish to use: " -i "main" branch