This file contains hidden or 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
import csv | |
import re | |
import datetime | |
from collections import defaultdict | |
# Ask user for input | |
input_file = input("Enter the input file name (including .csv extension): ") | |
output_file_base = input("Enter the base of the output file name (without extension): ") | |
account_type_header = input("Enter the header for the account type column: ") | |
date_header = input("Enter the header for the date column: ") |
This file contains hidden or 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
import os | |
import sys | |
import json | |
def ipynb_to_py(ipynb_file_path): | |
# Open the ipynb file and load its contents as JSON | |
with open(ipynb_file_path, 'r') as f: | |
nb = json.load(f) | |
# Create a new .py file with the same name as the ipynb file |
This file contains hidden or 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
# Script for converting a HF Diffusers saved pipeline to a Stable Diffusion checkpoint. | |
# *Only* converts the UNet, VAE, and Text Encoder. | |
# Does not convert optimizer state or any other thing. | |
# Written by jachiam | |
import argparse | |
import os.path as osp | |
import torch |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
For the data augmentation script, you will also need to install the soundstretch library. Documentation
sudo apt install soundstretch
Running games through Steam's Proton is great. But what if there is a secondary exe or configuration application bundled with the game? How can you launch it if Steam itself only launches the game?
Simply run this command in a terminal:
cd /path/to/steam/steamapps/compatdata/20920/pfx
STEAM_COMPAT_DATA_PATH="/path/to/steam/steamapps/compatdata/20920" WINEPREFIX=$PWD \
"$HOME/.steam/root/steamapps/common/Proton 5.0/proton" run ./drive_c/path/to/custom_application.exe
This file contains hidden or 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
FORMATS | |
EntryLo0 & EntryLo1: | |
00 pppppppppppppppppppppppp ccc d v g | |
(32-bit: 2.24.3.1.1.1) | |
p = Page frame number; the upper bits of the physical address. | |
c = Specifies the TLB page coherency attribute. (See below) | |
d = Dirty. If this bit is set, the page is marked as dirty and, therefore, writable | |
This bit is actually a write-protect bit that software can use to prevent alteration |
NewerOlder