Skip to content

Instantly share code, notes, and snippets.

View vegeta03's full-sized avatar

Shyam Sreenivasan vegeta03

View GitHub Profile
@vegeta03
vegeta03 / HW4.ipynb
Created May 20, 2023 06:35 — forked from artificialsoph/HW4.ipynb
This is from Sam Bowman's course. Hopefully he's okay with me sharing it.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@vegeta03
vegeta03 / repermute.py
Created October 20, 2018 13:48 — forked from mdeous/repermute.py
generate all possible permutations of a regex
# -*- coding: utf-8 -*-
#
# Used like this:
#
# from repermute import ipermute
#
# for s in ipermute('[A-Z]\d'):
# print s
#
# Almost all regular expression constructs are supported except for '*'