This file contains 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
# Person Alert | |
# Jake Robinson | |
# 06MAR2013 | |
import win32com.client | |
import time, win32api | |
im = win32com.client.Dispatch('Communicator.UIAutomation') | |
user_name = raw_input('Email of person to track: ') |
This file contains 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
# File: time_cursor.py | |
# Programmer: Jake Robinson | |
# Date: 07MAR2013 | |
from Tkinter import * | |
import datetime | |
global x, y, start_time | |
x, y = 0, 0 | |
start_time = datetime.datetime(100,1,1,11,34,59) |
This file contains 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
# File: tk_move.py | |
# Programmer: Jake Robinson | |
# Date: 07MAR2013 | |
from Tkinter import * | |
import datetime | |
global x, y, start_time | |
x, y = 0, 0 | |
start_time = datetime.datetime(100,1,1,11,34,59) |
This file contains 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
from datetime import datetime | |
import operator, string | |
table = string.maketrans("","") | |
thelist = {} | |
loop_condition = True | |
txt_file = open('gs2.txt') | |
word_list = [x for x in txt_file.read().decode('utf-8').split()] | |
# Translate removes punctuation |
This file contains 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
# -*- coding: utf-8 -*- | |
""" | |
Created on Thu Apr 04 14:01:09 2013 | |
@author: jrobins | |
""" | |
import wx |
This file contains 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 urllib2, re, time | |
from Tkinter import * | |
class App: | |
def __init__(self, master): | |
self.master = master | |
frame = Frame(master) | |
frame.pack() |
This file contains 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
from Tkinter import * | |
import math | |
c = Canvas(width=200, height=200) | |
c.pack() | |
# a square | |
xy = [(50, 50), (150, 50), (150, 150), (50, 150)] |
This file contains 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
# File: simpletk_base.py | |
# Programmer: Jake Robinson | |
# Date: 03MAR2013 | |
from Tkinter import * | |
from ttk import * | |
class App: | |
def __init__(self, master): | |
frame = Frame(master) |
This file contains 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 json | |
import requests | |
from requests_oauthlib import OAuth1 | |
consumer_key='key' | |
consumer_secret='secret' | |
access_token_key='t_key' | |
access_token_secret='t_secret' |
This file contains 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 multiprocessing | |
from multiprocessing import Pool | |
def say_hello(nums): | |
return sum([x**x for x in xrange(nums[0], nums[1])]) | |
if __name__ == '__main__': | |
num_processors = multiprocessing.cpu_count() | |
print 'You have {0:1d} CPUs'.format(num_processors) |
OlderNewer