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 | |
""" | |
author: Pure Python | |
url: https://www.purepython.org | |
copyright: CC BY-NC 4.0 | |
Forked date: 2018-01-07 / First version MIT license -- free to use as you want, cheers. | |
Original Author: Sylvain Carlioz, 6/03/2017 |
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
''' | |
author: Pure Python | |
url: https://www.purepython.org | |
copyright: CC BY-NC 4.0 | |
creation date: 26-02-2019 | |
With this script you can search within a folder and files for some text and replace it with other text. | |
Extra install: | |
For the fun of it I used the Halo spinner package to show a nice progress spinner |
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
# code for a course Im doing | |
# https://www.futurelearn.com/courses/object-oriented-principles/6 | |
from turtle import Turtle | |
from random import randint | |
def myturtles(color, start, end): | |
tur = Turtle() | |
tur.color(color) | |
tur.shape('turtle') |
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
<!--Put this file in your _includes folder and just call it as an include--> | |
<span class="time-to-read"> | |
{% assign words = content | number_of_words %} | |
{% if words < 360 %} | |
1 min | |
{% else %} | |
{{ words | divided_by:180 }} mins | |
{% endif %} | |
</span> |
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
""" | |
author: Pure Python | |
url: https://www.purepython.org | |
copyright: CC BY-NC 4.0 | |
creation date: 11-12-2018 | |
please put your client_screts.json in the same folder as this file. | |
You need the oauth2client and google-api-python-client for this to work. |
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
""" | |
author: Pure Python | |
url: https://www.purepython.org | |
copyright: CC BY-NC 4.0 | |
creation date: 02-01-2019 | |
Small script to send mails with attachment from folder with Gmail | |
Uses nothing but python 3 modules. |
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
""" | |
author: Pure Python | |
url: https://www.purepython.org | |
copyright: CC BY-NC 4.0 | |
creation date: 28-12-2018 | |
Small script for calculating simple Fractions | |
Klein script om breuken uit te rekenen. | |
Calculates fractions like |
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
""" | |
author: Pure Python | |
url: https://www.purepython.org | |
copyright: CC BY-NC 4.0 | |
creation date: 25-12-2018 | |
Small tutorial how to get the column names with your row of values | |
You need the sqlite3 for this to work. | |
It's installed together with your python |
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
''' | |
author: Pure Python | |
url: https://www.purepython.org | |
copyright: CC BY-NC 4.0 | |
creation date: 22-12-2018 | |
This script takes a folder and renames all the files | |
to the same name with auto increment numbers. | |
It keeps the extensions of each file unchanged |
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
''' | |
author: Pure Python | |
url: https://www.purepython.org | |
copyright: CC BY-NC 4.0 | |
creation date: 20-12-2018 | |
This script gets all colors from an image | |
and displays then in the terminal in rgb and hex values (with coloring!) | |
Just place your image or images in a folder. |