Skip to content

Instantly share code, notes, and snippets.

View mvetsch's full-sized avatar
🔩
....

mvetsch

🔩
....
  • Rapperswil, Switzerland
View GitHub Profile
@johnhw
johnhw / umap_sparse.py
Last active January 6, 2024 16:09
1 million prime UMAP layout
### JHW 2018
import numpy as np
import umap
# This code from the excellent module at:
# https://stackoverflow.com/questions/4643647/fast-prime-factorization-module
import random
@deepakkarki
deepakkarki / client.py
Last active August 29, 2015 14:07 — forked from micktwomey/client.py
import socket
if __name__ == "__main__":
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.connect(("localhost", 9000))
data = "some data"
sock.sendall(data)
result = sock.recv(1024)
print result
sock.close()