Skip to content

Instantly share code, notes, and snippets.

@sitag
sitag / distcorr.py
Created September 5, 2019 23:22 — forked from satra/distcorr.py
Distance Correlation in Python
from scipy.spatial.distance import pdist, squareform
import numpy as np
from numbapro import jit, float32
def distcorr(X, Y):
""" Compute the distance correlation function
>>> a = [1,2,3,4,5]
>>> b = np.array([1,2,9,4,4])
@sitag
sitag / HelloWorld.kt
Created November 25, 2019 05:06 — forked from mitchwongho/HelloWorld.kt
A trivial Gradle build file for a Kotlin application
fun main(args: Array<String>) {
MyFirstClass("Hello, My First Class").out()
}
class MyFirstClass(val message: String) {
fun out() {
println(message)
}
}