This file contains hidden or 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) 2017 Michał Bultrowicz | |
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 |
This file contains hidden or 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/python3 | |
# This is how a configuration setup can look like. The key will form a herarchical key in Config object. | |
# The values will be taken from environment variables. They should be case insensitive (only the leaf values should be case sensitive). All lists will be flattened. | |
# If the value is not found then the default value can be found after the semicolon. | |
import cf_config | |
config_fields = { | |
'foo': { |
This file contains hidden or 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
import concurrent.futures | |
import falcon | |
import time | |
import urllib.request | |
import json | |
from urllib.parse import urlsplit | |
class DownloaderResource: |
This file contains hidden or 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
#!/bin/bash | |
# this script must run after Pylint run | |
REMOTE_MASTER=origin/master | |
# If there's no difference between the current state and origin/master | |
# then there's no need to check for new Pylint issues. | |
if [[ -z $(git diff $REMOTE_MASTER) ]]; then | |
exit | |
fi |
This file contains hidden or 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
# to install: pip install networkx | |
__author__ = 'butla' | |
import sys | |
import asyncio | |
import aiohttp | |
import networkx | |
import networkx.algorithms |