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 python2 | |
from gtk.gdk import * | |
w = window_foreign_new((get_default_root_window().property_get("_NET_ACTIVE_WINDOW")[2][0])) | |
state = w.property_get("_NET_WM_STATE")[2] | |
maximized = '_NET_WM_STATE_MAXIMIZED_HORZ' in state and '_NET_WM_STATE_MAXIMIZED_VERT' in state | |
if maximized: w.unmaximize() | |
if w.get_decorations() == 0: | |
w.set_decorations(DECOR_ALL) | |
else: |
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 base64 import b64encode | |
import pandas | |
from requests import get | |
def encode_ies_id(code): | |
return b64encode(bytes(str(code), 'utf-8')).decode("utf-8") | |
def get_ies_page(code): | |
url = f"http://emec.mec.gov.br/emec/consulta-ies/index/d96957f455f6405d14c6542552b0f6eb/{code}" | |
html = get(url).content |
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 xmltodict import parse | |
from collections import namedtuple | |
with open("vimwikiacom-20190108-current.xml", "rb") as file: | |
wiki = parse(file, xml_attribs=True) | |
pages = wiki['mediawiki']['page'] | |
def extract_pages(section): | |
return [page for page in pages if page['title'].startswith(section)] |
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
[[source]] | |
url = "https://pypi.org/simple" | |
verify_ssl = true | |
name = "pypi" | |
[packages] | |
requests = "*" | |
[dev-packages] | |
pytest = "*" |
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
" | |
" ███████████████████████████ | |
" ███████▀▀▀░░░░░░░▀▀▀███████ | |
" ████▀░░░░░░░░░░░░░░░░░▀████ | |
" ███│░░░░░░░░░░░░░░░░░░░│███ | |
" ██▌│░░░░░░░░░░░░░░░░░░░│▐██ | |
" ██░└┐░░░░░░░░░░░░░░░░░┌┘░██ | |
" ██░░└┐░░░░░░░░░░░░░░░┌┘░░██ | |
" ██░░┌┘▄▄▄▄▄░░░░░▄▄▄▄▄└┐░░██ | |
" ██▌░│██████▌░░░▐██████│░▐██ |
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
# This file has been auto-generated by i3-config-wizard(1). | |
# It will not be overwritten, so edit it as you like. | |
# | |
# Should you change your keyboard layout some time, delete | |
# this file and re-run i3-config-wizard(1). | |
# | |
# i3 config file (v4) | |
# | |
# Please see https://i3wm.org/docs/userguide.html for a complete reference! |
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
foreground #d3d0c8 | |
background #2d2d2d | |
background_opacity 0.8 | |
dynamic_background_opacity no | |
color0 #2d2d2d | |
color8 #5a5a5a | |
color1 #f2777a | |
color9 #f2777a | |
color2 #99cc99 |