Skip to content

Instantly share code, notes, and snippets.

View T31337's full-sized avatar

Trenton T31337

  • 1337 Software
  • In The Interwebz, For All To See And Access Equally
View GitHub Profile
@T31337
T31337 / PyQt5 Number Guessing Game
Last active June 7, 2017 18:27
Graphical Number Guessing Game Written Python Using Qt5
#!/usr/bin/env python
import sys,random
from PyQt5.QtWidgets import QApplication, QWidget, QPushButton,QLabel
from PyQt5.QtGui import QIcon
from PyQt5.QtCore import pyqtSlot
from PyQt5 import QtWidgets
from PyQt5.QtWidgets import *
class App(QWidget):
@T31337
T31337 / Qt4PortScanner.py
Last active March 26, 2017 05:29
Python Qt4 PortScanner
import sys
import PyQt4.QtGui as QtGui
import socket
'''
Qt4 Version Of Python PortScanner (https://gist.github.com/T31337/93cf239fff8314b182e2)
License:
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@T31337
T31337 / Qt4Template.py
Last active March 26, 2017 05:31
Python Qt4 Template
import sys
import PyQt4.QtGui as QtGui
class Template:
def __init__(self):
app = QtGui.QApplication(sys.argv)
self.gui()
sys.exit(app.exec_())
def doStuff(self):
#FFPMEG Converter GUI
import tkinter,subprocess,os
from tkinter import filedialog,messagebox
from tkinter import *
class FFConvert:
def convert(self):
self.btnConvert['state'] = 'disabled'
self.btn['state']='disabled'
echo FFMPEG MP3 To WAV Converter
echo -----------------------------
echo Usage: ./ffmpeg mp3 newfile
echo -----------------------------
mp3=$1
wav=$2
ffmpeg -i $mp3 -acodec pcm_u8 -ar 22050 $wav.wav
@T31337
T31337 / TimeBomb!.py
Last active July 12, 2019 20:13
PyTimeBomb!
import platform
from tkinter import *
from tkinter import messagebox
import configparser, pickle
import os, time, subprocess
# Show Debug Messages
DEBUG = True
def printDebugBanner():
@T31337
T31337 / ColorPicker.py
Last active August 31, 2023 03:57
ColorPicker
#Simple Color Chooser GUI That Returns Hex And RGB Values :)
from tkinter import colorchooser,Label,Button,Tk
def mColor():
mycolor = colorchooser.askcolor()
mylbl = Label(gui,text=mycolor)
mylbl.grid(row=1,column=0)
return
@T31337
T31337 / MyAdvenure.py
Last active August 29, 2015 14:06
Choose Your Own Adventure Game
#!/usr/bin/env python3
import random
import time
import sys
class MyAdventure:
def loseGame(self):
print(
"""
[ GameOver! ]
@T31337
T31337 / CapCam.py
Last active January 11, 2017 12:49
ScreenRecorder&Microphone Audio Recorder Using FFMPEG & Python
#!/usr/bin/env python3
'''
This Script Is Mainly From A Youtube User,
I Only Modified It Slightly To Make It Python3 Compatable,
And Added Custom Microphone Recording Support
Original Source Code: http://pastebin.com/BY1t5AcC
Thanks To Youtube User NoBeansJose
License:
@T31337
T31337 / PyPortScanner.py
Last active March 18, 2024 01:03
Simple PortScanner With GUI
#!/usr/bin/env python3
import tkinter.ttk,socket
from tkinter import Button,Entry,Spinbox,WORD,W,E,Label,Tk,END,messagebox,Text
'''
License:
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.