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
#Example of list.txt file | |
''' | |
Deathsmiles@@steam://rungameid/314180 | |
Mushihimesama@@steam://rungameid/377860 | |
Playnite Game@@playnite://playnite/start/6108f780-32bf-46c8-8db5-7aa626cfbfdf | |
''' | |
import webbrowser | |
import random | |
while True: |
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 will open a random folder within a list of folders and will load said folder into the music player | |
# You need to set up the variables "music_player_executable" and "music_folders" | |
import os | |
import random | |
import subprocess | |
def open_random_folder(folder_path): | |
# Get a list of all the folders in the given path |
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
#script takes working directory mp4 files (and others) (only tested with mp4) and uses ffmpeg to convert to variable bitrate mp3 files | |
workingDirectory = 'C:\\directory_with_the_mp4_files\\' | |
files = [] | |
import os | |
for individualFile in os.listdir(workingDirectory): | |
totalpath = workingDirectory + individualFile | |
if individualFile.endswith(('.mp4', '.wmv', '.avi', '.mkv')): | |
files.append(totalpath) | |
for item in files: | |
os.system("ffmpeg -i \"" + item + "\" -q:a 0 -map a \"" + item.rsplit('.', 1)[0] + '\".mp3') |
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
from os import system, name | |
from time import sleep | |
from requests import get | |
from tkinter import messagebox | |
# TODO Guardar variable a un archivo, checar el archivo frecuentemente, si se detecta un cambio de ip, enviar email | |
def render(): | |
# ctypes required for using GetTickCount64() | |
import ctypes |
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
#Makes a trim of video using fmmpeg | |
import os | |
import tkinter as tk | |
from tkinter import filedialog | |
def filePick(): | |
root = tk.Tk() | |
root.withdraw() |
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
var symbolSize = 20; | |
var streams = []; | |
function setup() { | |
createCanvas( | |
window.innerWidth, | |
window.innerHeight | |
); | |
background(0); | |
var x = 0; |
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 random | |
from copy import deepcopy | |
lines = [] | |
f = open("opciones.txt") | |
for line in f.readlines(): | |
lines.append(line.strip()) | |
def generate(lines): | |
static_lines = deepcopy(lines) |
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 folderooptest | |
import random | |
import shutil | |
import os | |
targetFolder = r"J:\BlackBerry\music" + "\\" | |
fill_until_there_are_x_free_megas = 100 | |
music_collection_folder = r"G:\Albums" | |
path_to_check = r"J:\BlackBerry\music" |
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
# Public class members # | |
# __init__ constructor: can take one optional argument which is the full path of the desired folder | |
# if no argument is given class will promt user to select a folder | |
# files -> tuple: tuple of basename files in folder | |
# folders -> tuple: tuple of foldernames in folder | |
# path -> string: string of the selected directory |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<style> | |
* { | |
box-sizing: border-box; | |
} | |
/* Create two equal columns that floats next to each other */ |
NewerOlder