Skip to content

Instantly share code, notes, and snippets.

Avatar
🐢
Slow and steady

Raul Sena Ferreira raulsenaferreira

🐢
Slow and steady
View GitHub Profile
@raulsenaferreira
raulsenaferreira / bhattacharyya
Created Feb 19, 2017 — forked from jstadler/bhattacharyya
Implementation of the Bhattacharyya distance in Python
View bhattacharyya
# bhattacharyya test
import numpy
import math
h1 = [ 1, 2, 3, 4, 5, 6, 7, 8 ];
h2 = [ 6, 5, 4, 3, 2, 1, 0, 0 ];
h3 = [ 8, 7, 6, 5, 4, 3, 2, 1 ];
h4 = [ 1, 2, 3, 4, 4, 3, 2, 1 ];
h5 = [ 8, 8, 8, 8, 8, 8, 8, 8 ];
View keybase.md

Keybase proof

I hereby claim:

  • I am raulsenaferreira on github.
  • I am raulsenaferreira (https://keybase.io/raulsenaferreira) on keybase.
  • I have a public key whose fingerprint is 3B70 ED54 02EF 5A80 B9B1 1C64 7678 21D6 2A45 8447

To claim this, I am signing this object:

@raulsenaferreira
raulsenaferreira / dwca-converter.md
Last active Aug 19, 2016
Shell scripts that downloads a DWC-Archive given an url, unzip, parses and converts to a csv format and sends the data to DataBase
View dwca-converter.md

Shell scripts that downloads a DWC-Archive given an url, unzip, parses and converts to a csv format and sends it to DataBase

If you are using it with a java application, you just need to put the files at "jboss/bin" and to call the script via code.

E.g.:

import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
@raulsenaferreira
raulsenaferreira / docker-compose-install.sh
Last active Aug 19, 2016 — forked from wdullaer/install.sh
Install Latest Docker and Docker-compose on Ubuntu
View docker-compose-install.sh
# Ask for the user password
# Script only works if sudo caches the password for a few minutes
sudo true
# Install kernel extra's to enable docker aufs support
# sudo apt-get -y install linux-image-extra-$(uname -r)
# Add Docker PPA and install latest version
# sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
# sudo sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list"