Skip to content

Instantly share code, notes, and snippets.

View faisal-w's full-sized avatar

Faisal Wirakusuma faisal-w

  • Jakarta East Customs Software
  • Jakarta, Indonesia
View GitHub Profile
"""
This example requires the body-streaming tornado fork at https://github.com/nephics/tornado.
Refer to http://groups.google.com/group/python-tornado/browse_thread/thread/791c67cb86c2dea2.
Supports uploading an unlimited number/size of files in a single
PUT multipart/form-data request. Each file is processed as the stream
finds the part in the form data.
==USAGE==
#!/usr/bin/env python
"""Simple HTTP Server With Upload.
This module builds on BaseHTTPServer by implementing the standard GET
and HEAD requests in a fairly straightforward manner.
"""
@faisal-w
faisal-w / MyKMeansClusterer.java
Created October 13, 2014 13:39
SimpleKMeans cluster classification example using Weka library.
import weka.core.Instance;
import weka.core.Instances;
import weka.core.converters.ArffLoader;
import weka.clusterers.SimpleKMeans;
import weka.clusterers.ClusterEvaluation;
import java.io.File;
import java.io.FileWriter;
/**
@faisal-w
faisal-w / MyLogisticRegression.m
Last active August 29, 2015 14:08
Implementation of Logistic Regression using Matlab
% MyLogisticRegression
%
% by Faisal Wirakusuma
% Implementation of Logistic Regression, inspired by lecture materials from Andrew Ng
% http://openclassroom.stanford.edu/MainFolder/DocumentPage.php?course=MachineLearning&doc=exercises/ex4/ex4.html
%
classdef MyLogisticRegression < handle
properties
@faisal-w
faisal-w / README.md
Created February 6, 2015 20:55
train

README is empty

@faisal-w
faisal-w / cv_lab_1.1.m
Created March 17, 2015 22:52
Computer Vision lab activities 1.1 - Filtering (Conv)
clear all; close all;
%Read a PGM file
%pgm_1 = pgmread('shaftim.pgm');
pgm_1 = imread('coins.png');
%Viewing a PGM file as an image
my_disp(pgm_1)
% Create a averaging filter
@faisal-w
faisal-w / System Design.md
Created April 19, 2016 15:27 — forked from vasanthk/System Design.md
System Design Cheatsheet

#System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

##Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?

Credit Card Fraud Detection

This interactive Neo4j graph tutorial covers a common credit card fraud detection scenario.


@faisal-w
faisal-w / config.py
Created June 29, 2016 19:27 — forked from bonzanini/config.py
Twitter Stream Downloader
consumer_key = 'your-consumer-key'
consumer_secret = 'your-consumer-secret'
access_token = 'your-access-token'
access_secret = 'your-access-secret'
@faisal-w
faisal-w / geoserver.conf
Created January 24, 2017 13:09 — forked from thanhleviet/geoserver.conf
Setting up proxy for geoserver with nginx
Tested on nginx version 1.1.9, ubuntu 12.04
-Command lines in order:
sudo touch /etc/nginx/site-availables/geoserver.conf
sudo vi /etc/nginx/site-availables/geoserver.conf
sudo ln -s /etc/nginx/site-availables/geoserver.conf /etc/nginx/site-enabled/geoserver.conf
sudo service nginx start
Content of geoserver.conf
server {