Skip to content

Instantly share code, notes, and snippets.

View quydx's full-sized avatar

quy quydx

View GitHub Profile
@quydx
quydx / sklearn-spark.py
Created October 12, 2020 03:13 — forked from lucidfrontier45/sklearn-spark.py
Use trained sklearn model with pyspark
from pyspark import SparkContext
import numpy as np
from sklearn import ensemble
def batch(xs):
yield list(xs)
N = 1000

Keybase proof

I hereby claim:

  • I am quydx on github.
  • I am quydx8796 (https://keybase.io/quydx8796) on keybase.
  • I have a public key ASAMr6ub46P-QbsSAjMC7jXx6M_V6e-gUOYL4mfAxD7Qago

To claim this, I am signing this object:

@quydx
quydx / php_error_logstash.conf
Created August 30, 2018 08:31 — forked from gerardorochin/php_error_logstash.conf
php error logging into logstash + elasticsearch and trace errors on single line and root path hidden
input {
file {
type => "php-error"
path => "/var/www/error_log"
sincedb_path => "/opt/logstash/sincedb-access"
}
}