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
#!/usr/bin/env python
#WebCam Test
import pygame,sys
import pygame.camera
from pygame.locals import *
pygame.init()
pygame.camera.init()
screen = pygame.display.set_mode((640,480))
cam = pygame.camera.Camera("/dev/video0",(640,480))
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import cv
from datetime import datetime
if __name__ == '__main__':
capture = cv.CaptureFromCAM(0)
cv.NamedWindow('Webcam')
@T31337
T31337 / GmailSender.py
Last active August 29, 2015 14:05
EmailSender GUI
#!/usr/bin/env python3
#GUI Gmail Sender!
from tkinter import messagebox,Label,Entry,Tk,StringVar,E,W,Menu,ttk
import smtplib
'''
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.
#!/usr/bin/env Python3
import tkinter.ttk
from tkinter import *
import tkinter.messagebox as msgbx
import praw
'''
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 / 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! ]
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 / 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 / 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'