This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# download 3.5.8 or neo4j-enterprise-4.0.0-alpha09mr02-unix | |
!curl https://neo4j.com/artifact.php?name=neo4j-community-3.5.8-unix.tar.gz -o neo4j.tar.gz | |
# decompress and rename | |
!tar -xf neo4j.tar.gz # or --strip-components=1 | |
!mv neo4j-community-3.5.8 nj | |
# disable password, and start server | |
!sed -i '/#dbms.security.auth_enabled/s/^#//g' nj/conf/neo4j.conf | |
!nj/bin/neo4j start |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <sys/types.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <string.h> | |
#include <event.h> | |
#include <evhttp.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/opt/local/bin/python | |
# module power iteration clustering | |
import numpy as NP | |
from scipy.cluster.vq import kmeans2 | |
def calcNorm1(v): | |
return NP.sum(NP.fabs(v)) | |
def calcDelta(v,v2): |