Skip to content

Instantly share code, notes, and snippets.

View sgomezvillamor's full-sized avatar

Sergio Gómez Villamor sgomezvillamor

View GitHub Profile
@sgomezvillamor
sgomezvillamor / html2ipynb.py
Last active January 21, 2018 09:11
From html 2 original ipynb file
# requires python3
from bs4 import BeautifulSoup
import json
import urllib.request
def html2ipynb(sourceHtml, targetIpynb):
dictionary = {'nbformat': 4, 'nbformat_minor': 1, 'cells': [], 'metadata': {}}
print("html2ipynb")
@sgomezvillamor
sgomezvillamor / etc-init.d-cassandra
Last active May 21, 2020 08:57
/etc/init.d/cassandra for CentOS
#!/bin/bash
# init script for Cassandra.
# chkconfig: 2345 90 10
# description: Cassandra
# script slightly modified from
# http://blog.milford.io/2010/06/installing-apache-cassandra-on-centos/
. /etc/rc.d/init.d/functions
CASS_HOME=/cassandra/apache-cassandra-1.2.4
@sgomezvillamor
sgomezvillamor / GangliaMetricsTest
Created February 15, 2013 09:11
GangliaMetricsTest
package com.innoquant.analytics.engine.services;
import java.util.concurrent.TimeUnit;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;