Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
-0.574901563748935 -1.91351072377587 -3.39301871349422 | |
0.655986027503778 0.220724693194496 1.4738500103463 | |
0.43658005390081 -0.476355454977761 -2.60489562791407 | |
0.099374580513502 -0.396758936664661 4.29225965568818 | |
-1.47921372248279 -0.527718540432289 -6.01904146953318 | |
0.0243374519880853 0.454875581575341 0.614373820102557 | |
0.923520996394134 1.03720212890223 -0.191288298190668 | |
1.87006442549162 1.47769286649867 6.15090212082468 | |
-2.0959671116286 -1.24400997743216 -1.70133111996927 | |
-0.443773871294626 0.0603246194061315 0.395098150135329 |
This file contains hidden or 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
df <- read.csv('~/Work/dkupor/hover/data.csv',header = F,stringsAsFactors=F) | |
sumdf <- data.frame(rownum=numeric(), | |
colheadtimes=numeric(), | |
colheadnumber=numeric(), | |
rowheadtimes=numeric(), | |
rowheadnumber=numeric(), | |
celltimes=numeric(), | |
cellnumber=numeric() | |
) |
This file contains hidden or 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 selenium import webdriver | |
from selenium.common.exceptions import NoSuchElementException | |
from selenium.webdriver.common.keys import Keys | |
import time, csv | |
def isReady(browser): | |
return browser.execute_script("return document.readyState")=="complete" | |
browser = webdriver.Firefox() # Get local session of firefox | |
browser.get("http://www.gsb.stanford.edu/facultyprofiles") # Load page |
This file contains hidden or 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
function [ d ] = measurepxdist( imloc ) | |
%MEASUREPXDIST Measure distance between pixels in an image | |
% Returns distance in pixels. | |
% Shows line between left-click and right-click. | |
imshow(imloc) | |
im = gcf(); | |
hold on | |
title('Click the two points, left click and right click, q to quit','FontSize',16) | |
q = 113; |
This file contains hidden or 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 csv | |
f = open('Fin02.csv','r') | |
dr = csv.DictReader(f, delimiter='|') | |
respondents = {} | |
fips = {} | |
rf = {} | |
for d in dr: |
This file contains hidden or 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 urllib, os, sys, re, glob, pickle | |
import xml.etree.ElementTree as ET | |
import csv | |
# use a dictionary to hold on to each entry. we can define all the dictionary elements and the xml keys that take us there. | |
def main(argv): | |
print argv | |
allNames = set() | |
for xmlname in glob.glob(sys.argv[1]+'*.xml'): |
This file contains hidden or 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 | |
f = open('persona.json','r') | |
j = json.loads(f.read()) | |
s = set() | |
dlist = list() | |
for k in j: | |
print k |
NewerOlder