Skip to content

Instantly share code, notes, and snippets.

View ladyrassilon's full-sized avatar

Gemma Hentsch ladyrassilon

View GitHub Profile
@ladyrassilon
ladyrassilon / .bash_profile
Created June 3, 2015 20:45
Add this to your bash script to avoid docker-machine env dev blocking your bash if dev isn't running
docker_running=$(docker-machine ls | grep dev)
if [[ "$docker_running" == *"Stopped"* ]]
then
echo "fyi - docker not running"
elif [[ "$docker_running" == *"Running"* ]]
then
eval "$(docker-machine env dev)"
fi
@ladyrassilon
ladyrassilon / .gitignore
Last active June 25, 2023 20:12
My current gitignore
# pytype static type analyzer
.pytype/
# Cython debug symbols
cython_debug/
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
### Keybase proof
I hereby claim:
* I am ladyrassilon on github.
* I am ladyrassilon (https://keybase.io/ladyrassilon) on keybase.
* I have a public key ASCjUv1lsJJKykOuYnIe5daVQosFt7jbq_ZHW43uuMK_owo
To claim this, I am signing this object:
@ladyrassilon
ladyrassilon / countries.py
Last active March 23, 2021 05:07
python file containing iso country names utf8 encoded strings in a tuple of tuples
COUNTRIES = (
('AF', 'Afghanistan',),
('AX', 'Aland Islands',),
('AL', 'Albania',),
('DZ', 'Algeria',),
('AS', 'American Samoa',),
('AD', 'Andorra',),
('AO', 'Angola',),
('AI', 'Anguilla',),
('AQ', 'Antarctica',),
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ladyrassilon
ladyrassilon / Seshu parser.ipynb
Created January 11, 2019 18:29
Parser for seshu
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# pylint: disable=R0903, C0111
from operator import itemgetter
from collections import Counter, defaultdict
import unittest
import logging
class WordNotFoundError(KeyError):
"""
Error raised when word not in anagram list
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.