Skip to content

Instantly share code, notes, and snippets.

View kevinlee9's full-sized avatar

Zhikang Li kevinlee9

View GitHub Profile
@kevinlee9
kevinlee9 / kmeans.py
Created September 10, 2018 10:40 — forked from dave-andersen/kmeans.py
k-means in Tensorflow
import tensorflow as tf
import numpy as np
import time
N=10000
K=4
MAX_ITERS = 1000
start = time.time()
@kevinlee9
kevinlee9 / DRILL-92.01.patch
Created August 2, 2016 06:57 — forked from yssharma/DRILL-92.01.patch
Apache Drill Cassandra storage patch - Rebased on Drill 1.2.0
commit e1f17a09b6d402e78268753897cbdbd4f8bed169
Author: Yash Sharma <yash360@gmail.com>
Date: Mon Jul 6 09:51:22 2015 +0530
DRILL-92 : Cassandra storage plugin - rebased on Drill-1.2.0
diff --git a/contrib/pom.xml b/contrib/pom.xml
index 8c00e76..0269efb 100644
--- a/contrib/pom.xml
+++ b/contrib/pom.xml
package spark.example
import org.apache.spark.SparkContext
import org.apache.spark.SparkContext._
import org.apache.spark.SparkConf
object SparkGrep {
def main(args: Array[String]) {
if (args.length < 3) {
System.err.println("Usage: SparkGrep <host> <input_file> <match_term>")