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
BoxLayout: | |
orientation: 'vertical' | |
Label: | |
size_hint_y: None | |
height: '50dp' | |
id: calc | |
text: '' | |
GridLayout: | |
cols: 4 |
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 | |
# -*- coding: utf-8 -*- | |
# Needs freetype-py>=1.0 | |
# For more info see: | |
# http://dbader.org/blog/monochrome-font-rendering-with-freetype-and-python | |
# The MIT License (MIT) | |
# | |
# Copyright (c) 2013 Daniel Bader (http://dbader.org) |
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 | |
# -*- encoding: utf-8 -*- | |
# | |
# woof -- an ad-hoc single file webserver | |
# Copyright (C) 2004-2009 Simon Budig <simon@budig.de> | |
# | |
# This program is free software; you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation; either version 2 of the License, or | |
# (at your option) any later version. |
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
# ReachView code is placed under the GPL license. | |
# Written by Egor Fedorov (egor.fedorov@emlid.com) | |
# Copyright (c) 2015, Emlid Limited | |
# All rights reserved. | |
# If you are interested in using ReachView code as a part of a | |
# closed source project, please contact Emlid Limited (info@emlid.com). | |
# This file is part of ReachView. |
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
""" | |
Sometimes you want to make several different replacements. Search by tag with | |
optional attributes. Replace with tag with optional attributes. | |
Thank you to Dan @ University of Exeter for bug fix | |
""" | |
from bs4 import BeautifulSoup | |
REPLACEMENTS = [('b', {}, 'strong', {}), |