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
#************ WARNING, this script can create rouge python instances that need to be manually killed. ************** | |
from Tkinter import * | |
from multiprocessing import Pool | |
import time | |
def myfunc(x): | |
## window = Tk() # Adding this code causes a crash (loudly and I can not explain.) | |
## lbl = Label(window, text="Thread %d" % x) | |
## lbl.grid(column=0, row=0) | |
## window.mainloop() |
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 pygame | |
FPSCLOCK = pygame.time.Clock() | |
def test_time(): | |
start = time.time() | |
for i in range(100000): | |
x = i + 5 | |
FPSCLOCK.tick(60) |
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
Initalizing process_frames.py | |
Name Read: 'Test Match\n\n' -> Test Match | |
Time Read: ' \n\n' ('0\n\n' ) -> 0 | |
Name Read: 'Test Match\n\n' -> Test Match | |
Time Read: ' \n\n' ('0\n\n' ) -> 0 | |
Name Read: 'Test Match\n\n' -> Test Match | |
Time Read: ' \n\n' ('0\n\n' ) -> 0 | |
Name Read: 'Test Match\n\n' -> Test Match | |
Time Read: ' \n\n' ('0\n\n' ) -> 0 | |
Name Read: 'Test Match\n\n' -> Test Match |
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
#!/bin/bash | |
# | |
# Website Links Useful | |
# https://stackoverflow.com/questions/7362130/getting-video-dimension-from-ffmpeg-i | |
# https://trac.ffmpeg.org/wiki/Encode/H.264 | |
# https://superuser.com/questions/483232/make-exact-mp4-h264-format-for-uploading-to-youtube | |
# https://github.com/yihui/animation/issues/74 | |
# https://askubuntu.com/questions/110264/how-to-find-frames-per-second-of-any-video-file | |
# https://stackoverflow.com/questions/14306205/do-ffmpeg-h264-compression-presets-affect-the-video-quality | |
# http://www.bugcodemaster.com/article/get-information-video-file-using-ffmpeg |
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
# MIT License | |
# | |
# Copyright (c) 2021 Matthew Schweiss | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: |
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
""" | |
PathType | |
A helper type for input validation in argparse for paths. | |
This provides a convienent way to check the paths type, existance, and | |
potentially use "-" to reference stdin or stdout. | |
This class is provided as an alternative to argparse.FileType(), which | |
does not open the path, only validates it and supports directories. |
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
''' | |
This was a project started by Alex that I am fixing some problems with. The logic itself is all Alex's. | |
Fix Autodesk CAM General LabVolt code to work with LabVolt M600 Mills | |
This probably requires some generalisation before it works with all setups | |
Code is heavily commented, but a basic knowledge of regex is required still | |
This is now less of a hack and an actual work around. | |
Current features: |
NewerOlder