Skip to content

Instantly share code, notes, and snippets.

View versae's full-sized avatar

Javier de la Rosa versae

View GitHub Profile
@versae
versae / xvfb
Last active November 7, 2015 19:21 — forked from dloman/xvfb
xvfb for use with travis
### BEGIN INIT INFO
# Provides: Xvfb
# Required-Start: $local_fs $remote_fs
# Required-Stop:
# X-Start-Before:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Loads X Virtual Frame Buffer
### END INIT INFO
@versae
versae / progressbar.py
Created July 16, 2015 04:25
ProgressBar for Python scripts (from PyMC)
import sys
class ProgressBar:
def __init__(self, iterations):
self.iterations = iterations
self.prog_bar = '[]'
self.fill_char = '*'
self.width = 50
self.__update_amount(0)
@versae
versae / Elecciones Andaluzas.ipynb
Created March 15, 2015 22:42
Elecciones Andaluzas 2015
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@versae
versae / mini_guide_ipython_parallel.ipynb
Last active August 29, 2015 14:10
A Mini Guide to IPython Parallel
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@versae
versae / media_counts.csv
Last active August 29, 2015 14:02
Get total counts for different media from WorldCat
year books music newspapers scores videos
1002 30 5 5 5
1003 45 2 1 1
1004 49 7 6 3
1005 57 5 5 5
1006 59 4 2 4
1007 83 5 1 3
1008 45 5 2 19
1009 63 6 6 4
1010 68 5 1 7

Keybase proof

I hereby claim:

  • I am versae on github.
  • I am versae (https://keybase.io/versae) on keybase.
  • I have a public key whose fingerprint is 872D 6087 2EC5 092D 75FE 7928 AB45 22BF F23E A91A

To claim this, I am signing this object:

@versae
versae / Neo4j IPython.ipynb
Last active August 29, 2015 13:57
Neo4j IPython integration through neo4jrestclient
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{
"patterns":[
{
"source":{
"alias":"n3_0",
"type":"node",
"type_id":3
},
"relation":{
"alias":"r2_0",
@versae
versae / ipython_display_d3.ipynb
Created October 15, 2013 06:08
Showing a D3 bar chart inside IPython, taking advantage of the `new Function` alternative syntax in Javascript for creating functions
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@versae
versae / ipython_display_d3.py
Last active December 25, 2015 13:49
Showing a D3 bar chart inside IPython, taking advantage of the `new Function` alternative syntax in Javascript for creating functions
import json
class BarChart(object):
def __init__(self, val, values):
self.val = val
self.values = values
def _repr_html_(self):
def function(code, args=None):