Skip to content

Instantly share code, notes, and snippets.

View nischalkumar's full-sized avatar

nischal kumar nischalkumar

  • Bangalore, India
View GitHub Profile
#!/bin/bash
echo "" > data_final.csv
for i in {1..5}; do
./waf --run "pa2 --exp=exp$i" | grep -E 'Throughput|Average_Flow_Time' > output
first_throughput=""
last_throughput=""
last_flow_time=""
echo "" > data_final.csv
for i in {1..5}; do
./waf --run "pa2 --exp=exp$i" | grep -E 'Throughput|Average_Flow_Time' > output
#echo "$output" >> data_final.csv
first_throughput=""
last_throughput=""
last_flow_time=""
" Disable compatibility with vi which can cause unexpected issues.
set nocompatible
" Enable type file detection. Vim will be able to try to detect the type of file in use.
filetype on
" Enable plugins and load plugin for the detected file type.
filetype plugin on
" Load an indent file for the detected file type.
Reader.init(System.in);
int t = Reader.nextInt();
while(t > 0) {
int n, k;
n = Reader.nextInt();
k= Reader.nextInt();
int ar[]=new int[n];
int sum=0;
for (int i = 0; i < n; i++) {
ar[i]=Reader.nextInt();
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
/**
* Created by nischal.k on 02/10/16.
*/
public class Main {
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.foo</groupId>
<artifactId>bar</artifactId>
<version>1.0-SNAPSHOT</version>
<dependencies>
➜ historyboardapi git:(master) ✗ mvn clean install -DskipTests
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------< com.HistoryBoard:api >------------------------
[INFO] Building api 0.0.1-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.6.1:clean (default-clean) @ api ---
[INFO] Deleting /Users/hari_om/coder/historyboardapi/target
[INFO]
➜ historyboardapi git:(master) ✗ mvn clean install
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------< com.HistoryBoard:api >------------------------
[INFO] Building api 0.0.1-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.6.1:clean (default-clean) @ api ---
[INFO] Deleting /Users/hari_om/coder/historyboardapi/target
[INFO]
May 22, 2017 3:26:49 PM com.sun.jersey.spi.container.ContainerResponse mapMappableContainerException
SEVERE: The RuntimeException could not be mapped to a response, re-throwing to the HTTP container
java.lang.ArrayIndexOutOfBoundsException: 0
at com.google.common.collect.RegularImmutableList.get(RegularImmutableList.java:58)
at flipkart.sp.views.SPWSRProductViewFacade.getAsSingleValued(SPWSRProductViewFacade.java:127)
at flipkart.views.IViewable$getAsSingleValued$0.call(Unknown Source)
at flipkart.sp.views.AttributeManipulationDSL.handleKeyOverrides(AttributeManipulationDSL.groovy:70)
at flipkart.sp.views.AttributeManipulationDSL$handleKeyOverrides$3.callCurrent(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:49)
at flipkart.sp.views.AttributeManipulationDSL$handleKeyOverrides$3.callCurrent(Unknown Source)
➜ flujo-client git:(development) git status
On branch development
Your branch is ahead of 'origin/development' by 1 commit.
(use "git push" to publish your local commits)
nothing to commit, working tree clean
➜ flujo-client git:(development) git push
Counting objects: 741, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (493/493), done.
Writing objects: 100% (741/741), 220.14 KiB | 0 bytes/s, done.