Skip to content

Instantly share code, notes, and snippets.

View sushant-hiray's full-sized avatar

Sushant Hiray sushant-hiray

View GitHub Profile
@sushant-hiray
sushant-hiray / ACM ICPC Bootcamp Slides
Created September 20, 2013 18:05
ACM ICPC Bootcamp Slides prepared for the introductory event scheduled for WnCC.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Beamer Presentation
% LaTeX Template
% Version 1.0 (10/11/12)
%
% This template has been downloaded from:
% http://www.LaTeXTemplates.com
%
% License:
% CC BY-NC-SA 3.0 (http://creativecommons.org/licenses/by-nc-sa/3.0/)
@sushant-hiray
sushant-hiray / Cache Line Size
Created October 15, 2013 06:07
Programmatically calculating Cache Line Size
#include<stdlib.h>
#include<stdio.h>
#include<sys/time.h>
#include<iostream>
#include <ctime>
#include <cstdio>
#include <fstream>
#include<istream>
using namespace std;
@sushant-hiray
sushant-hiray / index.html
Last active December 31, 2015 12:39
A d3.js visualization for our STAB team
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<style>
.node,
.leaf {
font: 9px sans-serif;
}
.node circle,
@sushant-hiray
sushant-hiray / README.md
Last active January 1, 2016 00:19
How to “Push It Good” to Git

How to “Push It Good” to Git

Works on Linux with MPC configured!

###Instructions###

  • chmod +rx pushit
  • sudo mv pushit /usr/bin/

###Usage###

  • pushit {branch-name}
@sushant-hiray
sushant-hiray / README.md
Last active August 29, 2015 13:55
Decompressing an apk file

##Decompressing an apk file

This bash script can be use to decompress an apk file. The script is made as a part of an ongoing project!

###Usage

./decompress.sh -d <path to apk file>

###Dependencies

@sushant-hiray
sushant-hiray / OpenFlow.md
Last active August 29, 2015 14:00
Summary of BTP papers

White Paper on Open Flow

As researchers, how can we run experiments in our campus networks?

@sushant-hiray
sushant-hiray / install.sh
Last active August 29, 2015 14:01
Script to prep up a newly installed ubuntu
sudo apt-get update && sudo apt-get upgrade;
sudo apt-get install ubuntu-restricted-extras;
sudo apt-get install terminator;
sudo apt-get install flashplugin-installer;
sudo apt-get install nautilus-dropbox;
sudo apt-get install vlc;
// linuxdcpp from software center
sudo apt-get install git;
sudo apt-get install vim;
const RCP<const Basic> handle_minus(const RCP<const Basic> &arg, bool odd)
{
if(could_extract_minus(r)) {
if(odd)
return mul(minus_one, r);
else
return r;
}
}

Keybase proof

I hereby claim:

  • I am sushant-hiray on github.
  • I am sushanthiray (https://keybase.io/sushanthiray) on keybase.
  • I have a public key ASCg47JU6ADKzDstvpCXcbNli2gzZQlgjrZ9ryd3b3kmOAo

To claim this, I am signing this object:

sushant:~/code/csympy (fix-warning) $ cmake -DCMAKE_BUILD_TYPE=Debug .
-- The C compiler identification is GNU 4.8.2
-- The CXX compiler identification is GNU 4.8.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/g++
-- Check for working CXX compiler: /usr/bin/g++ -- works
-- Detecting CXX compiler ABI info