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: |
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 string, re, os, time, smtplib, sys | |
from urllib import urlopen | |
import httplib, urllib #used in the Pushover code | |
def quote_grab(symbol): | |
baseurl = 'http://google.com/finance?q=' |
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 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 os | |
import zipfile | |
import shutil | |
# Constant Definition | |
# ------------------- | |
# Path to be prepended to image links in markdown file, like so: ![](IMAGE_LINK<image_filename>). |
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 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
# This script uses Evernote's API to create a new template note to be used in meetings. | |
# The template includes the following fields: Date, Time, Attendance, Objective, Remarks and | |
# Action Items. The fields are shown using Evernote Markup Language. It also automatically | |
# adds the the date when the note was created at the end of the note's title. | |
# | |
# When run, it lists all notebooks in a user's account (just as reference), then | |
# asks for the title of the new note (automatically adding the current date at the | |
# end in ISO format YYYY-MM-DD), then asks for the tags to be assigned to the note and | |
# creates it in a pre-defined notebook (hard coded in the ntbkName variable below). | |
# |
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 sys | |
import csv | |
import operator | |
import time | |
from datetime import date | |
'''Summary: | |
This script reads the .csv file generated by TodoList (from abstractspoon) using csvreader (csv library) and puts the contents in a list of lists that is later iterated over to separate tasks in 4 buckets (lists of lists): Overdue, Today, Tomorrow and Next 7 days. Each of these lists has the priority column converted to integer so that they can be sorted by the column. The results are then written to a .txt file''' | |
# Contants definition | |
file = sys.argv[1] # .csv file from Abstractspoon TodoList |
NewerOlder