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
# Adapted from | |
# http://pytables.github.io/usersguide/libref/homogenous_storage.html#the-carray-class | |
import os | |
import numpy | |
import tables | |
from itertools import groupby | |
from operator import itemgetter | |
from time import time |
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 time import time | |
import numpy as np | |
from graph_tool import Graph | |
from graph_tool.run_action import inline | |
def add_edges(graph, edges): | |
''' | |
Batch edges insertion. Pure Python implementation. |
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
# Use the Python 2.7 installation in /l/ | |
PYTHONROOT=/l/python2.7 | |
export PATH=$PYTHONROOT/bin:$PATH | |
export LD_LIBRARY_PATH=$PYTHONROOT/lib:$LD_LIBRARY_PATH | |
export PYTHONPATH=$HOME/local/lib/python:$PYTHONPATH | |
# My own local libraries and python modules are in ~/local | |
export PATH=$HOME/local/bin:$PATH | |
export MANPATH=$HOME/local/man:$MANPATH |
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
class RefDict(dict): | |
def __init__(self, *args, **kwargs): | |
''' | |
A dictionary that stores references to a set of values. It gives an | |
advantage in terms of memory when one needs to store several large | |
duplicate objects. | |
Note | |
---- | |
Values must be hashable. Instead of lists, use tuples; instead of sets, |
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
### General Chairs | |
[<img style="margin-bottom: 10px; margin-right: 10px" alt="Fil Menczer" src="img/org/Fil_Menczer.png"/>](http://bit.ly/filmenczer) [Fil Menczer, IU](http://bit.ly/filmenczer)<br/> | |
[<img style="margin-bottom: 10px; margin-right: 10px" alt="Jim Hendler" src="img/org/Jim_Hendler.jpg" />](http://www.cs.rpi.edu/~hendler/) [Jim Hendler, RPI](http://www.cs.rpi.edu/~hendler/)<br/> | |
[<img style="margin-bottom: 10px; margin-right: 10px" alt="William Dutton" src="img/org/william_dutton.jpg" />](http://people.oii.ox.ac.uk/dutton/) [William Dutton, Oxford](http://people.oii.ox.ac.uk/dutton/)<br/> |
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
easterEgg.BadWorder.list={ | |
"4r5e":1, | |
"5h1t":1, | |
"5hit":1, | |
a55:1, | |
anal:1, | |
anus:1, | |
ar5e:1, | |
arrse:1, | |
arse:1, |
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
#!/usr/bin/env python | |
# vim: set sw=4 sts=4 expandtab: | |
# author: Giovanni Luca Ciampaglia <[email protected]> | |
# TODO: set request timeout to 90 seconds to manage stalls and implement | |
# backoff strategies as documented here: | |
# https://dev.twitter.com/streaming/overview/connecting (see Stalls and | |
# Reconnecting) | |
# | |
# and also see: |
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
# IPython log file | |
import sys | |
import numpy | |
numpy.set_printoptions(precision=2, suppress=True) | |
import scipy | |
import scipy.stats | |
print("Python version = {sys.version}".format(sys=sys)) | |
print("NumPy version = {numpy.version.version}".format(numpy=numpy)) |
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 time | |
from selenium import webdriver | |
from selenium.webdriver.common.by import By | |
from selenium.webdriver.common.keys import Keys | |
from selenium.webdriver.support.ui import WebDriverWait | |
from selenium.webdriver.support.expected_conditions import \ | |
presence_of_element_located | |
# This example requires Selenium WebDriver 3.13 or newer |