Skip to content

Instantly share code, notes, and snippets.

@zono
zono / gist:9b7c68964639dfaa8972fa9a67c99f4a
Created April 30, 2022 14:54
euclidean-distance-calculation-sql
SELECT
id,
sqrt(
power(f1 - (-0.09077361), 2) +
power(f2 - (0.10373443), 2) +
power(f3 - (0.00798536), 2) +
power(f4 - (-0.06935258), 2) +
power(f5 - (0.01923059), 2) +
power(f6 - (-0.01380458), 2) +
power(f7 - (-0.08229813), 2) +
@zono
zono / keybase.md
Last active June 18, 2019 02:37
keybase

Keybase proof

I hereby claim:

  • I am zono on github.
  • I am zono (https://keybase.io/zono) on keybase.
  • I have a public key whose fingerprint is F234 059E 4141 3202 35C6 12FE CF4E 7C6F 6530 E807

To claim this, I am signing this object:

package main
import (
"encoding/json"
"io/ioutil"
"log"
"net/http"
"strings"
"time"
"sync"
package main
import (
"net/http"
"sync"
"log"
"time"
)
func main() {
package main
import (
"fmt"
"net/http"
"time"
)
func handler(w http.ResponseWriter, r *http.Request) {
time.Sleep(100 * time.Second)