Skip to content

Instantly share code, notes, and snippets.

Music
PewDiePie
T-Series
Gaming
YouTube Movies
Sports
5-Minute Crafts
Canal KondZilla
Justin Bieber
SET India
# Prints the line number, the line and the characters count
# of those lines in the file
# which exceed the 80 character limit.
import sys
#infile = open ("YOUR-FILE-NAME")
infile = open ("q1.rkt")
# Prints total number of lines in the program
@Aniruddha-Tapas
Aniruddha-Tapas / directkeys.py
Created April 26, 2017 15:09
Script to emulate key-presses on Windows via Python.
# directkeys.py
# http://stackoverflow.com/questions/13564851/generate-keyboard-events
# msdn.microsoft.com/en-us/library/dd375731
import ctypes
from ctypes import wintypes
import time
user32 = ctypes.WinDLL('user32', use_last_error=True)