Skip to content

Instantly share code, notes, and snippets.

Avatar

Sergio Gómez Villamor sgomezvillamor

View GitHub Profile
@sgomezvillamor
sgomezvillamor / html2ipynb.py
Last active Jan 21, 2018
From html 2 original ipynb file
View html2ipynb.py
# 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
/etc/init.d/cassandra for CentOS
View etc-init.d-cassandra
#!/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
View 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;