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
# -*- coding: utf-8 -*-
import cv
from datetime import datetime
if __name__ == '__main__':
capture = cv.CaptureFromCAM(0)
cv.NamedWindow('Webcam')
#!/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))
@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 / 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.
@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 / 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 / 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 / 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():
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