Skip to content

Instantly share code, notes, and snippets.

## /robex/ - 2021 ##
import matplotlib.pyplot as plt
import math
class Weapon:
def __init__(self, rangemod, basedmg, maxrange, gainrange, name):
self.rangemod = rangemod
self.basedmg = basedmg
self.maxrange = maxrange
@robex
robex / rename.sh
Last active May 1, 2018 00:14
rename.sh: rename files in a directory into a sequential numbering order
# Rename all the files specified in a directory to a sequential order.
# CAREFUL: DON'T USE WITH THE SAME NDIGITS IF THE FILES IN THE DIRECTORY
# ARE ALREADY NAMED SEQUENTIALLY, OR THEY MAY BE OVERWRITTEN AND LOST
# A workaround for this is to run rename.sh with another value for the ndigits
# and then run it again with the original.
#
# /robex/ - 2018
#no arguments
if [ $# -eq 0 ]; then