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/python3 | |
# Import the VCNL40xx module. | |
import Adafruit_VCNL40xx | |
from sense_hat import SenseHat | |
import time | |
import threading | |
import subprocess | |
# Create a VCNL4010 instance. |
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
import sys | |
import re | |
import os | |
import zipfile | |
import shutil | |
# Constant Definition | |
# ------------------- | |
# Path to be prepended to image links in markdown file, like so: . |
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
import sys | |
import re | |
import os | |
import zipfile | |
import shutil | |
# Constant Definition | |
# ------------------- |
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
import sys | |
import re | |
import datetime as dt | |
from collections import Counter | |
import pandas as pd | |
import seaborn as sns | |
''' | |
This script takes the following arguments and returns a graph showing the number of tasks due per day. |
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
import sys | |
import re | |
import operator | |
import datetime | |
''' | |
This script generates a text/markdown file with the tasks from a taskpaper file sorted by due date in three groups: | |
Overdue, Today and Tomorrow. Also, all tasks with the @today tag are placed in the Today group. | |
The following parameters should be passed when running the script: |
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/python2.7 | |
import re | |
import shutil | |
import os | |
import sys | |
from datetime import date, timedelta | |
''' This script takes the taskpaper file passed as an argument and reschedules completed recurring tasks based on their | |
due date, done date and recurring frequency. The task is put in the project it was completed on, even if it has been |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>name</key> | |
<string>MarkdownEditing</string> | |
<key>settings</key> | |
<array> | |
<dict> | |
<key>settings</key> |
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/local/bin/python2.7 | |
import datetime | |
import time | |
import re | |
import os | |
from twython import Twython | |
import sys | |
import traceback | |
import httplib, urllib #used in the Pushover code |
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
import feedparser #need manual installation. Doesn't come with Python. | |
import os | |
import httplib #used by pushover | |
import urllib #used by pushover | |
# Linux: | |
folderPath = '/home/YOUR_USERNAME/Scripts/Support_Files/Woot/' | |
# Just woot.com items: |
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
import paramiko | |
import console | |
import sys | |
import keychain | |
'''This script connects through SSH to the Computer/Server using the Username & Password defined in the header. | |
It then runs a command/script that is passed as an argument by long pressing the Run icon in Pythonista or by | |
calling the script through Pythonista's URL scheme with an argument. | |
General Notes: |
NewerOlder