Skip to content

Instantly share code, notes, and snippets.

View RobRoseKnows's full-sized avatar
🦀
learning some rust!

Robert Rose RobRoseKnows

🦀
learning some rust!
View GitHub Profile
@RobRoseKnows
RobRoseKnows / base_class.py
Created July 19, 2018 20:46
Gist for Pytest Bug Report (not including __init__.py)
from typing import List
from .my_enums import ProviderType
class NoProviderError(KeyError):
"""
Error to raise when a Provider isn't found in the profile.
"""
pass
@RobRoseKnows
RobRoseKnows / problems-grammar.ne
Last active February 1, 2018 17:29
UMBC Math 221 Problems Trello Sync
@{%
const moo = require("moo");
// I'm not bothering to make each of these tokenizers full proof as I'm assuming the input
// will be an actual list of problems.
const lexer = moo.compile({
sectionNum: /[1-9]+\.[0-9]+/,
date: /[0-9]+\/[0-9]+/,
number: /[0-9]+/,
newline: {match: '\n', lineBreaks: true},