Skip to content

Instantly share code, notes, and snippets.

@codingneo
codingneo / gist:d738d46950446277fb4e
Last active August 29, 2015 14:04 — forked from debasishg/gist:8172796
A collection of links for streaming algorithms and data structure
  1. General Background and Overview
@codingneo
codingneo / gist:475373211c1d13f4d55e
Created August 11, 2014 05:27
Java Tic-Tac-Toe Game
import java.util.Random;
import java.util.Scanner;
import java.io.*;
class Player
{
private int score;
private String name;
Player()
{
name="Unknown";
#!/usr/bin/env bash
# This file contains environment variables required to run Spark. Copy it as
# spark-env.sh and edit that to configure Spark for your site.
#
# The following variables can be set in this file:
# - SPARK_LOCAL_IP, to set the IP address Spark binds to on this node
# - MESOS_NATIVE_LIBRARY, to point to your libmesos.so if you use Mesos
# - SPARK_JAVA_OPTS, to set node-specific JVM options for Spark. Note that
# we recommend setting app-wide options in the application's driver program.
@codingneo
codingneo / gist:9ae6a0b1807c390dd603
Created August 25, 2014 00:26
Install JDK 7 on Mac OS X Yosemite
Download JDK 7
Open the DMG
Run pkgutil --expand "/Volumes/JDK 7 Update 60/JDK 7 Update 60.pkg" "/tmp/JDK 7 Update 60.unpkg"
Go to /tmp/JDK 7 Update 60.unpkg
Open the Distribution file in your favorite editor (I recommend (Sublime Text)[http://www.sublimetext.com])
Change the function pm_install_check() to always return true
Run pkgutil --flatten "/tmp/JDK 7 Update 60.unpkg" "/tmp/JDK 7 Update 60.pkg"
Run open "/tmp/JDK 7 Update 60.pkg"
@codingneo
codingneo / gist:7eff40e88f0a1066793a
Last active August 29, 2015 14:08 — forked from jimbojsb/gist:1630790
Syntax Highlighted Code in OS X Keynote

Step 0:

Get Homebrew installed on your mac if you don't already have it

Step 1:

Install highlight. "brew install highlight". (This brings down Lua and Boost as well)

Step 2:

@codingneo
codingneo / gist:be56b3dd1e7516166eed
Last active August 29, 2015 14:23
Location-based Data Mining

Location Data Mining and Its Applications

Trajectory Data Mining

  • Sources of location trajectory data
  • Trajectory preprocessing
  • Trajectory indexing and retrieval
  • Trajectory mining
    • Trajectory uncertainty
    • Trajectory pattern mining
    • Trajectory classification
  • Trajectory outlier detection
@codingneo
codingneo / recsys.md
Last active November 27, 2015 15:43
A Collection Of Recent Ideas About Recommendation System

Recent Ideas About Recommendation System

Recommendation Paradigm

  • Content-based -
  • Social/demographic - suggest items liked by friends, friends of friends, and demographic similar people
  • Contextual - recommend items based on current context
  • Collaborative Filtering - suggest items based on user behaviours

Articles

  1. Yanir Seroussi, The Wonderful World Of Recommendation Systems
@codingneo
codingneo / growth-hacking.md
Last active October 2, 2015 13:11
Growth Hacking Resources