This file contains 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
# -*- coding: utf-8 -*- | |
""" | |
Created on Sat Jul 12 09:33:29 2014 | |
@author: henryiii | |
Added improvents by JonB (swipes), techteej (design), LawAbidingCactus (size) | |
""" | |
import console, random |
This file contains 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
from graphlib import TopologicalSorter | |
import asyncio | |
import dataclasses | |
import yaml | |
from pathlib import Path | |
import functools | |
from typing import NoReturn | |
@functools.total_ordering |
This file contains 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
#!/usr/bin/env python | |
""" | |
Flake8 checker for raw literals inside raises. | |
Requires Python 3.10. This can be run without Flake8 as well. Try: | |
git ls-files '*.py' | xargs python3 plugins/flake8_errmsg.py | |
Local use: |
This file contains 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
# -*- coding: utf-8 -*- | |
""" | |
Created on Sun Jul 20 17:27:33 2014 | |
@author: henryiii | |
""" | |
# http://en.wikipedia.org/wiki/Playing_cards_in_Unicode | |
from __future__ import unicode_literals, division |
This file contains 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
#!/usr/bin/env python3 | |
import sys | |
import re | |
import os | |
testCaseRegex = re.compile(r"TEST\s*\((\w+),\s*(\w+)\)") | |
testFixtureRegex = re.compile(r"TEST_F\s*\((\w+),\s*(\w+)\)") | |
expectRegex = re.compile(r"EXPECT_(\w+)\s*\((.*)\);") | |
assertRegex = re.compile(r"ASSERT_(\w+)\s*\((.*)\);") |
This file contains 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
#!/usr/bin/env bash | |
# This script should be named (or symbolically linked) as git-all so that | |
# it can be run as a git command (if it is in the path). The repo location should | |
# be set in REPOLOC. Can be relative if this script is also in a repo! | |
# Standard bash stuff to get the current directory | |
unset CDPATH | |
SOURCE="${BASH_SOURCE[0]}" | |
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink | |
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" |
This file contains 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
MIT License | |
Copyright (c) 2023 Françoise CONIL | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
OlderNewer