I hereby claim:
- I am akshaydixi on github.
- I am akshaydixi (https://keybase.io/akshaydixi) on keybase.
- I have a public key whose fingerprint is B64C 845D 52C7 744C 6671 F620 41DC 732C 7A75 C652
To claim this, I am signing this object:
#include <algorithm> | |
#include <boost/lexical_cast.hpp> | |
#include <chrono> | |
#include <cstdint> | |
#include <cstdio> | |
#include <ctime> | |
#include <fstream> | |
#include <iostream> | |
#include <iomanip> | |
#include <string> |
#! /usr/bin/env python | |
from collections import defaultdict | |
def generateNewPartitions(partitions, partitionFilePath): | |
f = open(partitionFilePath , 'w') | |
for p in partitions[1:]: | |
f.write(str(p-1)+"\n") | |
f.close() | |
def createMetisInputFile(metisInput, filePath): |
package com.dixit.flinktrial | |
import java.util.concurrent.TimeUnit | |
import org.apache.flink.streaming.api.scala._ | |
import org.apache.flink.streaming.api.windowing.helper.Time | |
object SocketTextStreamWordCount { | |
def main(args: Array[String]) { |
import java.util.*; | |
public class Main { | |
public static void main(String[] args) { | |
Scanner scanner = new Scanner(System.in); | |
int n,m,k; | |
n = scanner.nextInt(); | |
m = scanner.nextInt(); | |
k = scanner.nextInt(); |
import java.util.*; | |
import java.io.*; | |
class Reader { | |
static BufferedReader reader; | |
static StringTokenizer tokenizer; | |
/** call this method to initialize reader for InputStream */ | |
static void init(InputStream input) { | |
reader = new BufferedReader( |
import java.util.*; | |
class Node { | |
public int x,y,c; | |
public Node(int a, int b, int z) { | |
x = a; | |
y = b; | |
c = z; | |
} | |
public Node() {} |
I hereby claim:
To claim this, I am signing this object:
from __future__ import division | |
import pylab as pl | |
from sklearn.svm import SVC | |
from sklearn.metrics import confusion_matrix | |
XFILETRAIN = 'x_train.txt' | |
YFILETRAIN = 'y_train.txt' | |
XFILETEST = 'x_test.txt' | |
YFILETEST = 'y_test.txt' | |
EPSILON = input("Epsilon: ") |
<?php | |
public function checkins($person='me'){ | |
$checkins = $this->facebook->api('/'.$person.'/?fields=posts.limit(25).fields(place,id),name'); | |
$data=array(); | |
$name = $checkins['name']; | |
for ($i=0; $i < count($checkins['posts']['data']) ; $i++) { | |
if(isset($checkins['posts']['data'][$i]['place'] )) { | |
$place_name = $checkins['posts']['data'][$i]['place']['name']; | |
$timestamp = $checkins['posts']['data'][$i]['created_time']; |