This file contains hidden or 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
// Set resolution options | |
var rp = [72,150,300]; | |
// Set EXPORT presets | |
app.pngExportPreferences.exportResolution = 72; | |
app.pngExportPreferences.antiAlias = true; | |
app.pngExportPreferences.pngQuality = PNGQualityEnum.MAXIMUM; | |
app.pngExportPreferences.pngColorSpace = PNGColorSpaceEnum.RGB; | |
app.pngExportPreferences.pngExportRange = PNGExportRangeEnum.EXPORT_RANGE; |
This file contains hidden or 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
//Global Script | |
var txt = new Array(); | |
var x = 2; //speed multiplier | |
var count = 0; | |
var ti = 0; | |
txt[0] = ""; | |
txt[1] = "FAST TRACK YOUR CAREER IN\nPOLITICS OR GOVERNMENT"; //51 | |
txt[2] = "Study for a Master of Philosophy,\nPolitics and Economics at\nVictoria University in 2019.";//90 |
This file contains hidden or 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
// Global | |
function newShadow (ob) | |
{ | |
ob.shadow = new createjs.Shadow("rgba(0,0,0,.3)",1,1,10); | |
} | |
//The object needs to be a Symbol -> Movie Clip | |
//It needs to be named on the timeline | |
//Drop shadow will appear when script is implemented on the timeline | |
// |
This file contains hidden or 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 | |
import sys | |
import getopt | |
import os | |
import re | |
import csv | |
###---HOUSEKEEPING---### | |
#define home dir |
This file contains hidden or 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 | |
import spotipy | |
import datetime | |
import pprint | |
from spotipy.oauth2 import SpotifyOAuth | |
# CHECKS IF PLAYLIST EXSISTS | |
def does_playlist_exist(u,s,pl): | |
x = s.user_playlists(u) | |
for x in x['items']: |
This file contains hidden or 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 | |
## | |
## Requires pydrive2, qbittorrent-api and setting up Google API | |
## client_secrets.json put in the same folder as script | |
## Must be run on a machine with a browser first to generate mycreds.txt | |
## | |
import os | |
import requests | |
import filecmp | |
import shutil |
This file contains hidden or 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 | |
import os | |
import subprocess as sp | |
import json | |
def notify(title, text): | |
os.system(""" | |
osascript -e 'display notification "{}" with title "{}"' | |
""".format(text, title)) |
This file contains hidden or 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 time | |
import subprocess | |
from watchdog.observers import Observer | |
from watchdog.events import FileSystemEventHandler | |
from watchdog.events import PatternMatchingEventHandler | |
import qbittorrentapi | |
import os | |
import logging | |
import shutil | |
logging.basicConfig(filename='/home/pi/Scripts/watch.log', filemode='a', format ='%(asctime)s - %(name)s - %(levelname)s - %(message)s', datefmt='%d-%m-%Y %H:%M:%S' ) |
This file contains hidden or 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 qbittorrentapi | |
import datetime | |
today = datetime.datetime.now() | |
#Set age (days) to remove | |
older = 7 | |
#Converts UTC time to datetime | |
def utc(x): | |
dt = datetime.datetime.fromtimestamp(x) |
This file contains hidden or 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 | |
#### | |
## Replace XXXX with your details | |
#### | |
import spotipy | |
import datetime | |
import pprint | |
import os | |
import sys |
OlderNewer