Skip to content

Instantly share code, notes, and snippets.

View jarobins's full-sized avatar

Jake Robinson jarobins

  • Georgia Tech Research Institute
  • Georgia
View GitHub Profile
@jarobins
jarobins / gplus_ttopten.py
Last active February 22, 2018 13:11
Access Google+ trends using urllib2. Displays the top ten trends and updates every minute.
import urllib2, re, time
from Tkinter import *
class App:
def __init__(self, master):
self.master = master
frame = Frame(master)
frame.pack()
@jarobins
jarobins / wxP_rotate.py
Created April 5, 2013 17:50
Rotate an image in wxPython. Not working quite right
# -*- coding: utf-8 -*-
"""
Created on Thu Apr 04 14:01:09 2013
@author: jrobins
"""
import wx
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
@jarobins
jarobins / tk_move.py
Created March 22, 2013 18:38
Test out tk moving objects around on a canvas
# 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)
@jarobins
jarobins / time_cursor.py
Created March 22, 2013 18:35
Testing out some Tk functionality creating a cursor and custom widgets.
# 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)
@jarobins
jarobins / lyncAlert.py
Last active December 15, 2015 07:29
Sends an alert to the user when I person logs on to Lync.
# 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: ')